{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"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":"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"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":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"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":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"updateColors (cyclomatic 289): updateColors has cyclomatic complexity 289 (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":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9a726dbd621c7033798217042232970b61f79d1e1e70fa26e5329c1ce22be1"}},{"ruleId":"D1","level":"warning","message":{"text":"router.routeEdgesOrthogonal (cyclomatic 240): router.routeEdgesOrthogonal has cyclomatic complexity 240 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (router.routeEdgesOrthogonal::crossingPenalty) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d252b2cec81dbdd405058b1f68199272760bcf662c1cb4b217bec60dfb5ed2a"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 216): updateColors has cyclomatic complexity 216 (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":"packages/mermaid/src/themes/theme-redux-dark.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcb597e49bc930609d47ee43a99cad6c7dc1be8adfe661c8a4271ad3d80f957"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.layered (cyclomatic 215): layered.layered has cyclomatic complexity 215 (threshold 15). Of this number, 189 points are the body\u0027s own statements and 26 belong to 13 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00009610520997bdb452b2af2ef1af56f82ef79e328039f169c2b51787a2f89"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 215): updateColors has cyclomatic complexity 215 (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":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"06749dfee86594e0c26da0e6a8c115a132c64e27703ca40e123e65ae89b52845"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 215): updateColors has cyclomatic complexity 215 (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":"packages/mermaid/src/themes/theme-neo.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"287ee758bbefb07067e05bf9ef0f466fdc0711bea1c5658e0eb8b46246058f4f"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 205): updateColors has cyclomatic complexity 205 (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":"packages/mermaid/src/themes/theme-redux.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebd994a45574e847eb7cf3dbb98ed05e1dc61693aebac7315a7c3c4d5ec8ebb"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 203): updateColors has cyclomatic complexity 203 (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":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9603907f743d8bef0d17bc989f79cb7219b9e4be01b32f8ada55270c7d82daa1"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 200): updateColors has cyclomatic complexity 200 (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":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac10e3a57df0c9eed3e24012723e9e4c398d01823e44b7716e2eba1573480de"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 199): updateColors has cyclomatic complexity 199 (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":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94ecab22725395305cac0deaad8bb84d7e176ccae36225ace6a45de9feaeb16"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 196): updateColors has cyclomatic complexity 196 (threshold 15). Of this number, 195 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark-color.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"058c3948e4a4b149f04cf568a4f62a034400cd124f9e76fcd8cce746ca546704"}},{"ruleId":"D1","level":"warning","message":{"text":"validateLayout.validateLayout (cyclomatic 192): validateLayout.validateLayout has cyclomatic complexity 192 (threshold 15). Of this number, 175 points are the body\u0027s own statements and 17 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d29426b1159c843df5fda0237f52d77fdda6a5a823b4d58a0ddba73cc69d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 189): updateColors has cyclomatic complexity 189 (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":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86df5c722cf34ae4e3b9affee78112408f9864fdbe01c278c2779b110e0b963"}},{"ruleId":"D1","level":"warning","message":{"text":"updateColors (cyclomatic 173): updateColors has cyclomatic complexity 173 (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":"packages/mermaid/src/themes/theme-neutral.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a134e1328510b28c48313e6129cf70af3e91b7995b9f5e87be020dedff10336b"}},{"ruleId":"D1","level":"warning","message":{"text":"materializedGeometry.resolveRenderedOrthogonalCrossings (cyclomatic 158): materializedGeometry.resolveRenderedOrthogonalCrossings has cyclomatic complexity 158 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 135 belong to 36 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba4a1317567430fa786910edd8a18d16941d471c2c958775dcab8a350d7d79e"}},{"ruleId":"D1","level":"warning","message":{"text":"materializedGeometry.separateSharedRenderedTerminalLanes (cyclomatic 101): materializedGeometry.separateSharedRenderedTerminalLanes has cyclomatic complexity 101 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 82 belong to 14 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff2f1d6ad61ae63d607e5628d9f998fdde0cb8bbc017ffe51aa3702f046ea96"}},{"ruleId":"D1","level":"warning","message":{"text":"compound.routeCrossings (cyclomatic 95): compound.routeCrossings has cyclomatic complexity 95 (threshold 15). Of this number, 63 points are the body\u0027s own statements and 32 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb221dbde4d8c4ae9b3b902182a34d13c0ce11f884db7aa033c4a98cde2e5b7"}},{"ruleId":"D1","level":"warning","message":{"text":"compound.compoundLayout (cyclomatic 87): compound.compoundLayout has cyclomatic complexity 87 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (compound.compoundLayout::place) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8cb5693fcdc2f861148a58740e30ed9ac87dc9e48fa93758037079c329d6942"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.position (cyclomatic 83): layered.position has cyclomatic complexity 83 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e5e6381ba183efc9d5ac371974bf7b3b3001735ba17864b860d64b0ed566e0"}},{"ruleId":"D1","level":"warning","message":{"text":"insertEdge (cyclomatic 83): insertEdge has cyclomatic complexity 83 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b157194232898a3a643662419d62e1f94adf8ed2f43c9f8c6f51dc235268d5"}},{"ruleId":"D1","level":"warning","message":{"text":"labelAnchoring.anchorLabelsToPolyline (cyclomatic 80): labelAnchoring.anchorLabelsToPolyline has cyclomatic complexity 80 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 47 belong to 13 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"769f907ed9a4ebaca483d1c3cc2b2dcb7ee691f8dd1623ad35837371f59640e3"}},{"ruleId":"D1","level":"warning","message":{"text":"materializedGeometry.reassignCrossingExternalRailChannels (cyclomatic 77): materializedGeometry.reassignCrossingExternalRailChannels has cyclomatic complexity 77 (threshold 15). Most of this is not in the body itself: 15 of the 77 points are its own statements and the rest belongs to 11 function items inside it that branch (externalRailForSegment, candidateIsSafe, connectedComponents, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"777e8929be97dde904e98fc4e80e50f432281b9e1a03ae87d97495d91c917452"}},{"ruleId":"D1","level":"warning","message":{"text":"phase4.coordinates.assignCoordinates (cyclomatic 74): phase4.coordinates.assignCoordinates has cyclomatic complexity 74 (threshold 15). Of this number, 67 points are the body\u0027s own statements and 7 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"25eec5bc68dc4d25c44f31819503749c8eb093464d7a3d7db9e7c0fe697e6fb8"}},{"ruleId":"D1","level":"warning","message":{"text":"sequenceRenderer.drawMessage (cyclomatic 74): sequenceRenderer.drawMessage has cyclomatic complexity 74 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6c35c10b3c5bb85b5d5b1a78a7e44f860b70b9810f963000c1775815c019eb"}},{"ruleId":"D1","level":"warning","message":{"text":"renderer.draw (cyclomatic 73): renderer.draw has cyclomatic complexity 73 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 49 belong to 18 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treemap/renderer.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcdb7a242e712ea15e45312a3fa6e29bc53c420d420c2d77fea6e9115cc7c4f"}},{"ruleId":"D1","level":"warning","message":{"text":"sharedTrackNudging.nudgeSharedInteriorSubpaths (cyclomatic 72): sharedTrackNudging.nudgeSharedInteriorSubpaths has cyclomatic complexity 72 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 56 belong to 9 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/sharedTrackNudging.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cc46fe806c89ba48cbccedd058304351ac50ac472774f61df83afc6ed1a46a"}},{"ruleId":"D1","level":"warning","message":{"text":"edgeLabels.positionGridEdgeLabels (cyclomatic 72): edgeLabels.positionGridEdgeLabels has cyclomatic complexity 72 (threshold 15). Of this number, 57 points are the body\u0027s own statements and 15 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac7a137db2f0bfd99ce9471deb57f91b04b84e890404ef5a61f37fee4710fca"}},{"ruleId":"D1","level":"warning","message":{"text":"routerPlanning.assignDemandCoordinates (cyclomatic 68): routerPlanning.assignDemandCoordinates has cyclomatic complexity 68 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 28 belong to 10 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"69509855178d3bf26a08f084efe623d31275a0b2bb8ab872af29e1ad17c23ae3"}},{"ruleId":"D1","level":"warning","message":{"text":"wardleyRenderer.draw (cyclomatic 66): wardleyRenderer.draw has cyclomatic complexity 66 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 50 belong to 28 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cd316040517e8fac4205be427ba51e0c6b29fb57d60729516e8da6dd9dcf50"}},{"ruleId":"D1","level":"warning","message":{"text":"classBox.classBox (cyclomatic 62): classBox.classBox has cyclomatic complexity 62 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 16 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"858d75f22d843383b0570620ca40be061d2086d43fe856c9d103fdb6cc34052b"}},{"ruleId":"D1","level":"warning","message":{"text":"sequenceRenderer.draw (cyclomatic 58): sequenceRenderer.draw has cyclomatic complexity 58 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a295c4a0831c241954259bf2a5c356591efe7fb5d57dac575a07efb80f7e6dc"}},{"ruleId":"D1","level":"warning","message":{"text":"routePath.routePath (cyclomatic 56): routePath.routePath has cyclomatic complexity 56 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 17 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/routePath.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c801b9f5fc1449aa4e1b58e679628ed0e279976862f72fe9560ff0b91d600578"}},{"ruleId":"D1","level":"warning","message":{"text":"materializedGeometry.shortcutRedundantOrthogonalJogs (cyclomatic 55): materializedGeometry.shortcutRedundantOrthogonalJogs has cyclomatic complexity 55 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 39 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b2f109992258291f38f1dbc295b9ec9270ee6b234ee508a6be17c60332c325"}},{"ruleId":"D1","level":"warning","message":{"text":"phase2.crossCounts.computeSubtreeCrossCounts (cyclomatic 53): phase2.crossCounts.computeSubtreeCrossCounts has cyclomatic complexity 53 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 20 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossCounts.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5682f49ee408dd829a82a0796ed8491bfe245e4cc9346c2f558e375a5abafb4"}},{"ruleId":"D1","level":"warning","message":{"text":"terminalStub.collapseShortTerminalStub (cyclomatic 51): terminalStub.collapseShortTerminalStub has cyclomatic complexity 51 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/terminalStub.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c17bd3a4b1064a4b66a5ad94a8e2db6c64bd38d729cf6331a8e9e3a290ecf3"}},{"ruleId":"D1","level":"warning","message":{"text":"routerSparse.sparseContainerSegment (cyclomatic 51): routerSparse.sparseContainerSegment has cyclomatic complexity 51 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 6 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a599df094b53ba0a16cd6b33513c49360d7b56b07909426f669071007c6103e"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.settle (cyclomatic 50): layered.settle has cyclomatic complexity 50 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 13 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a7f4e3f612e10a9998f0fbc6b31462d7f8d3e6e2a2ec39c6dfefca5e7fee00"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.reduceCrossings (cyclomatic 49): layered.reduceCrossings has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (layered.reduceCrossings::count, layered.reduceCrossings::sweep) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34190f1e711fe612fec0b85344d94f57211d384963400c343c6a0946fac77ac"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowDB.addVertex (cyclomatic 48): FlowDB.addVertex has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecfbd13b5dd9853ba4b7428be191e61db85b24fabe9d786c3532b2dfa80cbbd"}},{"ruleId":"D1","level":"warning","message":{"text":"layoutCore.layoutContainer (cyclomatic 46): layoutCore.layoutContainer has cyclomatic complexity 46 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26d01948c850e76397d235585d3099bdab6ea58f72874dc77771146c6af5949"}},{"ruleId":"D1","level":"warning","message":{"text":"geometry.buildOrthogonalPortPath (cyclomatic 45): geometry.buildOrthogonalPortPath has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfbf338227e47c2e2cedeb7d8710a33337fc132b373a03a076f0cc5b8d139cb"}},{"ruleId":"D1","level":"warning","message":{"text":"siblingSharedFaceRouting.straightenCollinearSiblingDetours (cyclomatic 43): siblingSharedFaceRouting.straightenCollinearSiblingDetours has cyclomatic complexity 43 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 11 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/siblingSharedFaceRouting.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3464b51c6b95f09e9d226bf0377f6037273a69743f26ce11d30f1585a564071"}},{"ruleId":"D1","level":"warning","message":{"text":"GridEdgeRoutingSession.routePlan (cyclomatic 43): GridEdgeRoutingSession.routePlan has cyclomatic complexity 43 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 10 belong to 5 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5e9646a00eabd041976aa6b41f40b4f000d99fae694e7397b3a81baa0508ce"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentFlowDB.addVertex (cyclomatic 43): AgentFlowDB.addVertex has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"de921a6c2041ad4ef051ce4a9ce138e6ba4e6054ddc670406718f5d53c910613"}},{"ruleId":"D1","level":"warning","message":{"text":"materializedGeometry.shiftLeftLaneTitleBandsLeftOfRails (cyclomatic 42): materializedGeometry.shiftLeftLaneTitleBandsLeftOfRails has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 15 of the 42 points are its own statements and the rest belongs to 4 function items inside it that branch (validTitleRect, leftLaneTitleFor, verticalSegmentIntersectsTitle, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"1576074f152bc4e7c15327140bc833c6da74a85fc018bd5d1e9d34d7f33c66e6"}},{"ruleId":"D1","level":"warning","message":{"text":"materializedGeometry.swapDestinationTerminalTailsToReduceCrossings (cyclomatic 42): materializedGeometry.swapDestinationTerminalTailsToReduceCrossings has cyclomatic complexity 42 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 24 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"556c7e466d8b6097baa15fa5051c9b7872a3094e172ae074b78e3fa8752051a2"}},{"ruleId":"D1","level":"warning","message":{"text":"SequenceDB.apply (cyclomatic 42): SequenceDB.apply has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c4bad4248af160db2b666e3d27d60ebe479343fd5fade48e6a676450fee758"}},{"ruleId":"D1","level":"warning","message":{"text":"erBox.erBox (cyclomatic 41): erBox.erBox has cyclomatic complexity 41 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4c5970110e4e79832a363578d4cbf404da2eb2a8c04fefc84c11f549389dab"}},{"ruleId":"D1","level":"warning","message":{"text":"index.run (cyclomatic 41): index.run has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 10 of the 41 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 185, a function literal at line 302, a function literal at line 237, \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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed1acfe0b1b9be15b4c3997ea6191f74d8cd42acaa1daa46760169a4eadd09d"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowDB.getData (cyclomatic 41): FlowDB.getData has cyclomatic complexity 41 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 19 belong to 5 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"685eb00aa11635360bacea4461e4e3371ac8a0d5f2a078220c90c148ce17e9d7"}},{"ruleId":"D1","level":"warning","message":{"text":"materializedGeometry.liftTopLaneTitleBandsAboveRails (cyclomatic 40): materializedGeometry.liftTopLaneTitleBandsAboveRails has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 14 of the 40 points are its own statements and the rest belongs to 3 function items inside it that branch (topLaneTitleFor, validTitleRect, horizontalSegmentIntersectsTitle). 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb11350ba7829b57e9f23191877b11c259f382b46806fad44f1c4211bb1dfc1"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentFlowDB.getData (cyclomatic 40): AgentFlowDB.getData has cyclomatic complexity 40 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 24 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e323067d2ca5f53caa5092b216506a2ebc56e7cdbc6d426ad97e4e1d038895"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.rank (cyclomatic 39): layered.rank has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea99bf70dc228b5abbea46bd0006cb9a3ed9b921fd3eb30ebe3664404c8d5a6d"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.writeBackToLayoutData (cyclomatic 39): helpers.writeBackToLayoutData has cyclomatic complexity 39 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8504aa557e92ff36fed2160322a10c096c067ec60be0b655cc1ee7624313aa"}},{"ruleId":"D1","level":"warning","message":{"text":"routerTopology.buildEndpointRoutingOverlay (cyclomatic 39): routerTopology.buildEndpointRoutingOverlay has cyclomatic complexity 39 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 18 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"3768a8c30cc558c379f6643215740e0ba392ab20b8fdc7f315687529770f5b84"}},{"ruleId":"D1","level":"warning","message":{"text":"materializedGeometry.liftObstacleHuggingSameSideRails (cyclomatic 38): materializedGeometry.liftObstacleHuggingSameSideRails has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 11 of the 38 points are its own statements and the rest belongs to 6 function items inside it that branch (candidateIsSafe, a function literal at line 670, strictCrossingCount, \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5ec821edf2ff1f3fb6bcc3a014cf5377556ca2db8394e1d9f10d1a688b6085"}},{"ruleId":"D1","level":"warning","message":{"text":"routerCompatibility.prepareRoutingModes (cyclomatic 38): routerCompatibility.prepareRoutingModes has cyclomatic complexity 38 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d38ce2a99575a6072847750102ee95d40cb7bcfe14628a7d1bead635871435f"}},{"ruleId":"D1","level":"warning","message":{"text":"svgDraw.drawText (cyclomatic 38): svgDraw.drawText has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea7c739c9436a702d606a2f9857ad65474f08bb4b7d534af966c9bd70557067"}},{"ruleId":"D1","level":"warning","message":{"text":"materializedGeometry.collapseRedundantRectangularDoglegs::withoutDogleg (cyclomatic 37): materializedGeometry.collapseRedundantRectangularDoglegs::withoutDogleg has cyclomatic complexity 37 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8f475d3f24b6e685626c8e651072cc34c44b2e2060ad15855243f5bad41188"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentFlowDB.getSemanticModel (cyclomatic 37): AgentFlowDB.getSemanticModel has cyclomatic complexity 37 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 17 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf8f847d30eb4df77a685f5e1086f934fd4b093f797de9d690183431e737c50"}},{"ruleId":"D1","level":"warning","message":{"text":"gitGraphRenderer.drawArrow (cyclomatic 37): gitGraphRenderer.drawArrow has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"32590883f254b56b4c5cdaa393b1830974a90c11415cd5c914485d13115ff111"}},{"ruleId":"D1","level":"warning","message":{"text":"svgDraw.drawEdges (cyclomatic 36): svgDraw.drawEdges has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 1 of the 36 points is its own statement and the rest belongs to one function literal inside it that branches (line 38). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/svgDraw.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3f3599264e7b5e9cf17659a18bb9996c4a13f457dfe0267fedddbaf834563a"}},{"ruleId":"D1","level":"warning","message":{"text":"compound.compoundLayout::place (cyclomatic 35): compound.compoundLayout::place has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (compound.compoundLayout) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"293ce3f4ec5161d269438ea96fb3eef567ac4e7500cacde1c9bc73e5cd583da6"}},{"ruleId":"D1","level":"warning","message":{"text":"routerPlanning.endpointCandidates (cyclomatic 34): routerPlanning.endpointCandidates has cyclomatic complexity 34 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 15 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"e972fc682ec125ddc742193d4caf40701073d1fcdb3e153063b5e9ab2ef907a3"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.snap (cyclomatic 33): layered.snap has cyclomatic complexity 33 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 13 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72548ae9bc1f67460c4d8b93dcbcbab021c1f7ed2012ef802417b1ca8cf1d5d"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.assignTracks (cyclomatic 33): layered.assignTracks has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (layered.assignTracks::lay) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1a0d58299548b0b68d67aeb1a037966d9f25b9348f7c729497cce3b882557e"}},{"ruleId":"D1","level":"warning","message":{"text":"routerSparse.sparseSameContainerRoute::searchPairs (cyclomatic 33): routerSparse.sparseSameContainerRoute::searchPairs has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (routerSparse.sparseSameContainerRoute) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1283dc784e9035fb1cda07f186b5c4c5dbfc30228b28edb2206b88af50f2ff"}},{"ruleId":"D1","level":"warning","message":{"text":"detourSimplification.simplifyDetouredEdges (cyclomatic 32): detourSimplification.simplifyDetouredEdges has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (detourSimplification.simplifyDetouredEdges::pathConflictCount) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/detourSimplification.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc7cf4b3aca9c76459e9eac13ca4e00fda578b19afd3ed7b16a3efc332935e8"}},{"ruleId":"D1","level":"warning","message":{"text":"routerSearch.search (cyclomatic 32): routerSearch.search has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (routerSearch.search::relaxArc) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc3366fb47df2a1c9e43fcc2ec04ba7cb8594e24d08ff0c4a494916a4acf6e1"}},{"ruleId":"D1","level":"warning","message":{"text":"routerSparse.sparseSelfLoopRoute (cyclomatic 32): routerSparse.sparseSelfLoopRoute has cyclomatic complexity 32 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8d4fef80fa8e8f00a837936d4837ba6f9453ecb55fe2f665b0be93b83e92e8"}},{"ruleId":"D1","level":"warning","message":{"text":"cynefinRenderer.draw (cyclomatic 31): cynefinRenderer.draw has cyclomatic complexity 31 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ab07efc9f7960cb11e37d204393baabc0ab2b7be09ee06a7df3a0ec2c47236"}},{"ruleId":"D1","level":"warning","message":{"text":"draw::makeGrid (cyclomatic 31): draw::makeGrid 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":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a7c0c568ba1e5cdc7b41425f117c7a4864f765264fff5eb9799d88d6d750ef"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.assignTracks::lay (cyclomatic 30): layered.assignTracks::lay has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (layered.assignTracks) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7b08f365af4a7a5dffab424762ebaf1e84046a37c869f69c077daa1ddcdf53"}},{"ruleId":"D1","level":"warning","message":{"text":"c4Db.updateElStyle (cyclomatic 30): c4Db.updateElStyle has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4dd328ae16a6077d02a58da590ba372bc2f5b05de8cb5dbabceed88d30d37f"}},{"ruleId":"D1","level":"warning","message":{"text":"render.findCyclicEntryNodes (cyclomatic 30): render.findCyclicEntryNodes has cyclomatic complexity 30 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1b01817ea082d4f62a0aced904099a1e84890477740d27cb93098d93bb41fb"}},{"ruleId":"D1","level":"warning","message":{"text":"portSwap.portSwapToLShape (cyclomatic 30): portSwap.portSwapToLShape has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/portSwap.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aaf21757eac3208eba36bc62b2966360933b9dd414377613dd37ba1345c99b4"}},{"ruleId":"D1","level":"warning","message":{"text":"sequenceRenderer.getMaxMessageWidthPerActor (cyclomatic 30): sequenceRenderer.getMaxMessageWidthPerActor has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be2c91bf906a487bc43003c6e8a3e40fc9bc9c73f48b630ed07144bdc27a838"}},{"ruleId":"D1","level":"warning","message":{"text":"lrTransform.applyLrDirectionTransform (cyclomatic 29): lrTransform.applyLrDirectionTransform has cyclomatic complexity 29 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/lrTransform.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd9197001d85489e7375d67ba77edeaa09ecc0f7f571594a81e9c482b283227"}},{"ruleId":"D1","level":"warning","message":{"text":"xychartRenderer.draw (cyclomatic 29): xychartRenderer.draw has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 10 of the 29 points are its own statements and the rest belongs to 12 function items inside it that branch (getGroup, getTextAnchor, a function literal at line 127, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/xychartRenderer.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a526b672897bb4afd6859b8c24e820acc66fcc14bcd057f927a6778dc1ee8f8"}},{"ruleId":"D1","level":"warning","message":{"text":"sequenceRenderer.calculateLoopBounds (cyclomatic 28): sequenceRenderer.calculateLoopBounds has cyclomatic complexity 28 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d49f4fd85333fb60badc6eb6bc75acb6426519f197b7d49bfa45d2189657734"}},{"ruleId":"D1","level":"warning","message":{"text":"render.applyElkEdgeLayout (cyclomatic 27): render.applyElkEdgeLayout has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 8 of the 27 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 2019, 1988). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cd849f39a8198f6243d0894f7d661587336cfbc3db9c7d2b9bb3f8f75bd6af"}},{"ruleId":"D1","level":"warning","message":{"text":"validation.validateSwimlanesLayout (cyclomatic 27): validation.validateSwimlanesLayout has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/validation.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e683b9b50d988685ead0a8762c58fc53514c566c9992ec6944ff1a844517e030"}},{"ruleId":"D1","level":"warning","message":{"text":"placement.readGridConfig (cyclomatic 27): placement.readGridConfig has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"163a9788d6c009d1d53f7696a15678c832bd8e0958863a983e3fa025cacf4640"}},{"ruleId":"D1","level":"warning","message":{"text":"agentflowDb.stripLineTrailingCommas (cyclomatic 27): agentflowDb.stripLineTrailingCommas has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"409341ad05c0e0ea3b55d4cc250b3cfa3d44b5c23fa7e6ea1097571df0ad13e3"}},{"ruleId":"D1","level":"warning","message":{"text":"vennRenderer.draw (cyclomatic 27): vennRenderer.draw has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 13 of the 27 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 121, 173, 220). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c72a1e621333e1d35bc6c8d501365d01f9feaeb9906e20d313db1bf79e36041"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.alignLabels (cyclomatic 26): layered.alignLabels has cyclomatic complexity 26 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 12 belong to 4 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a6ea07c82fbb467b07177ba8dca19888611bbde2f22fc21a8c7379003662a0"}},{"ruleId":"D1","level":"warning","message":{"text":"orthogonalEdgeClipping.outlineEndpoint (cyclomatic 26): orthogonalEdgeClipping.outlineEndpoint has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/orthogonalEdgeClipping.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fa084b2f70fb773d9d5a30222bddcb1ef06d28207d9672807d1aaa0452be20"}},{"ruleId":"D1","level":"warning","message":{"text":"routerConstraint.canonicalizeOrthogonalPolyline (cyclomatic 26): routerConstraint.canonicalizeOrthogonalPolyline has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a91ce412c7464944b02f9937269fa95420d65ef7be0f11f4c34e96e95b0ef4"}},{"ruleId":"D1","level":"warning","message":{"text":"assignWithDepth.assignWithDepth (cyclomatic 25): assignWithDepth.assignWithDepth has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/assignWithDepth.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0631a0b5d9d85cecfeee1f88dfb5940748cf6a919388d97cbf2d39f3e25b18ae"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.reduceCrossings::count (cyclomatic 25): layered.reduceCrossings::count has cyclomatic complexity 25 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (layered.reduceCrossings, layered.reduceCrossings::sweep) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"cced85408d8e4d7c2da865b9434c59bca443b384165e901ec217b7bafb7881a3"}},{"ruleId":"D1","level":"warning","message":{"text":"dataFetcher.dataFetcher (cyclomatic 25): dataFetcher.dataFetcher has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/dataFetcher.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d506962ff908b8d07bb24bbb73f860baa40dae1263e7fe3c1e1847c0273cf62"}},{"ruleId":"D1","level":"warning","message":{"text":"boxDrawingPreprocessor.preprocessBoxDrawing (cyclomatic 25): boxDrawingPreprocessor.preprocessBoxDrawing has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treeView/boxDrawingPreprocessor.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd38ebc131d8c7b18d1408ede21fc0a6b65bc56f47d1209a86a0c67cb3ae7f6c"}},{"ruleId":"D1","level":"warning","message":{"text":"kanbanItem.kanbanItem (cyclomatic 24): kanbanItem.kanbanItem has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/kanbanItem.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7119f7dd9988a2a95503b501dbb80eac3dadfdc7319d4ffcfc3756c0f4ea8389"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.pastLabels (cyclomatic 24): layered.pastLabels has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf05f22b5dd8acaaa93104e4dd09797c81ea55a5adb210f8874d0c354e141e3"}},{"ruleId":"D1","level":"warning","message":{"text":"mermaidAPI.renderDiagram (cyclomatic 24): mermaidAPI.renderDiagram has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"64295ebbabdc05a1bd74fe73b7553defe7898911bf77435e2b69430c50f5da3a"}},{"ruleId":"D1","level":"warning","message":{"text":"lineJump.applyLineJumpsToSvg (cyclomatic 24): lineJump.applyLineJumpsToSvg has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2299ea2d0640d45de3d3cbae9a806fea873a62673ac955a2eb582089f60db8"}},{"ruleId":"D1","level":"warning","message":{"text":"render.straightenEdgeTerminals (cyclomatic 24): render.straightenEdgeTerminals has cyclomatic complexity 24 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 10 belong to 3 function items inside it that branch. To reduce it, 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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"523294a373231877284965e26abf39c7a7303587b87400fa4ebb36135bbcaa92"}},{"ruleId":"D1","level":"warning","message":{"text":"edgeLabels.blockedCenterIntervals (cyclomatic 24): edgeLabels.blockedCenterIntervals has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03ac9d04fa6a73c06886653cf5d85d7ad776704abc49e3965e5586feda57bbe"}},{"ruleId":"D1","level":"warning","message":{"text":"routerSearch.search::relaxArc (cyclomatic 24): routerSearch.search::relaxArc has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (routerSearch.search) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e77a249ca9766a01a36fcd68cf268355e23bfd84f3494d552200d9b04cc1f90"}},{"ruleId":"D1","level":"warning","message":{"text":"routerTopology.buildVisibilityGraph (cyclomatic 24): routerTopology.buildVisibilityGraph has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 880, addArcPair, a function literal at line 851, \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"2929209ddf2928c9dfc71bc05056fe9e945e2f941d0b4cd9100d442ae988e97a"}},{"ruleId":"D1","level":"warning","message":{"text":"blockDB.populateBlockDatabase (cyclomatic 24): blockDB.populateBlockDatabase has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/blockDB.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f452b65ece5ececbe6208296caad9f7e82c0d84a430cb8e7fef04809db6856"}},{"ruleId":"D1","level":"warning","message":{"text":"stateRenderer.renderDoc (cyclomatic 24): stateRenderer.renderDoc has cyclomatic complexity 24 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b461441e60562f6181e3c0db889c9f57f1b0f9c99e7754474a132c2ca99aa2"}},{"ruleId":"D1","level":"warning","message":{"text":"phase2.gravity.assignLayers_Gravity (cyclomatic 23): phase2.gravity.assignLayers_Gravity has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 3 function items inside it that branch (relaxOrder, a function literal at line 30, clampFeasible). 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.gravity.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3ac1d211bc5ff6a7cb15af5d5da2b7b039a56b71c036b83903b5343b584613"}},{"ruleId":"D1","level":"warning","message":{"text":"routerPlanning.resolveAmbiguousEndpointSides (cyclomatic 23): routerPlanning.resolveAmbiguousEndpointSides has cyclomatic complexity 23 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 9 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a281de37f44c2a1693b8a66e888fdf01c957409505a4b65b3c344ca12f1b22"}},{"ruleId":"D1","level":"warning","message":{"text":"gitGraphRenderer.drawCommitBullet (cyclomatic 23): gitGraphRenderer.drawCommitBullet has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"0396acd2162051fd01c3e5841ff39d5a089cc55129e1938e9f5fcb6b2db5d2ea"}},{"ruleId":"D1","level":"warning","message":{"text":"usecaseDb.getData (cyclomatic 23): usecaseDb.getData has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62788db2272f4a278ce9d7d8a93bf89376bf552064ef0aafedc23db2f1fbd32"}},{"ruleId":"D1","level":"warning","message":{"text":"PropertyOrderCollector.readString (cyclomatic 23): PropertyOrderCollector.readString has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"94de20819ea317183c5b05e3f130a4cc0a3cd31791204b5f97e01499a8f1b2d3"}},{"ruleId":"D1","level":"warning","message":{"text":"UsecaseModelBuilder.applyMetadataAssignments (cyclomatic 23): UsecaseModelBuilder.applyMetadataAssignments has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28b4a8f14a5ebcfdf9639ea38633cb7266cb0d59b7b31f170b102b5ddae5102"}},{"ruleId":"D1","level":"warning","message":{"text":"scoreLayout.computeNeighborhoodPreservation (cyclomatic 23): scoreLayout.computeNeighborhoodPreservation has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"da076f721da0f287d6d94449d8604f8d36dd87186d4ebd3de0580a9e03439e26"}},{"ruleId":"D1","level":"warning","message":{"text":"requirementBox.requirementBox (cyclomatic 22): requirementBox.requirementBox has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f613977b7ba9bf9f452229e7c9658906e6b2ee686fdab645596f9ddf2274a472"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.reduceCrossings::sweep (cyclomatic 22): layered.reduceCrossings::sweep has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (layered.reduceCrossings, layered.reduceCrossings::count) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5557e168ab3fd10885979da2d4ce6e8108960163a51f94a2cc4a2c76917e2d15"}},{"ruleId":"D1","level":"warning","message":{"text":"geometry.orthogonalSegmentsCross (cyclomatic 22): geometry.orthogonalSegmentsCross has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6cf2b372575e0515fd7bc141bc64e5f9efdc7bc398f7c08399a35524d1c45d"}},{"ruleId":"D1","level":"warning","message":{"text":"router.routeEdgesOrthogonal::crossingPenalty (cyclomatic 22): router.routeEdgesOrthogonal::crossingPenalty has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (router.routeEdgesOrthogonal) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"f306110bc0c5394318a16830e840b84072ca33224e91fffb0cc4e83d0e95e4c6"}},{"ruleId":"D1","level":"warning","message":{"text":"groups.buildGridForest (cyclomatic 22): groups.buildGridForest has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/groups.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef41e52da058c2aacfa91a6d72865134d227fa3cdcca48e2d6c460f7fdf43c1"}},{"ruleId":"D1","level":"warning","message":{"text":"routerPlanning.buildEndpointPlan (cyclomatic 22): routerPlanning.buildEndpointPlan has cyclomatic complexity 22 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b7d1ebf79c4c02dedd337e5f3b7c42780f951947dffdb8730783ae7c74c60c"}},{"ruleId":"D1","level":"warning","message":{"text":"UsecaseModelBuilder.collectElement (cyclomatic 22): UsecaseModelBuilder.collectElement has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8e1c3b5035fa73707e0442a98a19864974b31d595e9b7260c53366e353e4e9"}},{"ruleId":"D1","level":"warning","message":{"text":"util.labelHelper (cyclomatic 21): util.labelHelper has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ed4509b63df664c829ea2b10ceac4df6ab71f6f123a1e7a77f1e73d323581c"}},{"ruleId":"D1","level":"warning","message":{"text":"layoutData.toLayoutGraph (cyclomatic 21): layoutData.toLayoutGraph has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layoutData.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"764367602623f78e76b4cc000dcedb8ecf7ed1a779b2e19baa2e4c2faa719aca"}},{"ruleId":"D1","level":"warning","message":{"text":"edges.insertEdgeLabel (cyclomatic 21): edges.insertEdgeLabel has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"138d316bf653e3891304f2e6bfb8d8fface806f79f0fc258738293bcae10d677"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentFlowDB.addSubGraph (cyclomatic 21): AgentFlowDB.addSubGraph has cyclomatic complexity 21 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2b362fe8fecda83538d597b88aea1810db531da41121ef852fb41273396337"}},{"ruleId":"D1","level":"warning","message":{"text":"QuadrantBuilder.getAxisLabels (cyclomatic 21): QuadrantBuilder.getAxisLabels has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd36970cfb8f8abbaebd108d169f9e7fb33e583f085851535e0a52cec3a480c"}},{"ruleId":"D1","level":"warning","message":{"text":"styles.getStyles (cyclomatic 21): styles.getStyles has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/styles.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1a2932f4de08b9c3bba9e4a6380cfce9d3ec61c807135f6e8e5f3e15e1215f"}},{"ruleId":"D1","level":"warning","message":{"text":"layout.setBlockSizes (cyclomatic 21): layout.setBlockSizes has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/layout.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cab2472dd8d2b25cba24d63c1ac3ea68490e2711c3e958ea7b6060833c4356c"}},{"ruleId":"D1","level":"warning","message":{"text":"drawActorTypeCollections (cyclomatic 21): drawActorTypeCollections has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfacd9a91604a523c0cbce2c2ceeac6a7dc50ee811cf68dc580c7b8d73ed19a"}},{"ruleId":"D1","level":"warning","message":{"text":"drawActorTypeDatabase (cyclomatic 21): drawActorTypeDatabase has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0aaab3274dfe3443f32a6778d6c82a82f2cf052e430a5206955b957cec91c4"}},{"ruleId":"D1","level":"warning","message":{"text":"sanitizeDirective.sanitizeDirectiveValue (cyclomatic 20): sanitizeDirective.sanitizeDirectiveValue has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/sanitizeDirective.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e045b705fce655a152eb8ef0590e6facbf0710536f279c3c94c06f11fd8d46f"}},{"ruleId":"D1","level":"warning","message":{"text":"anchoredNodes.pinAnchoredNodes (cyclomatic 20): anchoredNodes.pinAnchoredNodes has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 9 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3774950a415727b8f4dd08f89d7483752940bde9e0262c710d0ce28aa15b19ad"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentFlowDB.rethrowMetadataYamlError (cyclomatic 20): AgentFlowDB.rethrowMetadataYamlError has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"4634dfc2d583dab504edc9d94e6e25a2666317078f5b4845b622e3e123d74c24"}},{"ruleId":"D1","level":"warning","message":{"text":"gitGraphAst.merge (cyclomatic 20): gitGraphAst.merge has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb910588ef75c5456c7d28b78a5185c5566c16ef79b29b1ccd203983f1e8873"}},{"ruleId":"D1","level":"warning","message":{"text":"gitGraphAst.cherryPick (cyclomatic 20): gitGraphAst.cherryPick has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff48a98c76203f565be5e87ce8895f6d9215c6e12163ca54b85801e4043e06e6"}},{"ruleId":"D1","level":"warning","message":{"text":"gitGraphRenderer.drawBranches (cyclomatic 20): gitGraphRenderer.drawBranches has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 878). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d0de1c06d73c63471931a75d2f66645a124aa2bd030f50266a5a837dda50f8"}},{"ruleId":"D1","level":"warning","message":{"text":"SequenceDB.addActor (cyclomatic 20): SequenceDB.addActor has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"387d45dcbdf11cb5d6f89a1c0a6021854f5a00199a07225dcc9a6eafa7c33762"}},{"ruleId":"D1","level":"warning","message":{"text":"PropertyOrderCollector.consumeNumber (cyclomatic 20): PropertyOrderCollector.consumeNumber has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d641541b3fbca5936c36c4b60ceea644b805eeb3572121b572961a3bfdaa3731"}},{"ruleId":"D1","level":"warning","message":{"text":"wardleyParser.populateDb (cyclomatic 20): wardleyParser.populateDb has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 99, 148, 174, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyParser.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e34bc0a2fa2255ae19b8a27a228282f4e8cfa657fb77e93e7a5e48d911ef888"}},{"ruleId":"D1","level":"warning","message":{"text":"scoreLayout.scoreLayout (cyclomatic 20): scoreLayout.scoreLayout has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0ccc543c328cd11f2c7371449ee043fa062c55e6a70bd162b96798c20927a1"}},{"ruleId":"D1","level":"warning","message":{"text":"layout.calculateEdgePositions (cyclomatic 19): layout.calculateEdgePositions has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to one function literal inside it that branches (line 465). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4e4043bbfe72b3089f4eb09e9f021089e8853a0dc13c27c60b233af961433d"}},{"ruleId":"D1","level":"warning","message":{"text":"gridPlacement.validateGridPlacementCoordinates (cyclomatic 19): gridPlacement.validateGridPlacementCoordinates has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/gridPlacement.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d848c15242b8826e36373cca4c985a7b2e2016999b2889008f1ca5e14cd3a8b"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassMember.parseMember (cyclomatic 19): ClassMember.parseMember has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classTypes.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f677ab226d10c568df969b711132f4b4adc2d7f1929d78407ea8b72aa7d16623"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.straighten (cyclomatic 19): layered.straighten has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf30d02675157ee98fb3a5ca8dd6e7e67a7c01e2accda1f1d26a0018fc4e912"}},{"ruleId":"D1","level":"warning","message":{"text":"c4Db.addRel (cyclomatic 19): c4Db.addRel has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b8954f34016dce2cb99406fc5056947d312dfafab5e2a29e459b741c087165"}},{"ruleId":"D1","level":"warning","message":{"text":"mermaid-graphlib.adjustClustersAndEdges (cyclomatic 19): mermaid-graphlib.adjustClustersAndEdges has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2542b8617ae2f41245573116219d5b227eb9efa75eaa75acd6a7c5ddfe5668"}},{"ruleId":"D1","level":"warning","message":{"text":"lineJump.rewriteEdgePath (cyclomatic 19): lineJump.rewriteEdgePath has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e79a1a4ac31c5a3d482a19d76210283942eb1520a9de29d45a80d681be0e49"}},{"ruleId":"D1","level":"warning","message":{"text":"render.sanitizeElkEdgePoints (cyclomatic 19): render.sanitizeElkEdgePoints has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2504}}}],"partialFingerprints":{"codehealthFindingId/v1":"70dfe0ae411667361564d1365bd92753180b5e169975a34326f869c1673d39b3"}},{"ruleId":"D1","level":"warning","message":{"text":"phase2.crossLaneAdjust.adjustCrossLaneSources (cyclomatic 19): phase2.crossLaneAdjust.adjustCrossLaneSources has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossLaneAdjust.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4888a5f4dbfd84c734f20d65087f69919ce33a8adeecd3151b413363b40b76f"}},{"ruleId":"D1","level":"warning","message":{"text":"edgeLabels.rerouteSegmentAroundRect (cyclomatic 19): edgeLabels.rerouteSegmentAroundRect has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"5681107303e937f95fe030c4945d2c553c915e136b9eb8525ae5938d0a980ab7"}},{"ruleId":"D1","level":"warning","message":{"text":"routerSparse.sparseSameContainerRoute (cyclomatic 19): routerSparse.sparseSameContainerRoute has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (routerSparse.sparseSameContainerRoute::searchPairs) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e28367e53d4aa6866cd6b36564e09365b36e46c50b106fb6902828dc1b16ea"}},{"ruleId":"D1","level":"warning","message":{"text":"QuadrantBuilder.getDefaultConfig (cyclomatic 19): QuadrantBuilder.getDefaultConfig has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d2a691566963fc9f13a7fe690454f1c0409a6c77eb0e9c40e66c176204fbbe"}},{"ruleId":"D1","level":"warning","message":{"text":"sequenceRenderer.buildMessageModel (cyclomatic 19): sequenceRenderer.buildMessageModel has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceff1640bce82feaac4d05d307e56274afc0dc1868ecb0ef13bb12dcfc120d45"}},{"ruleId":"D1","level":"warning","message":{"text":"kanbanDb.addNode (cyclomatic 19): kanbanDb.addNode has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d50aff3e81e485a8226ea39b2e312efe9ef0d1d414214c252785f18531e212d"}},{"ruleId":"D1","level":"warning","message":{"text":"db.calculateSwimlaneProps (cyclomatic 19): db.calculateSwimlaneProps has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/eventmodeling/db.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d89ba5c1db708432c6f8a96cf6050c15a2442569c858ce476f1d11d0c0f9c2"}},{"ruleId":"D1","level":"warning","message":{"text":"getStyles (cyclomatic 19): getStyles has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/styles.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b59edd7eed9d61b66294dd80a51c5071b8aa6be55963710de37725a555b0f70"}},{"ruleId":"D1","level":"warning","message":{"text":"drawActorTypeParticipant (cyclomatic 19): drawActorTypeParticipant has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea684e96c604a889184ee9b3b13c9a51db3084ee57e7bab1a041d62dff4ef1cf"}},{"ruleId":"D1","level":"warning","message":{"text":"gridPlacement.sanitizeGridPlacements (cyclomatic 18): gridPlacement.sanitizeGridPlacements has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/gridPlacement.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"88526c3ba7e50cf59ac5ef77751c0b8f96fd40fd43030bea4c916bed5aa39b5e"}},{"ruleId":"D1","level":"warning","message":{"text":"regexes.matchFrontMatter (cyclomatic 18): regexes.matchFrontMatter has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagram-api/regexes.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a067cc2f5ee38e07a7c787b2fb2586ea55478ad5f1587aef97e56d87bba859"}},{"ruleId":"D1","level":"warning","message":{"text":"anchoredNodes.clearAnchoredOverlaps (cyclomatic 18): anchoredNodes.clearAnchoredOverlaps has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"13600713b6333d6af54574ab397f9a3e0bd3e0d7416f857a1745623ed8e9a7e6"}},{"ruleId":"D1","level":"warning","message":{"text":"driving-tree.buildDrivingTree (cyclomatic 18): driving-tree.buildDrivingTree has cyclomatic complexity 18 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/driving-tree.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ea1b5694b6a1e1e4507f60876c827ebdec5733345a8a18363268b033164cfe"}},{"ruleId":"D1","level":"warning","message":{"text":"geometry.segmentsCross (cyclomatic 18): geometry.segmentsCross has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc935ba4c458afa3c8e5b3a17fcdbb00bb96423ce20b9c88ab6ad6ba50445cf"}},{"ruleId":"D1","level":"warning","message":{"text":"edgeLabels.labelPlacementWithExtendedDetour (cyclomatic 18): edgeLabels.labelPlacementWithExtendedDetour has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1897}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa78406063d3da3a6a1a78e78dce9133b2703efa0323705e319d659c1d54820"}},{"ruleId":"D1","level":"warning","message":{"text":"routerCompatibility.labelAwareSelfLoopCandidates (cyclomatic 18): routerCompatibility.labelAwareSelfLoopCandidates has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0c8c3a91e145a2a8d0d4a1c8c0c5351ed4d7a566f22c6314fc058bc56bc570"}},{"ruleId":"D1","level":"warning","message":{"text":"layout.layoutBlocks (cyclomatic 18): layout.layoutBlocks has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/layout.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c246332113ecd73b527e56d2377884bf4e4b078c817becc8d7cb5ed9de8ce3da"}},{"ruleId":"D1","level":"warning","message":{"text":"UsecaseModelBuilder.applyActorProperty (cyclomatic 18): UsecaseModelBuilder.applyActorProperty has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"de979bcc47b809ee47a8f529d85636860e0cb33203412abbc7e37f7869213e5a"}},{"ruleId":"D1","level":"warning","message":{"text":"svgDraw.drawEdge (cyclomatic 18): svgDraw.drawEdge has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fcd241f86af8b7a09d9336cbe92e6d2c8393f98f47d9a9f3fb41b68285a920"}},{"ruleId":"D1","level":"warning","message":{"text":"drawActorTypeQueue (cyclomatic 18): drawActorTypeQueue has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f9697b71278b76b9aaad98726cc7ee33ae0337261eaa4a4381e1b22f903379"}},{"ruleId":"D1","level":"warning","message":{"text":"swimlane (cyclomatic 18): swimlane has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d868f1e01c10e2407c53d12a7f8349d9d366adff6ce4178732d65be5a83238f0"}},{"ruleId":"D1","level":"warning","message":{"text":"layout.intersection (cyclomatic 17): layout.intersection has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"617420aabdefbaf7da89d2bbfaec0d1808d0210d1ba944fb98e44b97bfa630b7"}},{"ruleId":"D1","level":"warning","message":{"text":"linedCylinder.linedCylinder (cyclomatic 17): linedCylinder.linedCylinder has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0adc716c9a5aa7dd17529e09e6e642d206cf68ea448d46ede3e4d14e553237"}},{"ruleId":"D1","level":"warning","message":{"text":"waveEdgedRectangle.waveEdgedRectangle (cyclomatic 17): waveEdgedRectangle.waveEdgedRectangle has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/waveEdgedRectangle.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"517175f5ad6850edd01e3129e23272123385bbf807ea90d17621dfa1cb1840c1"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.sortByBary (cyclomatic 17): layered.sortByBary has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"6064c36e459a876961d75c0f384d7f54f0dad2a85b1d701e403cca90066ecef6"}},{"ruleId":"D1","level":"warning","message":{"text":"render.straightenFront (cyclomatic 17): render.straightenFront has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a847878c4054300e6b466a8e6824b5ff0b6d3522bf73562bae434781dfd55a"}},{"ruleId":"D1","level":"warning","message":{"text":"detourSimplification.simplifyDetouredEdges::pathConflictCount (cyclomatic 17): detourSimplification.simplifyDetouredEdges::pathConflictCount has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (detourSimplification.simplifyDetouredEdges) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/detourSimplification.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7684ec0af4d76898a3a03b891e527796c1bedaaa9957e191d9db1a92597ae9"}},{"ruleId":"D1","level":"warning","message":{"text":"laneOrdering.buildWeightedLaneEdges (cyclomatic 17): laneOrdering.buildWeightedLaneEdges has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/laneOrdering.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ba662a41c2d2893ce19010c9697784138116d880c7a21bf08209d0df22b51b"}},{"ruleId":"D1","level":"warning","message":{"text":"edgeLabels.labelPlacementWithDetour (cyclomatic 17): edgeLabels.labelPlacementWithDetour has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1992}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a541e0a5e433b2ffcdf336c34f9c92c28620eee1ae28a87b5708dc1223d1c05"}},{"ruleId":"D1","level":"warning","message":{"text":"routerTopology.buildPairedPortal (cyclomatic 17): routerTopology.buildPairedPortal has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"411e2964a693cb1e7df08f73b3822da58ddca044b588d79f0e20b35d5a92ada2"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassDB.getData (cyclomatic 17): ClassDB.getData has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e74893dac41ad44d9b48485a8150cc079fe3f9b2233b6f243c2237a4d4920c"}},{"ruleId":"D1","level":"warning","message":{"text":"ArchitectureDB.addEdge (cyclomatic 17): ArchitectureDB.addEdge 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":"packages/mermaid/src/diagrams/architecture/architectureDb.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53044f5b3eaeebf5892528265a34aedf90a85f58f5d430ff3b88d0527eb95d8"}},{"ruleId":"D1","level":"warning","message":{"text":"ArchitectureDB.getDataStructures (cyclomatic 17): ArchitectureDB.getDataStructures has cyclomatic complexity 17 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureDb.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c10585fb8589746b962d31d55bc8663a72ee2971daabc614021f1e9cdd80f6"}},{"ruleId":"D1","level":"warning","message":{"text":"UsecaseModelBuilder.validateRelationship (cyclomatic 17): UsecaseModelBuilder.validateRelationship has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca615360f6fdbf5cf96e35fd5db699d5d7ee0ee0790079f1df20fc3d2b5c1c9"}},{"ruleId":"D1","level":"warning","message":{"text":"usecaseRenderer.annotateUsecaseElements (cyclomatic 17): usecaseRenderer.annotateUsecaseElements has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseRenderer.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"294bc1af42f7b711560740090ef37e1be21b31ea29bf7211b60071578c609fb8"}},{"ruleId":"D1","level":"warning","message":{"text":"parseToLayoutData.stampRendererFields (cyclomatic 17): parseToLayoutData.stampRendererFields 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":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/parseToLayoutData.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60a0218ce34150577d75e9f974b82643027125cbbc9e173ca7a4f78cb2b58cc"}},{"ruleId":"D1","level":"warning","message":{"text":"scoreLayout.hasDiagonalRenderedEndpoint (cyclomatic 17): scoreLayout.hasDiagonalRenderedEndpoint has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"488630a64afe0a130580dd193be6da7c9ae50771d2820dce49135482eaad1510"}},{"ruleId":"D1","level":"warning","message":{"text":"scoreLayout.computeRankFaithfulness (cyclomatic 17): scoreLayout.computeRankFaithfulness has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"703ac283f6f4b447b09557913ae499b1a638eaa3a92eccccde0602fdebcff79f"}},{"ruleId":"D1","level":"warning","message":{"text":"drawActorTypeEntity (cyclomatic 17): drawActorTypeEntity has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"efde458af2fd89a10fbe3b7513526266e48e62ea54ad42559237c897ad02e5de"}},{"ruleId":"D1","level":"warning","message":{"text":"logger.setLogLevel (cyclomatic 16): logger.setLogLevel has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/logger.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7575be8ea7c77a0eb074a49a2f56dc85eb9733e4cc0f3373ef04cc2c2ea0f744"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.detectDirective (cyclomatic 16): utils.detectDirective has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bbd2ba89c66d55eebca3ba4d0c4b686b77e02c0ab7fcbeff8d84917fe202a6"}},{"ruleId":"D1","level":"warning","message":{"text":"tiltedCylinder.tiltedCylinder (cyclomatic 16): tiltedCylinder.tiltedCylinder has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0508a0eed58fbe84b5b1fc119664ceae5e70fd3a779c69cd4aa16eeaca8a3a"}},{"ruleId":"D1","level":"warning","message":{"text":"layered.sideEnds (cyclomatic 16): layered.sideEnds has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to 4 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa83f85dd7aa945398daa7988c7001e4d3783721fdbf458c3ac9b22326bfcdf"}},{"ruleId":"D1","level":"warning","message":{"text":"lineWithOffset.getLineFunctionsWithOffset.x (cyclomatic 16): lineWithOffset.getLineFunctionsWithOffset.x has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (lineWithOffset.getLineFunctionsWithOffset.y) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/lineWithOffset.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c57bd24a666a10566292728147c3c81bb06ec71cef940ba4366a3fb90f76b7"}},{"ruleId":"D1","level":"warning","message":{"text":"lineWithOffset.getLineFunctionsWithOffset.y (cyclomatic 16): lineWithOffset.getLineFunctionsWithOffset.y has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (lineWithOffset.getLineFunctionsWithOffset.x) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/lineWithOffset.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a606af2897a8cbc6a883db69bcbfc8246cfdf822a3dcf1d719d0d93932eb4a24"}},{"ruleId":"D1","level":"warning","message":{"text":"mermaid-graphlib.extractor (cyclomatic 16): mermaid-graphlib.extractor has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ca9cae504bf136ba190b61470d4551ab36768846df4a6e698d09fe65f9d349"}},{"ruleId":"D1","level":"warning","message":{"text":"phase3.ordering.transposeImprove (cyclomatic 16): phase3.ordering.transposeImprove has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase3.ordering.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5937cc06ef29b46d2aef8cc156a45692508d1f707593e308aebad253cece754a"}},{"ruleId":"D1","level":"warning","message":{"text":"labelSpacing.deriveGridContainerLabelGaps (cyclomatic 16): labelSpacing.deriveGridContainerLabelGaps has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/labelSpacing.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"475e1fd788c79be39d8fcf4c2de4c8094a4e9fd3b2ec47a02d440523c51ce0f4"}},{"ruleId":"D1","level":"warning","message":{"text":"routerPlanning.allocateEndpointSlots (cyclomatic 16): routerPlanning.allocateEndpointSlots has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4da33be8002a8b16167fb7d392c6b335f1ec378cb3e81d2020beef8d56d8099"}},{"ruleId":"D1","level":"warning","message":{"text":"routerCompatibility.routeWithinContainer (cyclomatic 16): routerCompatibility.routeWithinContainer has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a26cb11b21d6d9d28990fbd810669d42937bd379a9e33bfc27fa564fd4d5e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ganttDb.getStartDate (cyclomatic 16): ganttDb.getStartDate has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"769bfd1c449cf096612a723b5e5e92998066fcdc7a59cd959795401a21e04728"}},{"ruleId":"D1","level":"warning","message":{"text":"styles.getStyles (cyclomatic 16): styles.getStyles has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/user-journey/styles.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e69b4810a5b188f2ccf042eb9209cbefdb439083a7b8fae394c8ddd6442b404"}},{"ruleId":"D1","level":"warning","message":{"text":"timelineRenderer.draw (cyclomatic 16): timelineRenderer.draw has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99176c56f6b0f8306a8016a7545196620a788bf990fb61e352ca1f2c8684be8"}},{"ruleId":"D1","level":"warning","message":{"text":"styles.genSections (cyclomatic 16): styles.genSections has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/mindmap/styles.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"209659a04c51ab1f3313a216c81442291be563814a0cff802170f3fdd64e4bef"}},{"ruleId":"D1","level":"warning","message":{"text":"sankeyRenderer.draw (cyclomatic 16): sankeyRenderer.draw has cyclomatic complexity 16 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 6 belong to 3 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8339c53f945fdba0ef4d8ac3a37f6173d4a6f15817f87e8a81e699d62240e53"}},{"ruleId":"D1","level":"warning","message":{"text":"runner.matchExpected (cyclomatic 16): runner.matchExpected has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/conformance/runner.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ab0cabcffb6031bf04798e123db1e9c7a45458d931a9767a8278d012b77eb9"}},{"ruleId":"D2","level":"warning","message":{"text":"router.routeEdgesOrthogonal (cognitive 514): router.routeEdgesOrthogonal has cognitive complexity 514 (threshold 15). Drivers by points: if/else 188 (451 pts), ternaries 48 (124 pts), boolean chains 119, loops 56 (104 pts), match/switch 1 (nesting depth added 387). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: 2 other methods here (router.routeEdgesOrthogonal::crossingPenalty, router.routeEdgesOrthogonal::fixPipeCrossings) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6e5906a2072f770108f71822916279e257f0621f2a70fe7e3c0d2ba4f832d4"}},{"ruleId":"D2","level":"warning","message":{"text":"validateLayout.validateLayout (cognitive 424): validateLayout.validateLayout has cognitive complexity 424 (threshold 15). Drivers by points: if/else 72 (220 pts), ternaries 26 (87 pts), loops 39 (74 pts), boolean chains 43 (nesting depth added 244). Of this number, 411 points are the body\u0027s own statements and 13 belong to 6 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63091f275e0685634434620861015d2d0466c2b3f8860a3d8d8f08a03fffc89"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.layered (cognitive 334): layered.layered has cognitive complexity 334 (threshold 15). Drivers by points: if/else 73 (154 pts), loops 59 (99 pts), ternaries 25 (46 pts), boolean chains 35 (nesting depth added 142). Of this number, 301 points are the body\u0027s own statements and 33 belong to 13 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"03547c79d559620b5f1e04764d8481a2ad8765bf891f14d757286a691cef0242"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 295): updateColors has cognitive complexity 295 (threshold 15). Drivers by points: boolean chains 262, other 10, if/else 8 (9 pts), loops 6 (8 pts), ternaries 6 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e39cceac66efe81a053a7f549618946a9b9de027492117e657734f071ee8ec9"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 221): updateColors has cognitive complexity 221 (threshold 15). Drivers by points: boolean chains 196, loops 6 (8 pts), if/else 6 (7 pts), ternaries 7, other 3 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8092daac3fcd86594659d2a1b434d851b2ed23b034e6c705c392db39fd88207a"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 220): updateColors has cognitive complexity 220 (threshold 15). Drivers by points: boolean chains 196, loops 6 (8 pts), if/else 6 (7 pts), ternaries 7, other 2 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a07302008f2c2d0256ed0516800517f03203dce7dc6d5d0bc4460bb4da3471"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 220): updateColors has cognitive complexity 220 (threshold 15). Drivers by points: boolean chains 196, loops 6 (8 pts), if/else 6 (7 pts), ternaries 7, other 2 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4945599890e4390b4b7a0180e469b908169d9fa8ec2d1b0b61f6331c8075d5ae"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 210): updateColors has cognitive complexity 210 (threshold 15). Drivers by points: boolean chains 184, loops 7 (9 pts), if/else 6 (7 pts), ternaries 7, other 3 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5e9e6ac7a1a0b2f1efda935a42d80184ca6ecf78fe07f0f5a483ba32e25c7d"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 204): updateColors has cognitive complexity 204 (threshold 15). Drivers by points: boolean chains 184, other 10, loops 4 (5 pts), if/else 3, ternaries 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c402df08386149def28f3ac47cf0546bfdc3cde177494307cccf3441f8747a8"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 201): updateColors has cognitive complexity 201 (threshold 15). Drivers by points: boolean chains 178, loops 7, ternaries 7, if/else 4 (5 pts), other 4 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adaa1f064c0506b7f9d29e920aaa2a2981b80bc343b3c502dbc32eaf4a43fb0"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 200): updateColors has cognitive complexity 200 (threshold 15). Drivers by points: boolean chains 182, other 10, loops 4, if/else 2, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41358959699c05fb1660f4f03608dd1697b9af7cbd245fd7ae90466b12915f7"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 198): updateColors has cognitive complexity 198 (threshold 15). Drivers by points: boolean chains 176, ternaries 7, loops 6, if/else 4 (5 pts), other 4 (nesting depth added 1). Of this number, 197 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark-color.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df58ce687e46f31258e8a2c70e53bebfcd4c3dcd72876d9a46ba3756f05647a"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.position (cognitive 197): layered.position has cognitive complexity 197 (threshold 15). Drivers by points: if/else 23 (72 pts), loops 30 (62 pts), ternaries 17 (54 pts), boolean chains 9 (nesting depth added 118). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2340}}}],"partialFingerprints":{"codehealthFindingId/v1":"02071b645e1ef644b7314a9f4c8adda77fe24865083a88a035037819a6f0ad39"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 188): updateColors has cognitive complexity 188 (threshold 15). Drivers by points: boolean chains 176, loops 6, other 3, ternaries 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb2fc2a68b1b140447d9c617a20bed3f56e8c7f465f8a082c6ca6f1b762e7cf"}},{"ruleId":"D2","level":"warning","message":{"text":"compound.compoundLayout (cognitive 177): compound.compoundLayout has cognitive complexity 177 (threshold 15). Drivers by points: if/else 71 (145 pts), loops 48 (90 pts), ternaries 26 (65 pts), boolean chains 33 (nesting depth added 155). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (compound.compoundLayout::place) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e961aa929d8937f4cdc29eea7cf064c19527187f46e32889ef05995aaefc466"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.positionGridEdgeLabels (cognitive 174): edgeLabels.positionGridEdgeLabels has cognitive complexity 174 (threshold 15). Drivers by points: if/else 39 (112 pts), loops 19 (44 pts), boolean chains 11, ternaries 2 (5 pts), error handling 1 (2 pts) (nesting depth added 102). Of this number, 154 points are the body\u0027s own statements and 20 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dd49eea4147a9de50f09bc3e3183bef8d15cee8256c9c279c17199aece1f95"}},{"ruleId":"D2","level":"warning","message":{"text":"updateColors (cognitive 174): updateColors has cognitive complexity 174 (threshold 15). Drivers by points: boolean chains 160, loops 6, if/else 2 (3 pts), other 3, ternaries 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neutral.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed19b020b608ee94b2b67b2cf4dcc694951ad165afd988542751c9dfe5deafd2"}},{"ruleId":"D2","level":"warning","message":{"text":"compound.routeCrossings (cognitive 154): compound.routeCrossings has cognitive complexity 154 (threshold 15). Drivers by points: if/else 19 (54 pts), ternaries 12 (38 pts), loops 18 (36 pts), boolean chains 26 (nesting depth added 79). Of this number, 135 points are the body\u0027s own statements and 19 belong to 7 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"313069f6c5ccd500b1fda6a9087bf64c15f23a34c6c5653a207225bcb75f0359"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.separateSharedRenderedTerminalLanes (cognitive 138): materializedGeometry.separateSharedRenderedTerminalLanes has cognitive complexity 138 (threshold 15). Drivers by points: if/else 30 (54 pts), ternaries 18 (35 pts), boolean chains 34, loops 5 (15 pts) (nesting depth added 51). Of this number, 57 points are the body\u0027s own statements and 81 belong to 14 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d537363aec11c55cfe5e0525623cc14ef101dae48e50ce2e4886c279e2c2691c"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.settle (cognitive 125): layered.settle has cognitive complexity 125 (threshold 15). Drivers by points: if/else 14 (46 pts), loops 11 (38 pts), ternaries 10 (30 pts), boolean chains 11 (nesting depth added 79). Of this number, 114 points are the body\u0027s own statements and 11 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"9763422ad5500ddd548454fd744398fb221172e44b13cf5a2daa7e730de4b5ed"}},{"ruleId":"D2","level":"warning","message":{"text":"phase4.coordinates.assignCoordinates (cognitive 114): phase4.coordinates.assignCoordinates has cognitive complexity 114 (threshold 15). Drivers by points: loops 31 (45 pts), if/else 21 (42 pts), ternaries 9 (19 pts), boolean chains 8 (nesting depth added 45). Of this number, 107 points are the body\u0027s own statements and 7 belong to 7 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2b27e719c9a850d2dcc313bcec41981091390d9b0023a92c2c80d617fc1bab"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.writeBackToLayoutData (cognitive 104): helpers.writeBackToLayoutData has cognitive complexity 104 (threshold 15). Drivers by points: if/else 20 (56 pts), loops 13 (39 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 64). Of this number, 103 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cca676df82cf8903af088be34e4b068d5bf5b2c97e8558b490b0c52f7581196"}},{"ruleId":"D2","level":"warning","message":{"text":"routerPlanning.assignDemandCoordinates (cognitive 104): routerPlanning.assignDemandCoordinates has cognitive complexity 104 (threshold 15). Drivers by points: if/else 19 (43 pts), ternaries 12 (31 pts), boolean chains 24, loops 5 (6 pts) (nesting depth added 44). Of this number, 62 points are the body\u0027s own statements and 42 belong to 10 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"702f04ca3d9e6e4f369577387ae7037e870650252f157f054933baa7f01d94ea"}},{"ruleId":"D2","level":"warning","message":{"text":"gitGraphRenderer.drawArrow (cognitive 94): gitGraphRenderer.drawArrow has cognitive complexity 94 (threshold 15). Drivers by points: if/else 38 (82 pts), boolean chains 8, ternaries 2 (4 pts) (nesting depth added 46). 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":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"5feca2be36660b0303533a6b441b751dd605f91c50c69a970233370d6c323136"}},{"ruleId":"D2","level":"warning","message":{"text":"routerSearch.search (cognitive 93): routerSearch.search has cognitive complexity 93 (threshold 15). Drivers by points: if/else 35 (47 pts), boolean chains 23, loops 10 (14 pts), ternaries 4 (9 pts) (nesting depth added 21). Of this number, 49 points are the body\u0027s own statements and 44 belong to 10 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"376f72421de2db7c546730c8f098b034113851c9e96b880bd5c308ef0c9845bc"}},{"ruleId":"D2","level":"warning","message":{"text":"routerSparse.sparseContainerSegment (cognitive 93): routerSparse.sparseContainerSegment has cognitive complexity 93 (threshold 15). Drivers by points: if/else 18 (50 pts), boolean chains 21, loops 4 (11 pts), ternaries 4 (10 pts), error handling 1 (nesting depth added 45). Of this number, 87 points are the body\u0027s own statements and 6 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2e2a0025949ffa791b01ff385905b266a327802e78f47a2b92be00a0a114e4"}},{"ruleId":"D2","level":"warning","message":{"text":"renderer.draw (cognitive 93): renderer.draw has cognitive complexity 93 (threshold 15). Drivers by points: if/else 30 (45 pts), ternaries 21 (24 pts), boolean chains 19, loops 3 (4 pts), error handling 1 (nesting depth added 19). Of this number, 25 points are the body\u0027s own statements and 68 belong to 18 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treemap/renderer.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c1a8dba0addb28c396d0fcde0d9cd8e48a98602998636b91ac307fa2da6534"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.swapDestinationTerminalTailsToReduceCrossings (cognitive 91): materializedGeometry.swapDestinationTerminalTailsToReduceCrossings has cognitive complexity 91 (threshold 15). Drivers by points: if/else 19 (52 pts), loops 14 (30 pts), boolean chains 8, ternaries 1 (nesting depth added 49). Of this number, 46 points are the body\u0027s own statements and 45 belong to 7 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35e3c43d581924485c360725c863ebf076adbc95dbebe7b156a7dbbc3d8e059"}},{"ruleId":"D2","level":"warning","message":{"text":"terminalStub.collapseShortTerminalStub (cognitive 88): terminalStub.collapseShortTerminalStub has cognitive complexity 88 (threshold 15). Drivers by points: if/else 29 (81 pts), loops 5 (13 pts), boolean chains 12, ternaries 2 (5 pts) (nesting depth added 63). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (terminalStub.collapseShortTerminalStub::segmentCrossesOtherEdge) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/terminalStub.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a157c384e777edfebd5aaeaf4c02c3667a26ccd46a03a8a34625dc3cdc59fe"}},{"ruleId":"D2","level":"warning","message":{"text":"insertEdge (cognitive 85): insertEdge has cognitive complexity 85 (threshold 15). Drivers by points: ternaries 16 (36 pts), if/else 21 (26 pts), boolean chains 16, match/switch 3, other 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec84200a2803e651df77360e9d055e0780f9132ee1042d17b9246c061bc24b5"}},{"ruleId":"D2","level":"warning","message":{"text":"wardleyRenderer.draw (cognitive 82): wardleyRenderer.draw has cognitive complexity 82 (threshold 15). Drivers by points: if/else 32 (43 pts), ternaries 19 (21 pts), boolean chains 11, loops 3 (7 pts) (nesting depth added 17). Of this number, 21 points are the body\u0027s own statements and 61 belong to 28 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8e05b6cf1e505f8bbf635830fe8195c4cc52e3b7aa45d4cd1ef55e2e63e0e3"}},{"ruleId":"D2","level":"warning","message":{"text":"detourSimplification.simplifyDetouredEdges (cognitive 81): detourSimplification.simplifyDetouredEdges has cognitive complexity 81 (threshold 15). Drivers by points: if/else 32 (86 pts), loops 9 (18 pts), boolean chains 10 (nesting depth added 63). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (detourSimplification.simplifyDetouredEdges::pathConflictCount) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/detourSimplification.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"825c24f2794be42a9ff6a8f0c5014c003fd3f04fcd45a72fd68e3eca9401a7f1"}},{"ruleId":"D2","level":"warning","message":{"text":"siblingSharedFaceRouting.straightenCollinearSiblingDetours (cognitive 76): siblingSharedFaceRouting.straightenCollinearSiblingDetours has cognitive complexity 76 (threshold 15). Drivers by points: if/else 26 (59 pts), boolean chains 6, ternaries 4 (6 pts), loops 4 (5 pts) (nesting depth added 36). Of this number, 61 points are the body\u0027s own statements and 15 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/siblingSharedFaceRouting.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9657ac225cd08902d3f12d6d10f01ea8b383620a817eddb90af393b1753cd650"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowDB.addVertex (cognitive 74): FlowDB.addVertex has cognitive complexity 74 (threshold 15). Drivers by points: if/else 39 (65 pts), boolean chains 9 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f9373374727ce0c1bbab53a011fbb4f1967f4ee819efe9a9bc29845aa1a298"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.reduceCrossings (cognitive 73): layered.reduceCrossings has cognitive complexity 73 (threshold 15). Drivers by points: if/else 44 (110 pts), loops 50 (102 pts), ternaries 22 (30 pts), boolean chains 14 (nesting depth added 126). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (layered.reduceCrossings::count, layered.reduceCrossings::sweep, layered.reduceCrossings::transpose) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c3eea5e449bf9119600b79752a0beb73fb8fadfb138fbd4236a3585a37bfe8"}},{"ruleId":"D2","level":"warning","message":{"text":"layoutCore.layoutContainer (cognitive 69): layoutCore.layoutContainer has cognitive complexity 69 (threshold 15). Drivers by points: ternaries 21 (33 pts), if/else 11 (21 pts), loops 10 (14 pts), boolean chains 1 (nesting depth added 26). Of this number, 68 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e46b888f3c8fae743fdf79f2a503223891adcc76c0215ecd0949d757462581"}},{"ruleId":"D2","level":"warning","message":{"text":"render.findCyclicEntryNodes (cognitive 68): render.findCyclicEntryNodes has cognitive complexity 68 (threshold 15). Drivers by points: if/else 12 (35 pts), loops 11 (24 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 40). Of this number, 56 points are the body\u0027s own statements and 12 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6dfacad5a3a2ff841edff3ca0b758d073155296c2d465b38aa78995b621991"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.assignTracks::lay (cognitive 67): layered.assignTracks::lay has cognitive complexity 67 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 13 (27 pts), ternaries 4 (8 pts), boolean chains 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (layered.assignTracks) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c8e9c2d28db129d70d1d070091977d386f5f7a8697454b88adfd51a6919ac7"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentFlowDB.addVertex (cognitive 67): AgentFlowDB.addVertex has cognitive complexity 67 (threshold 15). Drivers by points: if/else 33 (49 pts), boolean chains 9, error handling 2 (6 pts), ternaries 1 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceba0694d64874cf96b53ed23cdc548bfc63864d8fd9fcd710e2f81f4967680d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentFlowDB.getSemanticModel (cognitive 67): AgentFlowDB.getSemanticModel has cognitive complexity 67 (threshold 15). Drivers by points: if/else 25 (49 pts), loops 4 (10 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 31). Of this number, 46 points are the body\u0027s own statements and 21 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd10b34b79c5fd8b40e2a244b02f4e977c95d8087b3c2636e0f8b3c9a01e2f6"}},{"ruleId":"D2","level":"warning","message":{"text":"sequenceRenderer.drawMessage (cognitive 67): sequenceRenderer.drawMessage has cognitive complexity 67 (threshold 15). Drivers by points: if/else 36 (46 pts), boolean chains 21 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad253e680f695641ccd9263b02f9bed211a0cf8633308babf0e161cd71ddbb5"}},{"ruleId":"D2","level":"warning","message":{"text":"routePath.routePath (cognitive 66): routePath.routePath has cognitive complexity 66 (threshold 15). Drivers by points: if/else 13 (23 pts), ternaries 10 (22 pts), boolean chains 16, loops 3 (5 pts) (nesting depth added 24). Of this number, 55 points are the body\u0027s own statements and 11 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/routePath.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd0d6a293bfe7895d3c58551341a7ed274e088a8f9709f26c58664d84e9f14b"}},{"ruleId":"D2","level":"warning","message":{"text":"xychartRenderer.draw (cognitive 65): xychartRenderer.draw has cognitive complexity 65 (threshold 15). Drivers by points: if/else 10 (26 pts), ternaries 6 (17 pts), loops 4 (12 pts), boolean chains 8, match/switch 1 (2 pts) (nesting depth added 36). Of this number, 23 points are the body\u0027s own statements and 42 belong to 12 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/xychartRenderer.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46b00c19746c9695dbd2763d489ee38523fbb3b362f890375b9674676e1ce9e"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.rank (cognitive 64): layered.rank has cognitive complexity 64 (threshold 15). Drivers by points: if/else 17 (35 pts), loops 15 (21 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5348ec2c001d9d483115e119e413e76084eb93979ed76578c1fecf2507ca30"}},{"ruleId":"D2","level":"warning","message":{"text":"GridEdgeRoutingSession.routePlan (cognitive 64): GridEdgeRoutingSession.routePlan has cognitive complexity 64 (threshold 15). Drivers by points: ternaries 18 (39 pts), if/else 10 (13 pts), boolean chains 9, loops 2 (3 pts) (nesting depth added 25). Of this number, 44 points are the body\u0027s own statements and 20 belong to 5 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f51aeea897dbfb22f7e87a5fb41c2f7a335e9ebd685cae5241037349c99b426"}},{"ruleId":"D2","level":"warning","message":{"text":"compound.compoundLayout::place (cognitive 63): compound.compoundLayout::place has cognitive complexity 63 (threshold 15). Drivers by points: loops 12 (24 pts), if/else 8 (19 pts), ternaries 7 (14 pts), boolean chains 6 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (compound.compoundLayout) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1944799aac67c82a73fddafd156fd320993e5876f2eb074410a2d02f890d7d7"}},{"ruleId":"D2","level":"warning","message":{"text":"portSwap.portSwapToLShape (cognitive 62): portSwap.portSwapToLShape has cognitive complexity 62 (threshold 15). Drivers by points: if/else 17 (41 pts), boolean chains 10, ternaries 2 (8 pts), loops 2 (3 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/portSwap.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"10426d83fea0c48a85cb91ca516535e71147dd7cbefc0f556b6a44932f8ee4f9"}},{"ruleId":"D2","level":"warning","message":{"text":"classBox.classBox (cognitive 60): classBox.classBox has cognitive complexity 60 (threshold 15). Drivers by points: if/else 25 (32 pts), boolean chains 19, ternaries 5 (9 pts) (nesting depth added 11). Of this number, 41 points are the body\u0027s own statements and 19 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad09037bc06628d2c6d46ce092f7971b85dc01a43c80cc9534165668084c2f5e"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.assignTracks (cognitive 60): layered.assignTracks has cognitive complexity 60 (threshold 15). Drivers by points: if/else 30 (74 pts), loops 27 (49 pts), boolean chains 19, ternaries 5 (9 pts) (nesting depth added 70). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (layered.assignTracks::lay) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55d6dee94e0f0b3a2f337efa466a2c45f17a68135d6f4a86a32b8c9b7f50e9f"}},{"ruleId":"D2","level":"warning","message":{"text":"labelAnchoring.anchorLabelsToPolyline (cognitive 60): labelAnchoring.anchorLabelsToPolyline has cognitive complexity 60 (threshold 15). Drivers by points: if/else 39 (95 pts), ternaries 9 (21 pts), loops 11 (17 pts), boolean chains 13 (nesting depth added 74). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (labelAnchoring.anchorLabelsToPolyline::tryPool) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ebf6f5de00cda8903ada945e5aafc4640fdc47ba0c279f6af89ced33b336ef"}},{"ruleId":"D2","level":"warning","message":{"text":"routerTopology.buildEndpointRoutingOverlay (cognitive 60): routerTopology.buildEndpointRoutingOverlay has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 8 (21 pts), if/else 8 (18 pts), loops 10 (14 pts), boolean chains 7 (nesting depth added 27). Of this number, 43 points are the body\u0027s own statements and 17 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b612681fb71b8bf05b869b1e07bfd5a6cb1be1c4f855b596bb3379861e353c"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.reduceCrossings::count (cognitive 59): layered.reduceCrossings::count has cognitive complexity 59 (threshold 15). Drivers by points: loops 12 (38 pts), if/else 8 (18 pts), boolean chains 3 (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 3 other methods here (layered.reduceCrossings, layered.reduceCrossings::sweep, layered.reduceCrossings::transpose) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"f762e9b0d92a9351a781136534b4a70a79508d82141e17bbabe765724edd0c24"}},{"ruleId":"D2","level":"warning","message":{"text":"svgDraw.drawEdges (cognitive 59): svgDraw.drawEdges has cognitive complexity 59 (threshold 15). Drivers by points: if/else 23 (37 pts), ternaries 6 (19 pts), boolean chains 3 (nesting depth added 27). None of this is in the body itself: all 59 points belong to one function literal inside it that branches (line 38). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/svgDraw.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c0e9173129cf0f266ffc249a90ad690eb9a8dd8674e7168c7aa3676d52f96d"}},{"ruleId":"D2","level":"warning","message":{"text":"routerSparse.sparseSelfLoopRoute (cognitive 57): routerSparse.sparseSelfLoopRoute has cognitive complexity 57 (threshold 15). Drivers by points: if/else 15 (34 pts), boolean chains 10, loops 3 (6 pts), ternaries 2 (5 pts), error handling 1 (2 pts) (nesting depth added 26). Of this number, 55 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4083a6b67300a78568025ed55ff00a9ae5500359baa85eb54f83e31846988f"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowDB.getData (cognitive 56): FlowDB.getData has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 11 (14 pts), boolean chains 7, ternaries 7 (nesting depth added 16). Of this number, 37 points are the body\u0027s own statements and 19 belong to 5 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71e3e818b8787bb56c0f48178a6ebc96dc39f82757f46cc37399077c5b97f25"}},{"ruleId":"D2","level":"warning","message":{"text":"geometry.buildOrthogonalPortPath (cognitive 56): geometry.buildOrthogonalPortPath has cognitive complexity 56 (threshold 15). Drivers by points: boolean chains 25, if/else 11 (22 pts), ternaries 4 (9 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f4626c245b01376d689d9d6801f3c4781b2147932e6216f76689d76becc65d"}},{"ruleId":"D2","level":"warning","message":{"text":"routerCompatibility.prepareRoutingModes (cognitive 54): routerCompatibility.prepareRoutingModes has cognitive complexity 54 (threshold 15). Drivers by points: if/else 17 (37 pts), boolean chains 12, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 22). Of this number, 49 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c03d8bc596eaabf5143504ad293d26c4b5d090c1ddf4defbf99f3d674d940f0"}},{"ruleId":"D2","level":"warning","message":{"text":"blockDB.populateBlockDatabase (cognitive 54): blockDB.populateBlockDatabase has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (48 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/blockDB.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"24194ace7286a7a7ba80f207adf3d7caf0251cc4731ca5291de66e8a1f0da010"}},{"ruleId":"D2","level":"warning","message":{"text":"erBox.erBox (cognitive 52): erBox.erBox has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26 (35 pts), boolean chains 10, ternaries 2 (4 pts), loops 3 (nesting depth added 11). Of this number, 44 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"47eb0a712b960b077fd0d699e40f4a73f0b533a819b1a104de36e9be093d903b"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.alignLabels (cognitive 51): layered.alignLabels has cognitive complexity 51 (threshold 15). Drivers by points: if/else 6 (22 pts), loops 6 (16 pts), ternaries 7, boolean chains 6 (nesting depth added 26). Of this number, 39 points are the body\u0027s own statements and 12 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b15f3b2ad5f9e338a068551c281246844a0537b4a63d67bddc004aeb9d950be"}},{"ruleId":"D2","level":"warning","message":{"text":"validation.validateSwimlanesLayout (cognitive 51): validation.validateSwimlanesLayout has cognitive complexity 51 (threshold 15). Drivers by points: if/else 11 (29 pts), loops 7 (13 pts), boolean chains 5, ternaries 1 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/validation.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"451783b1637a772df3a61fcc982bc85b81323ad65ccde036b44c517da399dd3c"}},{"ruleId":"D2","level":"warning","message":{"text":"phase2.crossCounts.computeSubtreeCrossCounts (cognitive 51): phase2.crossCounts.computeSubtreeCrossCounts has cognitive complexity 51 (threshold 15). Drivers by points: if/else 26 (54 pts), loops 16 (19 pts), boolean chains 6, ternaries 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (phase2.crossCounts.computeSubtreeCrossCounts::lcaIndex) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossCounts.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c703d6f3bd889de406f45b1ef568153e13d92cd12d1a45f9a3d5ef358daa082a"}},{"ruleId":"D2","level":"warning","message":{"text":"routerSparse.sparseSameContainerRoute::searchPairs (cognitive 51): routerSparse.sparseSameContainerRoute::searchPairs has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 13, ternaries 4 (7 pts), error handling 1 (2 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (routerSparse.sparseSameContainerRoute) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"341601e798c554a5672ce419f74eeeee5baa6d884c16878e09e7dc319121f7d0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentFlowDB.getData (cognitive 51): AgentFlowDB.getData has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (29 pts), loops 9 (10 pts), boolean chains 8, ternaries 4 (nesting depth added 12). Of this number, 26 points are the body\u0027s own statements and 25 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b3d9c44c80f51e92fa5f6a590470a49b8e7185950c9b1a8265d220ba4b9db2"}},{"ruleId":"D2","level":"warning","message":{"text":"ArchitectureDB.getDataStructures (cognitive 50): ArchitectureDB.getDataStructures has cognitive complexity 50 (threshold 15). Drivers by points: if/else 11 (40 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 34). Of this number, 33 points are the body\u0027s own statements and 17 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureDb.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8cde3a8b1891c6d6c02eacfe94260e0d782944bafecf310819297fd17ae889d"}},{"ruleId":"D2","level":"warning","message":{"text":"cynefinRenderer.draw (cognitive 50): cynefinRenderer.draw has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (32 pts), ternaries 4 (8 pts), boolean chains 5, loops 4 (5 pts) (nesting depth added 20). Of this number, 37 points are the body\u0027s own statements and 13 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba41f7f92b116f1d1a433f134dd196d6d089e394cb9e0b06cee5918404dd488f"}},{"ruleId":"D2","level":"warning","message":{"text":"dataFetcher.dataFetcher (cognitive 49): dataFetcher.dataFetcher has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (44 pts), boolean chains 5 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/dataFetcher.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91a522db5612dcf60593137d1aad5b86d1138ecce600d9b6acecfaa298e171d"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.reduceCrossings::sweep (cognitive 48): layered.reduceCrossings::sweep has cognitive complexity 48 (threshold 15). Drivers by points: if/else 8 (23 pts), ternaries 7 (14 pts), loops 5 (10 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (layered.reduceCrossings, layered.reduceCrossings::count, layered.reduceCrossings::transpose) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6caf774731e03e9ff0d3cbce34712b598b1bc334295297ec97124185fef2910"}},{"ruleId":"D2","level":"warning","message":{"text":"c4Db.updateElStyle (cognitive 48): c4Db.updateElStyle has cognitive complexity 48 (threshold 15). Drivers by points: if/else 29 (39 pts), boolean chains 9 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7e80df97159caefd83ae73cd9719b0b7dba003c5ec519e36b193b6c4d7fe2f"}},{"ruleId":"D2","level":"warning","message":{"text":"sequenceRenderer.getMaxMessageWidthPerActor (cognitive 48): sequenceRenderer.getMaxMessageWidthPerActor has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 14, ternaries 3 (9 pts), loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bbe16b652b2038d5718fd1c7284f7bce422349929557b6f64e1d0dec8fb9bc"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.snap (cognitive 47): layered.snap has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 8 (11 pts), ternaries 3 (8 pts), boolean chains 6 (nesting depth added 18). Of this number, 35 points are the body\u0027s own statements and 12 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b062b9b93434c98569744628a25278e68f0f55b4f92a060fccf8391f264c94a0"}},{"ruleId":"D2","level":"warning","message":{"text":"renderDoc (cognitive 47): renderDoc has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (31 pts), ternaries 7 (12 pts), boolean chains 2, loops 2 (nesting depth added 18). Of this number, 32 points are the body\u0027s own statements and 15 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65b5f7c05525836eef76b752fa008eef0ad15ca31fcb0c8d87428039973f175"}},{"ruleId":"D2","level":"warning","message":{"text":"index.run (cognitive 45): index.run has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 14 (18 pts), if/else 12 (15 pts), boolean chains 9, loops 3 (nesting depth added 7). Most of this is not in the body itself: 10 of the 45 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 185, a function literal at line 302, a function literal at line 237, \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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3189f9f3840aad3e10b0be7de8e947a1a98429598a5fea1ef172f3cd39619a45"}},{"ruleId":"D2","level":"warning","message":{"text":"layout.setBlockSizes (cognitive 45): layout.setBlockSizes has cognitive complexity 45 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 6 (15 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/layout.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0c1ce5756ace2e29c9b265dd3a4d5307c58991fc03ee7e9c1c9e7caf344da3"}},{"ruleId":"D2","level":"warning","message":{"text":"scoreLayout.computeNeighborhoodPreservation (cognitive 45): scoreLayout.computeNeighborhoodPreservation has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 5 (10 pts), ternaries 3 (10 pts), boolean chains 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b754ead7512b6825c0156dab81c6ccb0522bb0e821db95c82b1a1750055afb"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.labelPlacementWithExtendedDetour (cognitive 44): edgeLabels.labelPlacementWithExtendedDetour has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 4 (9 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1897}}}],"partialFingerprints":{"codehealthFindingId/v1":"6289b8b7730045440dd203b5ffba27d873312f9b576f170ce94431c142adc427"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.pastLabels (cognitive 43): layered.pastLabels has cognitive complexity 43 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 8 (18 pts), boolean chains 6 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5355915b4c78ee345f3c4b3f3152acbd2c6c7949f69d7ca5cf6c75391b1cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"sharedTrackNudging.nudgeSharedInteriorSubpaths (cognitive 43): sharedTrackNudging.nudgeSharedInteriorSubpaths has cognitive complexity 43 (threshold 15). Drivers by points: if/else 27 (57 pts), loops 10 (23 pts), boolean chains 22, ternaries 8 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (sharedTrackNudging.nudgeSharedInteriorSubpaths::candidateIsSafe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/sharedTrackNudging.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"258e3d948b28fa8b2121f785464794bf8c11e15d4b3e682bb11286d8808eaa60"}},{"ruleId":"D2","level":"warning","message":{"text":"sequenceRenderer.draw (cognitive 43): sequenceRenderer.draw has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (26 pts), ternaries 5, boolean chains 4, error handling 1 (3 pts), loops 3, match/switch 1 (2 pts) (nesting depth added 9). Of this number, 38 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"caffcd614506dea3c02908b4d517edcc8f4baf2800a2576abbc728d8e983efcf"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.labelPlacementWithDetour (cognitive 42): edgeLabels.labelPlacementWithDetour has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 4 (9 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1992}}}],"partialFingerprints":{"codehealthFindingId/v1":"4107857d337b9f546e324b505c698e4f76c51f8958986f9855b7c65a4c33b65c"}},{"ruleId":"D2","level":"warning","message":{"text":"UsecaseModelBuilder.applyMetadataAssignments (cognitive 42): UsecaseModelBuilder.applyMetadataAssignments has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 5 (11 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58c586aee9bbf8f698347e9c2e3d395ba74b56cdeebe5c0988a801a59c8ea9e"}},{"ruleId":"D2","level":"warning","message":{"text":"lrTransform.applyLrDirectionTransform (cognitive 41): lrTransform.applyLrDirectionTransform has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (26 pts), loops 8 (9 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 12). Of this number, 40 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/lrTransform.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebfdee25fde4af684a1b42aa51eb0eaa4582fa4a3f615f9a066117af13b1b61"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.resolveRenderedOrthogonalCrossings (cognitive 40): materializedGeometry.resolveRenderedOrthogonalCrossings has cognitive complexity 40 (threshold 15). Drivers by points: if/else 53 (110 pts), loops 56 (91 pts), boolean chains 33, ternaries 8 (10 pts), match/switch 1 (nesting depth added 94). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (materializedGeometry.resolveRenderedOrthogonalCrossings::bestPairedReplacement) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f12ff1dfa22e9a6f5f79d80e88442dafaff68558c934725de64849dc09f615"}},{"ruleId":"D2","level":"warning","message":{"text":"agentflowDb.stripLineTrailingCommas (cognitive 40): agentflowDb.stripLineTrailingCommas has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 6, ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3074956dd2fa2a0752a2d339fb8eb12677044c2317aa2800b7ee5854bed3de"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.blockedCenterIntervals (cognitive 39): edgeLabels.blockedCenterIntervals has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (29 pts), loops 3 (4 pts), boolean chains 3, ternaries 3 (nesting depth added 16). Of this number, 35 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c2b2c2694aafe9c627e903e6e7d73436578d98af969c69d24b5a4a0f30fb06"}},{"ruleId":"D2","level":"warning","message":{"text":"routerPlanning.endpointCandidates (cognitive 39): routerPlanning.endpointCandidates has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 11 (20 pts), boolean chains 9, if/else 7 (9 pts), loops 1 (nesting depth added 11). Of this number, 27 points are the body\u0027s own statements and 12 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"348198e218c7f4fab084837e640efbfc08ab1e184debd5e0fe888be6bf63f654"}},{"ruleId":"D2","level":"warning","message":{"text":"routerConstraint.canonicalizeOrthogonalPolyline (cognitive 39): routerConstraint.canonicalizeOrthogonalPolyline has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 6 (9 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2dad62a8720ac97c914fc206b82d28ca2568faa8ef22df04eeedb9e47472ea"}},{"ruleId":"D2","level":"warning","message":{"text":"genColor (cognitive 39): genColor has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 6 (22 pts), if/else 7 (11 pts), loops 3 (6 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/styles.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a7fbcd7e604ea3290db0b25fbe7bbbf92072dc1f6dbec63f9d9caddcacfa78"}},{"ruleId":"D2","level":"warning","message":{"text":"phase2.crossLaneAdjust.adjustCrossLaneSources (cognitive 38): phase2.crossLaneAdjust.adjustCrossLaneSources has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 4 (7 pts), boolean chains 4 (nesting depth added 18). Of this number, 37 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossLaneAdjust.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd417bd5f1ba7d541ad6de22e3dba6a4423616ed1b62e41f188a5081f22c806"}},{"ruleId":"D2","level":"warning","message":{"text":"groups.buildGridForest (cognitive 38): groups.buildGridForest has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (33 pts), loops 5 (nesting depth added 17). Of this number, 25 points are the body\u0027s own statements and 13 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/groups.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2820472717902a5c5cbff598c4892a447137f1d3dda313998d14ad97a8b75f04"}},{"ruleId":"D2","level":"warning","message":{"text":"routerTopology.buildVisibilityGraph (cognitive 38): routerTopology.buildVisibilityGraph has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 6 (19 pts), loops 6 (10 pts), if/else 2 (5 pts), boolean chains 4 (nesting depth added 20). Of this number, 28 points are the body\u0027s own statements and 10 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"95206386dc8a8eed4b058d77eaa2d4283173fa92a2a335c646be48bc42b0bce2"}},{"ruleId":"D2","level":"warning","message":{"text":"svgDraw.drawText (cognitive 38): svgDraw.drawText has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 6, match/switch 2 (4 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d36f4c048c802763ab06b80c60d94a880eb6425c006f0b734b53aa9ac93049"}},{"ruleId":"D2","level":"warning","message":{"text":"boxDrawingPreprocessor.preprocessBoxDrawing (cognitive 38): boxDrawingPreprocessor.preprocessBoxDrawing has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 6 (10 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treeView/boxDrawingPreprocessor.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cd180e78634f6a39208a8cbc90a7ae4c41b20d2be6789514fc5cb3ca23fa03"}},{"ruleId":"D2","level":"warning","message":{"text":"draw::makeGrid (cognitive 38): draw::makeGrid has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (22 pts), match/switch 2 (9 pts), boolean chains 6, other 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c4a21520708e88c8ab30da3ac9e507ad0e1bdcfeac1fb20a10aac1760d6467"}},{"ruleId":"D2","level":"warning","message":{"text":"router.routeEdgesOrthogonal::crossingPenalty (cognitive 37): router.routeEdgesOrthogonal::crossingPenalty has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (router.routeEdgesOrthogonal, router.routeEdgesOrthogonal::fixPipeCrossings) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"89187e0b65824dcde56779e335a7c8421f331b13d327564bb16e9b1c32893d0a"}},{"ruleId":"D2","level":"warning","message":{"text":"gitGraphRenderer.drawCommitBullet (cognitive 37): gitGraphRenderer.drawCommitBullet has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 14 (30 pts), if/else 5 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f8322b0c4ed4407167dd3f31e72fdaf5a29f354f37f60e52558be7c5167150"}},{"ruleId":"D2","level":"warning","message":{"text":"layout.layoutBlocks (cognitive 36): layout.layoutBlocks has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 3 (6 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/layout.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3f1bc85b118b8d16ce23ea1c5dd95dccfecf64e71ed16550cb6bdb3b2fb4fa"}},{"ruleId":"D2","level":"warning","message":{"text":"PropertyOrderCollector.readString (cognitive 36): PropertyOrderCollector.readString has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (33 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a09a290b4aea4a483348d0c5a2f873ac0982c375407f18bf3c4e1091a2040d0"}},{"ruleId":"D2","level":"warning","message":{"text":"gridPlacement.validateGridPlacementCoordinates (cognitive 35): gridPlacement.validateGridPlacementCoordinates has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (19 pts), ternaries 2 (7 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/gridPlacement.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a127cff9380a4df1166ff9cc81175da149c24a20dc3668f349ab06eba5273f"}},{"ruleId":"D2","level":"warning","message":{"text":"lineJump.rewriteEdgePath (cognitive 35): lineJump.rewriteEdgePath has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 4 (6 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae112e3e78a2b69ade33af09fcb426cd851df3f11c38e31c477141eedd3689a"}},{"ruleId":"D2","level":"warning","message":{"text":"fixCorners (cognitive 34): fixCorners has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 4 (20 pts), if/else 6 (12 pts), boolean chains 1, loops 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"555a07cb739a53d52c4b269bc01e75daab6abb748366a0aa39234efa094fafd8"}},{"ruleId":"D2","level":"warning","message":{"text":"assignWithDepth.assignWithDepth (cognitive 33): assignWithDepth.assignWithDepth has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 5 (nesting depth added 13). Most of this is not in the body itself: 12 of the 33 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 57, 41). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/assignWithDepth.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9063cce9dc771e172111d8ceddcd87aa0cd7f1ccaa0b78105774c09d78c252a5"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.straighten (cognitive 33): layered.straighten has cognitive complexity 33 (threshold 15). Drivers by points: loops 8 (18 pts), if/else 4 (11 pts), boolean chains 4 (nesting depth added 17). Of this number, 32 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f68cb7187707a4710f080d63e0f1079423cc472b0ddf3067d446ee237c1e5c2"}},{"ruleId":"D2","level":"warning","message":{"text":"lineJump.applyLineJumpsToSvg (cognitive 33): lineJump.applyLineJumpsToSvg has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 5, boolean chains 4, ternaries 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a924ad6990db54d259cfd315af371da0f387822e58f4fce3876df34d33d448"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.shiftLeftLaneTitleBandsLeftOfRails (cognitive 33): materializedGeometry.shiftLeftLaneTitleBandsLeftOfRails has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (20 pts), loops 4 (7 pts), boolean chains 6 (nesting depth added 8). Of this number, 19 points are the body\u0027s own statements and 14 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"616453542f2c5d726d87982beee9cf30d7b37ad736fea3eb50b25364733440e1"}},{"ruleId":"D2","level":"warning","message":{"text":"vennRenderer.draw (cognitive 33): vennRenderer.draw has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 10, ternaries 4 (5 pts), loops 2 (3 pts) (nesting depth added 6). Most of this is not in the body itself: 14 of the 33 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 121, 173, 220). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55c5c8f7b7f90189f33ed1781c30afbd7a11b19cc66881894780e3b3309ad62"}},{"ruleId":"D2","level":"warning","message":{"text":"mermaidAPI.renderDiagram (cognitive 32): mermaidAPI.renderDiagram has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (25 pts), error handling 3, boolean chains 2, ternaries 2 (nesting depth added 5). Of this number, 27 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1706b57a6cfe2b671106001a7d767962bd8221cc0d14e5740b4f6b2d3464cb"}},{"ruleId":"D2","level":"warning","message":{"text":"lineJump.findEdgeIntersections (cognitive 32): lineJump.findEdgeIntersections has cognitive complexity 32 (threshold 15). Drivers by points: if/else 4 (16 pts), loops 4 (10 pts), ternaries 1 (5 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a4c81f3951a6848496d83f3422bf1e278fb5cb64a5d91a38bab35719855406"}},{"ruleId":"D2","level":"warning","message":{"text":"render.applyElkEdgeLayout (cognitive 32): render.applyElkEdgeLayout has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 5, loops 4 (5 pts) (nesting depth added 6). Most of this is not in the body itself: 12 of the 32 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 2019, 1988). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff00fec30fdb8a582b42fc9b9ae30c54a3ee7c1964057eaab224960fb2d49231"}},{"ruleId":"D2","level":"warning","message":{"text":"phase2.gravity.assignLayers_Gravity (cognitive 32): phase2.gravity.assignLayers_Gravity has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 6 (7 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 11). Most of this is not in the body itself: 15 of the 32 points are its own statements and the rest belongs to 3 function items inside it that branch (relaxOrder, a function literal at line 30, clampFeasible). 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.gravity.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d5450e11d6cbe791aaa1c1d5e4a52786d6ee224211e16794413c702a12fc9b"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.rerouteSegmentAroundRect (cognitive 32): edgeLabels.rerouteSegmentAroundRect has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f73b78bd8fc0216a3905570e85f38217a3adfbd488f61738d058c535fb520b"}},{"ruleId":"D2","level":"warning","message":{"text":"usecaseDb.getData (cognitive 32): usecaseDb.getData has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 8 (16 pts), loops 8, boolean chains 4, if/else 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e106f80efacaadaf165c4b4fa5c924a8f773ba8a0d3adb34b4a2af9850768d7"}},{"ruleId":"D2","level":"warning","message":{"text":"requirementBox.requirementBox (cognitive 31): requirementBox.requirementBox has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 7 (13 pts), boolean chains 3 (nesting depth added 8). Of this number, 26 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e812ad5e95731e433413788b27945844dc1c0a7df61447d2fb5e08e3ada2732"}},{"ruleId":"D2","level":"warning","message":{"text":"edges.insertEdgeLabel (cognitive 31): edges.insertEdgeLabel has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 5, ternaries 1 (nesting depth added 9). Of this number, 27 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0ba3f06071b4451688e0ccc32d0a52e1362ae2c1bdadcc4a3ff314ace6619f"}},{"ruleId":"D2","level":"warning","message":{"text":"subgraphFeedbackEdges.findSubgraphFeedbackEdges (cognitive 31): subgraphFeedbackEdges.findSubgraphFeedbackEdges has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 5 (11 pts), boolean chains 2 (nesting depth added 17). Of this number, 27 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/subgraphFeedbackEdges.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fa4a8fb8110060e5e925b93765e6c79fe47ae5ad883bf5b45c52101547546b"}},{"ruleId":"D2","level":"warning","message":{"text":"layout.intersection (cognitive 30): layout.intersection has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 6 (11 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"971d48d961a71dd1351bb2fe76f5044cef9e0317dfaec27b9e97896a40afcfd9"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.liftTopLaneTitleBandsAboveRails (cognitive 30): materializedGeometry.liftTopLaneTitleBandsAboveRails has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 4 (7 pts), boolean chains 6 (nesting depth added 8). Of this number, 18 points are the body\u0027s own statements and 12 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2b1832025395ef7b28f1c5bcc53fb60276b2555fc97f6944c8661f9d1f0b71"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.shortcutRedundantOrthogonalJogs (cognitive 30): materializedGeometry.shortcutRedundantOrthogonalJogs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (39 pts), loops 13 (28 pts), boolean chains 16, ternaries 5 (6 pts) (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (materializedGeometry.shortcutRedundantOrthogonalJogs::candidateIsSafe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"b893a64eb49344bb278bb290d35505ac56d0c6a95b22fcae701199b7f7082af6"}},{"ruleId":"D2","level":"warning","message":{"text":"labelSpacing.deriveGridContainerLabelGaps (cognitive 30): labelSpacing.deriveGridContainerLabelGaps has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 5, ternaries 2 (4 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/labelSpacing.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5dbf516a9684ff14b080f4d6e997871c497cf515e0e2a33c748fa270f6d9b8"}},{"ruleId":"D2","level":"warning","message":{"text":"usecaseRenderer.annotateUsecaseElements (cognitive 30): usecaseRenderer.annotateUsecaseElements has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 6 (17 pts), if/else 6 (9 pts), boolean chains 3, loops 1 (nesting depth added 14). Of this number, 26 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseRenderer.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe052987a46b337bfba2c95afcc4d952b826bde7c5995f555648f9682ccff2ed"}},{"ruleId":"D2","level":"warning","message":{"text":"svgDraw.drawRels (cognitive 29): svgDraw.drawRels has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 4 (8 pts), boolean chains 3, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61a65690feb1d95d5772fc4ecf94de81ed006aef0bf419d298855067eeeccc0"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.reassignCrossingExternalRailChannels (cognitive 29): materializedGeometry.reassignCrossingExternalRailChannels has cognitive complexity 29 (threshold 15). Drivers by points: if/else 28 (70 pts), loops 26 (49 pts), ternaries 10 (17 pts), boolean chains 11 (nesting depth added 72). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (materializedGeometry.reassignCrossingExternalRailChannels::externalRailForSegment, materializedGeometry.reassignCrossingExternalRailChannels::candidateIsSafe) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d5a49e186e1c5c8cca637909766a8e4117eb9e8513ea9fc26a75057ab71726"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentFlowDB.addSubGraph (cognitive 29): AgentFlowDB.addSubGraph has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 9). Of this number, 19 points are the body\u0027s own statements and 10 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9ba94d43c43543bdfe6cb67bc31b5a5c3432984aaf39fff79313ef212c045a"}},{"ruleId":"D2","level":"warning","message":{"text":"drawNode (cognitive 29): drawNode has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 7 (19 pts), if/else 4 (7 pts), other 3 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/svgDraw.js"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"7358f62ebb7d56e82e8672a9caa8a615fff52f35dfe3302d723b4e1092e425c3"}},{"ruleId":"D2","level":"warning","message":{"text":"gridPlacement.sanitizeGridPlacements (cognitive 28): gridPlacement.sanitizeGridPlacements has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), ternaries 2 (5 pts), boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/gridPlacement.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a49b5cbeaafb7249d7b195331eaa090aa9bd5e8a3aa4b4f596336c33e8115d"}},{"ruleId":"D2","level":"warning","message":{"text":"edges.intersection (cognitive 28): edges.intersection has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 6 (11 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff2e68665db9536ab443d551f04b7f97dbdec38ae1bf0f6831fa5278e23f2c3"}},{"ruleId":"D2","level":"warning","message":{"text":"endpointClip.snapEndpointToBoundary (cognitive 28): endpointClip.snapEndpointToBoundary has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (22 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ce3fe4783af009a85c47e30549fd7b1f1c4647c368e6d8fbc76ebd83ba198a"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.reassignCrossingExternalRailChannels::candidateIsSafe (cognitive 28): materializedGeometry.reassignCrossingExternalRailChannels::candidateIsSafe has cognitive complexity 28 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 6 (13 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (materializedGeometry.reassignCrossingExternalRailChannels, materializedGeometry.reassignCrossingExternalRailChannels::externalRailForSegment) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f50cbd0390fbbc9179e0fae0a606b4cc33b94df2a2403d2937ff16ce01fc80"}},{"ruleId":"D2","level":"warning","message":{"text":"routerPlanning.buildEndpointPlan (cognitive 28): routerPlanning.buildEndpointPlan has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 5 (10 pts), boolean chains 5, loops 1 (nesting depth added 12). Of this number, 27 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c893a29b728ed68881cac66ff65dc655418d954a902bc8188fcfc25fafb6edf"}},{"ruleId":"D2","level":"warning","message":{"text":"routerPlanning.resolveAmbiguousEndpointSides (cognitive 28): routerPlanning.resolveAmbiguousEndpointSides has cognitive complexity 28 (threshold 15). Drivers by points: loops 8 (11 pts), if/else 5 (9 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 9). Of this number, 19 points are the body\u0027s own statements and 9 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b114c7530e61240541effc89d1c09bcb1cf8368425674474ea953520221928"}},{"ruleId":"D2","level":"warning","message":{"text":"scoreLayout.scoreLayout (cognitive 28): scoreLayout.scoreLayout has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 10 (15 pts), if/else 4 (8 pts), loops 4, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"29db996ab4377cd6c02f4254e5486230e849f0b00f1ff4a2f82ac79e4c64c14b"}},{"ruleId":"D2","level":"warning","message":{"text":"drawActorTypeCollections (cognitive 28): drawActorTypeCollections has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (22 pts), ternaries 3, boolean chains 2, other 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd89b2cc056f024d14e733f51356b2d38bdb50916da41b06b05313e201e10155"}},{"ruleId":"D2","level":"warning","message":{"text":"sanitizeDirective.sanitizeDirectiveValue (cognitive 27): sanitizeDirective.sanitizeDirectiveValue has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/sanitizeDirective.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5162ea9a8d124e84da4d63f65e8c0b39e130f7bce99eddd7bb39f2edc0733d"}},{"ruleId":"D2","level":"warning","message":{"text":"kanbanItem.kanbanItem (cognitive 27): kanbanItem.kanbanItem has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 16, if/else 6 (7 pts), ternaries 2 (4 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/kanbanItem.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bf3fdd241ce2eceb36dc2daf308406b7c5599ebd990e300541457847af4c72"}},{"ruleId":"D2","level":"warning","message":{"text":"sharedTrackNudging.nudgeSharedInteriorSubpaths::candidateIsSafe (cognitive 27): sharedTrackNudging.nudgeSharedInteriorSubpaths::candidateIsSafe has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (7 pts), boolean chains 2, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (sharedTrackNudging.nudgeSharedInteriorSubpaths) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/sharedTrackNudging.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ab5501848b94b99ff81388d85319d612e254a5d3553e713324e1b27a443c35"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.polylineHasSelfConflict (cognitive 27): edgeLabels.polylineHasSelfConflict has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (12 pts), ternaries 3 (9 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eca8da815a8066326132a434b5ba70dd388921b1f8c371a1043c8e705e563d7"}},{"ruleId":"D2","level":"warning","message":{"text":"renderHelpers.insertEdges (cognitive 27): renderHelpers.insertEdges has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 3 (12 pts), if/else 4 (11 pts), boolean chains 2, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/renderHelpers.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c679bfdbd627949660ebe87e0cc6751bfe85b439d21921669f23439a3700dc7d"}},{"ruleId":"D2","level":"warning","message":{"text":"drawActorTypeDatabase (cognitive 27): drawActorTypeDatabase has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 5, boolean chains 2, other 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf9c7a884f87a6a42580e16e3f3f3cd7e932d374adbfc9b6e8fd7343c4c8b5a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassMember.parseMember (cognitive 26): ClassMember.parseMember has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 4 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classTypes.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb11d2216a8db59a7bfc248b878f27f48e4c4ed7eb123530290bdcabe8f8c23"}},{"ruleId":"D2","level":"warning","message":{"text":"edges.positionEdgeLabel (cognitive 26): edges.positionEdgeLabel has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 5 (13 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"dada62d35bfc8a5d1091411e910b140b276c8ba2bbbc4140e68c58894c093275"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.collapseRedundantRectangularDoglegs::candidateIsSafe (cognitive 26): materializedGeometry.collapseRedundantRectangularDoglegs::candidateIsSafe has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (materializedGeometry.collapseRedundantRectangularDoglegs) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6a9c395733ef60ab85846ea9e33b431386718c2320232e0c533cf0bb268863"}},{"ruleId":"D2","level":"warning","message":{"text":"gitGraphAst.cherryPick (cognitive 26): gitGraphAst.cherryPick has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8, ternaries 3 (7 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7eef069b6150edd5f3bcfc3a87957f5fb5fbedf86617e8c4f2a0ecebfba051d"}},{"ruleId":"D2","level":"warning","message":{"text":"journeyRenderer.drawActorLegend (cognitive 26): journeyRenderer.drawActorLegend has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 1 (4 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 14). None of this is in the body itself: all 26 points belong to 3 function literals inside it that branch (lines 53, 25, 94). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/user-journey/journeyRenderer.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"542e7adf08f1adc6da616c07d5e089796370335f21cf39ed3632250a33f2d457"}},{"ruleId":"D2","level":"warning","message":{"text":"kanbanDb.addNode (cognitive 26): kanbanDb.addNode has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 5, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afe9da247cfec86943596674c1163ec6fc2cda9127f46937e1d46912f6bee83"}},{"ruleId":"D2","level":"warning","message":{"text":"PropertyOrderCollector.consumeNumber (cognitive 26): PropertyOrderCollector.consumeNumber has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 8, loops 3 (6 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d4a8ad7cf88758c621bc74c1d35908bd970474226b2a16859eb09fd4f3b78a"}},{"ruleId":"D2","level":"warning","message":{"text":"drawActorTypeParticipant (cognitive 26): drawActorTypeParticipant has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 2, other 1, ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"c115ae3edb11b113cdd5fccf220a66d308b3adbfbaa66d1034473d72f59b8838"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.sortByBary (cognitive 25): layered.sortByBary has cognitive complexity 25 (threshold 15). Drivers by points: loops 9 (20 pts), boolean chains 4, if/else 1 (nesting depth added 11). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"565c462115f490c3e0e0e68dbce4bab0f70fe8634669ba2d481264912c773026"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.alignPorts (cognitive 25): layered.alignPorts has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (8 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c03710dc691600328da2e2479392c3e1f80962bd92512b5fbc4ae9bcc1f564"}},{"ruleId":"D2","level":"warning","message":{"text":"render.internalEdgePoints (cognitive 25): render.internalEdgePoints has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 3 (11 pts), if/else 2 (6 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"5852ffc49ff9bc170e1b17ddd4c794b11b5e62baf7e1785222cb8f5a1b13d0c1"}},{"ruleId":"D2","level":"warning","message":{"text":"render.straightenEdgeTerminals (cognitive 25): render.straightenEdgeTerminals has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (9 pts), loops 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 7). Of this number, 19 points are the body\u0027s own statements and 6 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"f820fd61ce6733a6aa476b102fd3126fd7da114335605a1b44a480d8ae64d7e4"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.liftObstacleHuggingSameSideRails (cognitive 25): materializedGeometry.liftObstacleHuggingSameSideRails has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (38 pts), loops 11 (23 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (materializedGeometry.liftObstacleHuggingSameSideRails::candidateIsSafe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceccb8f32271b946065c0f60c7c64950934a280332905ae7884e74dc4fa66cdf"}},{"ruleId":"D2","level":"warning","message":{"text":"phase3.ordering.transposeImprove (cognitive 25): phase3.ordering.transposeImprove has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (5 pts), boolean chains 4, ternaries 3 (nesting depth added 9). Of this number, 21 points are the body\u0027s own statements and 4 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase3.ordering.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfef0aac5bf60a6718b4dcbaeb10522de2ed47fe60ae247d7fa578c60f706a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassDB.getData (cognitive 25): ClassDB.getData has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (14 pts), loops 5, if/else 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3ae66ef24bfe141983e318975e59c5459d380d1f12b7ed374615dcbc801c8c"}},{"ruleId":"D2","level":"warning","message":{"text":"vennRenderer.renderTextNodes (cognitive 25): vennRenderer.renderTextNodes has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (4 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"547c82f02f9a53e7980b07ba0951146783626f7714467d88769df05c81218686"}},{"ruleId":"D2","level":"warning","message":{"text":"drawActorTypeQueue (cognitive 25): drawActorTypeQueue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 2, other 1, ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b81c1956baf8a4c3972e9c8d1e1bbecdb54babd5ffa18cf094b69603889034"}},{"ruleId":"D2","level":"warning","message":{"text":"createContainerGroup (cognitive 25): createContainerGroup has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 3 (5 pts), boolean chains 1, other 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"39213107e32871039d072d26ef872d8278ed4e32ad4357f2cb2d1fcd79858d9e"}},{"ruleId":"D2","level":"warning","message":{"text":"mermaid-graphlib.adjustClustersAndEdges (cognitive 24): mermaid-graphlib.adjustClustersAndEdges has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 4, loops 1 (nesting depth added 7). Of this number, 13 points are the body\u0027s own statements and 11 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5027aa3d079ff6a73b5313424a22f80eb17a7c221d85439e633516127137339"}},{"ruleId":"D2","level":"warning","message":{"text":"geometry.intersection (cognitive 24): geometry.intersection has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 6 (11 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/geometry.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce7945bbd82fc1d2aaacda3e45f89547c76e06fdd24008616eab078824f8096"}},{"ruleId":"D2","level":"warning","message":{"text":"anchoredNodes.clearAnchoredOverlaps (cognitive 24): anchoredNodes.clearAnchoredOverlaps has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 6, loops 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 9). Of this number, 17 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3da66291b5cfba49e50188a96fc10cffe5bd098ad12ec7bcb17dc5884af9a3"}},{"ruleId":"D2","level":"warning","message":{"text":"detourSimplification.simplifyDetouredEdges::pathConflictCount (cognitive 24): detourSimplification.simplifyDetouredEdges::pathConflictCount has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (14 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. This shape REPEATS in the file: one other method here (detourSimplification.simplifyDetouredEdges) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/detourSimplification.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8371305f814d22de2446758442d698aba2fe5f1dbfd5010963b5663b2fcaeb"}},{"ruleId":"D2","level":"warning","message":{"text":"driving-tree.buildDrivingTree (cognitive 24): driving-tree.buildDrivingTree has cognitive complexity 24 (threshold 15). Drivers by points: loops 12 (13 pts), if/else 6 (11 pts) (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/driving-tree.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74195c24c0b005ed8d5a7750d51a38989932dd1bca79ddc651675c37fb428b2"}},{"ruleId":"D2","level":"warning","message":{"text":"routerPlanning.prepareEdgeRoutes (cognitive 24): routerPlanning.prepareEdgeRoutes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (6 pts), boolean chains 3, ternaries 1 (nesting depth added 10). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0cd5402cb22786f92694febf53d119a70d4f861edbabce6fbe1fa0f34fdc78"}},{"ruleId":"D2","level":"warning","message":{"text":"QuadrantBuilder.getAxisLabels (cognitive 24): QuadrantBuilder.getAxisLabels has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 4, if/else 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"702be26f5b29a58c94e70734672e2e2d1b3677c1ac800ea9c5492b02f9058140"}},{"ruleId":"D2","level":"warning","message":{"text":"sequenceRenderer.calculateLoopBounds (cognitive 24): sequenceRenderer.calculateLoopBounds has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 2 (6 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 13). Of this number, 19 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"21843fe7a01799ffd90a733339cfd82a6c397713cd819ccc6693a2484eee307d"}},{"ruleId":"D2","level":"warning","message":{"text":"swimlane (cognitive 24): swimlane has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 7, other 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"208f963423ad2a743a207b75d5e357dea3b8b21c5b6e079a9404711680f59fba"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.detectDirective (cognitive 23): utils.detectDirective has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 3 (5 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"918965f45ee2597e3a1b414b018739cd141b8efd6482def656189bd92fbae5e7"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.calculatePoint (cognitive 23): utils.calculatePoint has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (21 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d81153517fa3c5edf34529ed21ff994144f8365c8df1b6b56501de94b1cee8a"}},{"ruleId":"D2","level":"warning","message":{"text":"c4Renderer.drawInsideBoundary (cognitive 23): c4Renderer.drawInsideBoundary has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Renderer.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"84019d958ed189696d3f53b77f33e2ce3731192e8ac8a691ebeb59711e4c81d1"}},{"ruleId":"D2","level":"warning","message":{"text":"phase3.ordering.reorderLayer (cognitive 23): phase3.ordering.reorderLayer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (8 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase3.ordering.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9024bfc819878c2bd4fdedc62550a35f57283641462f5d667c414eb38e8784f9"}},{"ruleId":"D2","level":"warning","message":{"text":"ganttRenderer.draw::drawExcludeDays (cognitive 23): ganttRenderer.draw::drawExcludeDays has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (ganttRenderer.draw) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"732880e8bd76b23be26e71a4a8c5803ace861ff451485e94e58fef9d5c8af8c5"}},{"ruleId":"D2","level":"warning","message":{"text":"StateDB.addState (cognitive 23): StateDB.addState has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 4 (8 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":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f1e51a94a3952b7ef40ba787d7490ead9e4a05dbeda329d9f06093df10b7d7"}},{"ruleId":"D2","level":"warning","message":{"text":"architectureRenderer.getAlignments (cognitive 23): architectureRenderer.getAlignments has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 8). None of this is in the body itself: all 23 points belong to 3 function items inside it that branch (flattenAlignments, a function literal at line 218, a function literal at line 274). 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":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"374eeea69009d48246b103ce25f58db615d9fe32310cf4da5b788d667cde355c"}},{"ruleId":"D2","level":"warning","message":{"text":"usecaseDb.flattenJsonRows::visit (cognitive 23): usecaseDb.flattenJsonRows::visit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (7 pts), ternaries 2 (7 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"79129e04f5a495ae900b96c8bd029ecb5abef516f25c19d38eac18949959ebab"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.orient (cognitive 22): layered.orient has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 5 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db89c670c22086b3640dacbce465f3e6ef50d3608ea29739fb12ad38ef37778"}},{"ruleId":"D2","level":"warning","message":{"text":"c4Db.updateRelStyle (cognitive 22): c4Db.updateRelStyle has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 5 (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c144c04487ccf0f9ec1592568cacb9d1f4f962baf9a65bb579e872a070363c4"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabelNodes.createEdgeLabelNodes (cognitive 22): edgeLabelNodes.createEdgeLabelNodes has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 4 (8 pts), boolean chains 2, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/edgeLabelNodes.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04917f660f79c1c9916a5678260eaf6c988e67110fca0767b16f5ec0be275d5"}},{"ruleId":"D2","level":"warning","message":{"text":"laneOrdering.buildWeightedLaneEdges (cognitive 22): laneOrdering.buildWeightedLaneEdges has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (6 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/laneOrdering.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb47afd23650de8243bb259d50ce7d94ce6f714b4bc74ed74ee7b191d4dbb45a"}},{"ruleId":"D2","level":"warning","message":{"text":"routerCompatibility.separateRouteFromOccupied (cognitive 22): routerCompatibility.separateRouteFromOccupied has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 2 (9 pts), loops 3 (6 pts), if/else 2 (5 pts), boolean chains 2 (nesting depth added 13). Of this number, 12 points are the body\u0027s own statements and 10 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e001cbfd546234bddd057afa93175b4cc526585e86839318a1fabd19cbb8909a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentFlowDB.rethrowMetadataYamlError (cognitive 22): AgentFlowDB.rethrowMetadataYamlError has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 2 (3 pts), ternaries 2, error handling 1 (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab98c11fbd3fc04f5afe60b3af40d7efe95804b2f834db8e18022af40a8ed09"}},{"ruleId":"D2","level":"warning","message":{"text":"gitGraphRenderer.drawBranches (cognitive 22): gitGraphRenderer.drawBranches has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 8 (10 pts), boolean chains 1 (nesting depth added 4). None of this is in the body itself: all 22 points belong to one function literal inside it that branches (line 878). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc13069f1e1ca3f94f2d69d80ac088ec331e0c2e635ab5b4c42cd6e774fd664"}},{"ruleId":"D2","level":"warning","message":{"text":"ganttDb.getStartDate (cognitive 22): ganttDb.getStartDate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 8). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fb65038d20c5d5e452516960600d5dd052b179738d2d1d160c2bf123965e34"}},{"ruleId":"D2","level":"warning","message":{"text":"SequenceDB.apply (cognitive 22): SequenceDB.apply has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"30691a72cb7e97fca4b83892f0eaac1750afbcf19c47dbe56408f15047fc9e02"}},{"ruleId":"D2","level":"warning","message":{"text":"sequenceRenderer.addActorRenderingData (cognitive 22): sequenceRenderer.addActorRenderingData has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 6, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"99da07b7425f9fa80eeaca1c444a48d566f42cd46b14be07b2a53716767a0614"}},{"ruleId":"D2","level":"warning","message":{"text":"sequenceRenderer.buildMessageModel (cognitive 22): sequenceRenderer.buildMessageModel has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 4, boolean chains 3 (nesting depth added 5). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c5bafd3701e95697333966d54af64484c0c281d4b77f2d478b26d18a03723f"}},{"ruleId":"D2","level":"warning","message":{"text":"scoreLayout.computeRankFaithfulness (cognitive 22): scoreLayout.computeRankFaithfulness has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 8 (9 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a84e873759028c1acd02362a02882142bd77a8731aa67d8a57811a007b66d39"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.reduceCrossings::transpose (cognitive 21): layered.reduceCrossings::transpose has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (layered.reduceCrossings, layered.reduceCrossings::count, layered.reduceCrossings::sweep) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2253}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f71c1a07fa92c3762c03a36a58f60394763c197fc662b9f24cfb40d5ac0da98"}},{"ruleId":"D2","level":"warning","message":{"text":"layoutData.toLayoutGraph (cognitive 21): layoutData.toLayoutGraph has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6, ternaries 2 (3 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layoutData.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3468e18054c9b23403c349d18c190f2141676248df534b9150f7f319a7a8c0"}},{"ruleId":"D2","level":"warning","message":{"text":"mermaid-graphlib.extractor (cognitive 21): mermaid-graphlib.extractor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 3, ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f14febf525e9d5feebf82c4517292b0b418a13e23515ebbe49bd31dc23a1e26"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.resolveRenderedOrthogonalCrossings::bestPairedReplacement (cognitive 21): materializedGeometry.resolveRenderedOrthogonalCrossings::bestPairedReplacement has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 5 (9 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (materializedGeometry.resolveRenderedOrthogonalCrossings) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":2792}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fb46b952715c2b1b2a5443905cba13044e578c104d099023ffdb89ce0ddb83"}},{"ruleId":"D2","level":"warning","message":{"text":"phase2.longestPath.assignLayers_LongestPath (cognitive 21): phase2.longestPath.assignLayers_LongestPath has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 8). Of this number, 17 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.longestPath.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"33caca1f75399ebff3f01a4d74b8fff75c6bfed6f659cfd68d01d438fa519d99"}},{"ruleId":"D2","level":"warning","message":{"text":"placement.readGridConfig (cognitive 21): placement.readGridConfig has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 12 (13 pts), boolean chains 7, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"17db2bc3a2fca7fe83650e2e1e9533f6a01135ee4005c98e647500590e5417ca"}},{"ruleId":"D2","level":"warning","message":{"text":"routerConstraint.validateSameContainerRoute (cognitive 21): routerConstraint.validateSameContainerRoute has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c809141bd1090787978a7183e25db9aa7e6e4993702807058a200f2e866334fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ganttDb.getEndDate (cognitive 21): ganttDb.getEndDate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d3792196bfbf9aa83430183620c9aec86b72565c9b3a85b1e0259e142ce9ab"}},{"ruleId":"D2","level":"warning","message":{"text":"SequenceDB.addActor (cognitive 21): SequenceDB.addActor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c1bd4535de409f21e74db550917430ac78622ef0f1680233b3b2fc995e0006"}},{"ruleId":"D2","level":"warning","message":{"text":"runner.matchExpected (cognitive 21): runner.matchExpected has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/conformance/runner.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fed4fd7a1aa5a2f0e1f8647ea7359e1581badeb09b284b76c18b86ea1a87448"}},{"ruleId":"D2","level":"warning","message":{"text":"runner.matchSemanticAssertions (cognitive 21): runner.matchSemanticAssertions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/conformance/runner.ts"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"6409045ff627f25a3cd0a485d3121db1f8d38d20cf31f386c95eda24a2f7c289"}},{"ruleId":"D2","level":"warning","message":{"text":"scoreLayout.hasDiagonalRenderedEndpoint (cognitive 21): scoreLayout.hasDiagonalRenderedEndpoint has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (8 pts), boolean chains 7, if/else 5 (6 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"650bc7df6355e83635c9bbae053be70bbe1fe75f0fb900aa075af1a14381bd1c"}},{"ruleId":"D2","level":"warning","message":{"text":"regexes.matchFrontMatter (cognitive 20): regexes.matchFrontMatter has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 5, boolean chains 3, ternaries 1 (nesting depth added 4). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagram-api/regexes.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f7b873dd5e8f19523b6fba1ebdf701dfed7d41f36b1ad68d396653c0a765b9"}},{"ruleId":"D2","level":"warning","message":{"text":"shapeUtil.addText (cognitive 20): shapeUtil.addText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/shapeUtil.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e415f0191005dc2deea1873532ccfd5e5db77a31a521b1641c798f3f51311d9"}},{"ruleId":"D2","level":"warning","message":{"text":"index.check (cognitive 20): index.check has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4 (5 pts) (nesting depth added 7). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65cc89af7467118cde458c2d41a1561eeb7b9a1e95b8815a58b938d31bed77a"}},{"ruleId":"D2","level":"warning","message":{"text":"c4Db.addContainer (cognitive 20): c4Db.addContainer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: 2 other methods here (c4Db.addComponent, c4Db.addDeploymentNode) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7572613fc2b1998b41760179a6d44955d414427f784552486a0090e7855d69a3"}},{"ruleId":"D2","level":"warning","message":{"text":"c4Db.addComponent (cognitive 20): c4Db.addComponent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: 2 other methods here (c4Db.addContainer, c4Db.addDeploymentNode) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a84aad92be4fadb4daa6d0dfc5379cfed4aa3206d2721b6e26b1446854630e6"}},{"ruleId":"D2","level":"warning","message":{"text":"c4Db.addDeploymentNode (cognitive 20): c4Db.addDeploymentNode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: 2 other methods here (c4Db.addContainer, c4Db.addComponent) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"de39cc50adb6a8d60608401d4ede526d242d81a38ae598073bcf96f79b75c7af"}},{"ruleId":"D2","level":"warning","message":{"text":"orthogonalEdgeClipping.outlineEndpoint (cognitive 20): orthogonalEdgeClipping.outlineEndpoint has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, ternaries 7, if/else 6. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/orthogonalEdgeClipping.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"820863e880033a204ac50d5630cc99676d2f2f6fadfb3b0d2b111eff8f198cf4"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.rerouteLineCandidates (cognitive 20): edgeLabels.rerouteLineCandidates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 4 (8 pts), loops 2 (nesting depth added 8). Of this number, 13 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"6031c45bccd1e0ffd251f28425a71d952b496f2d8051214142918704b981ec35"}},{"ruleId":"D2","level":"warning","message":{"text":"routerSparse.sparseSameContainerRoute (cognitive 20): routerSparse.sparseSameContainerRoute has cognitive complexity 20 (threshold 15). Drivers by points: if/else 24 (41 pts), boolean chains 24, ternaries 6 (11 pts), error handling 1 (2 pts), loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (routerSparse.sparseSameContainerRoute::searchPairs) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b91de270c2d6cbfb2510747106bf0d9da9e2e0e5fa2a4be51f645d906396e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"gitGraphRenderer.drawCommitLabel (cognitive 20): gitGraphRenderer.drawCommitLabel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 5 (nesting depth added 8). 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":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84a5655ec2253db94d70d9884a39465e27e61ad28ab88383d227ab23c96ecfa"}},{"ruleId":"D2","level":"warning","message":{"text":"styles.getStyles (cognitive 20): styles.getStyles has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 16, ternaries 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/styles.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3790a40b3077514266b010ae3990d1f883237fb55d0cd611ee136c9dc0c033"}},{"ruleId":"D2","level":"warning","message":{"text":"architectureRenderer.getRelativeConstraints (cognitive 20): architectureRenderer.getRelativeConstraints has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2, boolean chains 1 (nesting depth added 11). None of this is in the body itself: all 20 points belong to 3 function literals inside it that branch (lines 324, 308, 345). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1767cad2466fa42b25321b0659e5803594d0779cd037ead42054575aa6dceb"}},{"ruleId":"D2","level":"warning","message":{"text":"vennRenderer.ensurePairwiseSubsets (cognitive 20): vennRenderer.ensurePairwiseSubsets has cognitive complexity 20 (threshold 15). Drivers by points: if/else 2 (6 pts), loops 3 (6 pts), ternaries 2 (6 pts), boolean chains 2 (nesting depth added 11). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c67a70ce70ba584c7c795f67ba9032dedbd8c9ba1f06dce82de4d5b2fed0d81"}},{"ruleId":"D2","level":"warning","message":{"text":"UsecaseModelBuilder.collectElement (cognitive 20): UsecaseModelBuilder.collectElement has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 3 (6 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e28875e8d53ad2ce359d5756adfbda780ff9b4b22676b3b52dcd2252c393270"}},{"ruleId":"D2","level":"warning","message":{"text":"measureDagreGraph (cognitive 20): measureDagreGraph has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), other 4, boolean chains 2 (nesting depth added 3). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 294, a function literal at line 377, processEdges). 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":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ca820c2090967bd19521728f923d63a3a726b4cc39aab7e3f1bd1b73169490"}},{"ruleId":"D2","level":"warning","message":{"text":"createText.createText (cognitive 19): createText.createText has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 4 (8 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":"packages/mermaid/src/rendering-util/createText.ts"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9698c8a1264c49a96f1ed56a031a69f38078a2d9c1b9442b6842042ce3a5fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"util.labelHelper (cognitive 19): util.labelHelper has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 7, ternaries 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ffbb220bb43367915ccf47dcbc693e836d45f3ea0e8238f6bb825a8f18ed9b"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeMarker.addEdgeMarker (cognitive 19): edgeMarker.addEdgeMarker has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, ternaries 2 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edgeMarker.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"522534736114d07d83d4e875f25a2f54d8b1572dbeecf8cce7227d51c8f3fd74"}},{"ruleId":"D2","level":"warning","message":{"text":"render.sanitizeElkEdgePoints (cognitive 19): render.sanitizeElkEdgePoints has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (9 pts), ternaries 1 (nesting depth added 2). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2504}}}],"partialFingerprints":{"codehealthFindingId/v1":"936a48b907d05ca9b23e0e94d527622e6cb3fc7a642aa367ec995e9d538cbd0a"}},{"ruleId":"D2","level":"warning","message":{"text":"geometry.orthogonalSegmentsCross (cognitive 19): geometry.orthogonalSegmentsCross has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 14, if/else 3, ternaries 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4368865bdbad275f3c0980b4b732e436cd67f4d6dff0244c1f8062caa14ae2"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.collapseRedundantRectangularDoglegs (cognitive 19): materializedGeometry.collapseRedundantRectangularDoglegs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 7 (13 pts), boolean chains 9 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (materializedGeometry.collapseRedundantRectangularDoglegs::candidateIsSafe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c3a5c246f2c2f2737dcc9d50ddf4c5cda87c72e31c65fbce296969b8c740b5"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.reassignCrossingExternalRailChannels::externalRailForSegment (cognitive 19): materializedGeometry.reassignCrossingExternalRailChannels::externalRailForSegment has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 6 (8 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (materializedGeometry.reassignCrossingExternalRailChannels, materializedGeometry.reassignCrossingExternalRailChannels::candidateIsSafe) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"108dc13fe2ecaae5bb4526da8be4c4db27bd92756e59bac5fa6077f11fd663f1"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.shortcutRedundantOrthogonalJogs::candidateIsSafe (cognitive 19): materializedGeometry.shortcutRedundantOrthogonalJogs::candidateIsSafe has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (materializedGeometry.shortcutRedundantOrthogonalJogs) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1827}}}],"partialFingerprints":{"codehealthFindingId/v1":"9daa30c086f601c8df9eb363356ea0fc412d3e7137e4db9b499708ea282dc3dc"}},{"ruleId":"D2","level":"warning","message":{"text":"router.routeEdgesOrthogonal::fixPipeCrossings (cognitive 19): router.routeEdgesOrthogonal::fixPipeCrossings has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (11 pts), if/else 2 (8 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (router.routeEdgesOrthogonal, router.routeEdgesOrthogonal::crossingPenalty) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":2051}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb30b6ac9fd875aeb5b401545f97c4f8bdc6aace670195df85c74cb539216bab"}},{"ruleId":"D2","level":"warning","message":{"text":"geometry.mergeCollinear (cognitive 19): geometry.mergeCollinear has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c06b81cf20eb5e22a03b9c61ae72728c8d6081fc67b65203169ab6a976f853a"}},{"ruleId":"D2","level":"warning","message":{"text":"labelSpacing.buildGridLabelRequirements (cognitive 19): labelSpacing.buildGridLabelRequirements has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/labelSpacing.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab5e811b7e8f81d4ec6dca47611985fbe3bbb09a458727289e791cfd41f3549"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.placementOnExistingSegmentWithReroutes (cognitive 19): edgeLabels.placementOnExistingSegmentWithReroutes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts), ternaries 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"76915facd383a79d10fabfb81e6a437d5ef54112e17fc1344cece098dd0e65fd"}},{"ruleId":"D2","level":"warning","message":{"text":"routerCompatibility.routeWithinContainer (cognitive 19): routerCompatibility.routeWithinContainer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40365f38afc1082ee27364403e00634236daf72b92a223c0698ecc20c92334e"}},{"ruleId":"D2","level":"warning","message":{"text":"ganttRenderer.draw (cognitive 19): ganttRenderer.draw has cognitive complexity 19 (threshold 15). Drivers by points: if/else 85 (117 pts), loops 13 (17 pts), boolean chains 14, match/switch 2 (9 pts), ternaries 4 (5 pts) (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (ganttRenderer.draw::drawExcludeDays) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bf59fe227128a5cac080015ca3a3308fcc9f0cc5a674c7681dd7be215f2a94"}},{"ruleId":"D2","level":"warning","message":{"text":"quadrantDb.parseStyles (cognitive 19): quadrantDb.parseStyles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantDb.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"660bf48fb2e31b7be165f0e0e76ab35b5b118100e74b48a1f8e9a6faba78a4ea"}},{"ruleId":"D2","level":"warning","message":{"text":"sequenceRenderer.adjustCreatedDestroyedData (cognitive 19): sequenceRenderer.adjustCreatedDestroyedData has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (8 pts) (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e69012c9b02e9f5d6911f41fde1e201734d6eae28abcee028bdc1340e4e77d"}},{"ruleId":"D2","level":"warning","message":{"text":"timelineRenderer.draw (cognitive 19): timelineRenderer.draw has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ab4dc35308b353b37732fe1649646538ec1a940fbca84b6ec4ec3edf7e7060"}},{"ruleId":"D2","level":"warning","message":{"text":"architectureRenderer.layoutArchitecture (cognitive 19): architectureRenderer.layoutArchitecture has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (7 pts), ternaries 3 (6 pts), boolean chains 2, match/switch 2, error handling 1, loops 1 (nesting depth added 7). None of this is in the body itself: all 19 points belong to 3 function literals inside it that branch (lines 513, 383, 514). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37adf784b046cea0ff4db9a71773f92089e7e6777c111679b5ccc3d44dd621d"}},{"ruleId":"D2","level":"warning","message":{"text":"UsecaseVisitor.entityName (cognitive 19): UsecaseVisitor.entityName has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 9 (16 pts), boolean chains 2, if/else 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24f01d6323b9360f76c2ba70db7281025276fbbe5d4ede91c724f2c95992d11"}},{"ruleId":"D2","level":"warning","message":{"text":"layout.calculateEdgePositions (cognitive 18): layout.calculateEdgePositions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 4, boolean chains 1 (nesting depth added 2). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 465). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"936526f7170644bbd94c2ad21f6f7f5e8b7cd2f5ba779f52a3d379d65ec36923"}},{"ruleId":"D2","level":"warning","message":{"text":"tiltedCylinder.tiltedCylinder (cognitive 18): tiltedCylinder.tiltedCylinder has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d2a09f657378c64fb0ced8ea30d1deac744a2f5176884517fbcbffdfdc8550"}},{"ruleId":"D2","level":"warning","message":{"text":"layered.spread (cognitive 18): layered.spread has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (6 pts), ternaries 2 (6 pts), if/else 2 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc11d89b2daf6b5435b564ee096e686030ed01771c6c894d510183aac02195be"}},{"ruleId":"D2","level":"warning","message":{"text":"materializedGeometry.liftObstacleHuggingSameSideRails::candidateIsSafe (cognitive 18): materializedGeometry.liftObstacleHuggingSameSideRails::candidateIsSafe has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (7 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (materializedGeometry.liftObstacleHuggingSameSideRails) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"88330593a8764c79f47d7baa69919f70755c025a27234f7719fa86bc350df057"}},{"ruleId":"D2","level":"warning","message":{"text":"labelAnchoring.anchorLabelsToPolyline::tryPool (cognitive 18): labelAnchoring.anchorLabelsToPolyline::tryPool has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (labelAnchoring.anchorLabelsToPolyline) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b56d28ae42bc752bab58855ac1cbac0c7349379bcfc748200771813efeae6b"}},{"ruleId":"D2","level":"warning","message":{"text":"phase2.crossOptimization.optimizeRanksByCrossings (cognitive 18): phase2.crossOptimization.optimizeRanksByCrossings has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossOptimization.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"da663bd669c2646aa809442db009055babb7086b13403c37854d43f3717cccdf"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.prepareGridLayout (cognitive 18): edgeLabels.prepareGridLayout has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 3 (7 pts), loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"907422ca1644934c327d90cccb182c43c27a479a8781e3640ebe4a8ee7a16535"}},{"ruleId":"D2","level":"warning","message":{"text":"routerTopology.buildPairedPortal (cognitive 18): routerTopology.buildPairedPortal has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 6, if/else 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f671d6f8a46dca4594d484a05b1f3f46f353e1cd2f4482f74cf5bb494895f2"}},{"ruleId":"D2","level":"warning","message":{"text":"routerConstraint.validateContainerSegment (cognitive 18): routerConstraint.validateContainerSegment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92fc2cd4adffc808e8cd784130543dc0bb46d369bc2c12ec900c55e1674ed0d"}},{"ruleId":"D2","level":"warning","message":{"text":"shapes.normaliseNodeShapes (cognitive 18): shapes.normaliseNodeShapes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/shapes.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec7f2e8f171c91ca31bf43e782e14a139529a0a5e440f86cbac7daabe65e676"}},{"ruleId":"D2","level":"warning","message":{"text":"gitGraphAst.merge (cognitive 18): gitGraphAst.merge has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 5, ternaries 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"20899f7ecb5a2a2f350371d310b7110551a368de6332fb4b089b826a2b09efad"}},{"ruleId":"D2","level":"warning","message":{"text":"QuadrantBuilder.getDefaultConfig (cognitive 18): QuadrantBuilder.getDefaultConfig has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 18. 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":"packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9b5855fcacc726012754457aa43204bb4b1ea277b4a689412cdc65684b3fb7"}},{"ruleId":"D2","level":"warning","message":{"text":"ishikawaRenderer.draw (cognitive 18): ishikawaRenderer.draw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 2 (3 pts), ternaries 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b351a101aa99833e4fe1ed5a21efa128b894ed90c8c5ff5a68b3f53a454f94"}},{"ruleId":"D2","level":"warning","message":{"text":"scoreLayout.evaluateThresholds (cognitive 18): scoreLayout.evaluateThresholds has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f6408123a3f5a040a8cb26fe5835a4905b801d5a89217f09c1346962b93487"}},{"ruleId":"D2","level":"warning","message":{"text":"getStyles (cognitive 18): getStyles has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 17, other 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/styles.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fc8bed31b5e2531804283613834df12f531d9a7a50a63a4440fde670bf652d"}},{"ruleId":"D2","level":"warning","message":{"text":"drawActorTypeEntity (cognitive 18): drawActorTypeEntity has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, ternaries 7 (8 pts), other 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"0901486a03a29bd6fb9c192073c1f7d0bc35982e279b1ba9fd46985c94359f33"}},{"ruleId":"D2","level":"warning","message":{"text":"clipOrthogonalEndpointsToNodeOutlines (cognitive 18): clipOrthogonalEndpointsToNodeOutlines has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, other 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/orthogonalEdgeClipping.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b753a394762ce62226cfba3593c842009c47cbbe2cf044f0b67d5bb6ff2ee6"}},{"ruleId":"D2","level":"warning","message":{"text":"docs.processDocs (cognitive 17): docs.processDocs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1, ternaries 1 (nesting depth added 4). Of this number, 11 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5688f9aff3f989b5a5d67a9357b2abca329941ca44384efc4d27ff0ee39e640"}},{"ruleId":"D2","level":"warning","message":{"text":"c4Db.addRel (cognitive 17): c4Db.addRel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4 (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f871d1c78740eec5bd3e7c9277167c05c9a16ee2a204977c88f356609d4f4f"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowDB.addSubGraph (cognitive 17): FlowDB.addSubGraph has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 2 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 766). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"8764c6de8694e267331a92ee1df5053a3c09c2d0a94281e8fa5fb8018559a433"}},{"ruleId":"D2","level":"warning","message":{"text":"mermaid.runThrowsErrors (cognitive 17): mermaid.runThrowsErrors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 1 (2 pts), loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaid.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56da465d1d4c0922a0599c5e9ed03dbf2b182bddb1925730a2697a53c3fdfc1"}},{"ruleId":"D2","level":"warning","message":{"text":"createGraph.createGraphWithElements (cognitive 17): createGraph.createGraphWithElements has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 6). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 161). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/createGraph.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca7da328902f2bc30995e45b6de7811f2b6322f23125ca5f5ae0bcca077df9c"}},{"ruleId":"D2","level":"warning","message":{"text":"anchoredNodes.squareAnchoredEdges (cognitive 17): anchoredNodes.squareAnchoredEdges has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd244e2ee57e171a6b238d9e941e4d8e273e3378d30745592309cc3496c8706b"}},{"ruleId":"D2","level":"warning","message":{"text":"geometry.segmentConflictsWithAnyEdge (cognitive 17): geometry.segmentConflictsWithAnyEdge has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c7ab5d0528bcd6c76dae78385341de19a2e1fca460c9775d7109ff51d6d63f"}},{"ruleId":"D2","level":"warning","message":{"text":"geometry.orthogonalizePolyline (cognitive 17): geometry.orthogonalizePolyline has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c9de9804cc7c13c86ee97b0b5f08cac4846bac14e3f1d05f56ddd2d0b88a19"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.queryForeignSegments (cognitive 17): edgeLabels.queryForeignSegments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 8). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"1126e0cbb80282471c8c7b05a7e81652df42405a5a46f6e3068a8cd7c8e85b98"}},{"ruleId":"D2","level":"warning","message":{"text":"placement.resolveGridPlacements (cognitive 17): placement.resolveGridPlacements has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9519f3a11a4168293eb74b9e75037f306a9be94779ab703894bb4f2a272dca8"}},{"ruleId":"D2","level":"warning","message":{"text":"routerTopology.unionObstacles (cognitive 17): routerTopology.unionObstacles has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 5 (8 pts), boolean chains 1 (nesting depth added 8). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e85f22959689149844a6544589e72e747782a51dcbd23a03b47e5a452d4b3b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassDB.setClickFunc (cognitive 17): ClassDB.setClickFunc has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 8). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"26be50d685e5a870f257c51642af1b1fc2dde4aa7cf93c5e0e5e0150439228f6"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.populate (cognitive 17): parser.populate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/packet/parser.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"94048c960fcbde960c76e9b9a75c655824c7a0e848c8f9f4a6e751a1d8c97a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"UsecaseModelBuilder.applyActorProperty (cognitive 17): UsecaseModelBuilder.applyActorProperty has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69c11940247bf0c4d528f7d4bbca38106e0e8aa6e2e6563021f6567cb4f8164"}},{"ruleId":"D2","level":"warning","message":{"text":"usecaseRenderer.prepareUsecaseLayoutData (cognitive 17): usecaseRenderer.prepareUsecaseLayoutData has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseRenderer.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c762f716bd913ecea5319c858a152be3457e62b170173a8d5c6ca60b62909b59"}},{"ruleId":"D2","level":"warning","message":{"text":"drawLoop (cognitive 17): drawLoop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 2, loops 1 (2 pts), ternaries 2, other 1 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 1 belongs to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1453d0a57e13558b02f71a82aefb505605a7679c75c2c1962bdb448dcd70d5"}},{"ruleId":"D2","level":"warning","message":{"text":"stateEnd.stateEnd (cognitive 16): stateEnd.stateEnd has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/stateEnd.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"85eac63bd28589fecd949c04575db4233db6b947fda0990a8db7c1b9c3453688"}},{"ruleId":"D2","level":"warning","message":{"text":"compound.inheritCrossedDirections (cognitive 16): compound.inheritCrossedDirections has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 7). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"7697c64604d7c912f0204b5822d487e175b9e2809df6ce7b3449bc8a27a8db12"}},{"ruleId":"D2","level":"warning","message":{"text":"c4Renderer.drawRels (cognitive 16): c4Renderer.drawRels has cognitive complexity 16 (threshold 15). Drivers by points: if/else 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":"packages/mermaid/src/diagrams/c4/c4Renderer.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b55f1ed31f072641b1730cd603591122d53f25e572c0ec35c3bc37c0c9915b"}},{"ruleId":"D2","level":"warning","message":{"text":"lanes.buildLaneModel (cognitive 16): lanes.buildLaneModel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/lanes.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b22a2b9fce6d39804fa29a235c85767438e2a3cd8072280eda2edd383078f7"}},{"ruleId":"D2","level":"warning","message":{"text":"endpointClip.snapAndCollapseEndpoints (cognitive 16): endpointClip.snapAndCollapseEndpoints has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"1068ba04bfd130280359b837863dbad672f62c76e14f0406c6b9314c1c712358"}},{"ruleId":"D2","level":"warning","message":{"text":"terminalStub.collapseShortTerminalStub::segmentCrossesOtherEdge (cognitive 16): terminalStub.collapseShortTerminalStub::segmentCrossesOtherEdge has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (terminalStub.collapseShortTerminalStub) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/terminalStub.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1828fdd991043efda4880ac4abc30225e496e1cec8f15ef8b93026929f3c42e"}},{"ruleId":"D2","level":"warning","message":{"text":"phase2.crossCounts.computeSubtreeCrossCounts::lcaIndex (cognitive 16): phase2.crossCounts.computeSubtreeCrossCounts::lcaIndex has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (phase2.crossCounts.computeSubtreeCrossCounts) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossCounts.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"53543342c28f40fac405b7b5256ecba5e523e06a90da96b0dcd2a959efb74180"}},{"ruleId":"D2","level":"warning","message":{"text":"geometry.segmentsCross (cognitive 16): geometry.segmentsCross has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (5 pts), ternaries 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"475ece7256154ba1bca56a0c70d232c6cb892dc878de9fe8a64a3f12160b3a2d"}},{"ruleId":"D2","level":"warning","message":{"text":"edgeLabels.createEdgeLabelContext (cognitive 16): edgeLabels.createEdgeLabelContext has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea103bb49794fa0fd0e12b68397ddf145b8814ad2391b36bbf7749452e1fdee"}},{"ruleId":"D2","level":"warning","message":{"text":"routerTopology.createIntervalIndex (cognitive 16): routerTopology.createIntervalIndex has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (6 pts), ternaries 4 (6 pts), if/else 2 (4 pts) (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b357cd6f1c4b08313f7952528d75fb396146695fb3a6ae53d9d0323ea17403c"}},{"ruleId":"D2","level":"warning","message":{"text":"routerPlanning.allocateEndpointSlots (cognitive 16): routerPlanning.allocateEndpointSlots has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), loops 5 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 3). Of this number, 10 points are the body\u0027s own statements and 6 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db57e45181a6cd7308c743f3b12fe46c0255a12ebcfb4acb56f4e796446100c"}},{"ruleId":"D2","level":"warning","message":{"text":"RouteOccupancyIndex.conflicts (cognitive 16): RouteOccupancyIndex.conflicts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), boolean chains 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerOccupancy.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a343adafd631be7b718e560dec6b505ea684db8baaa26a6a83fdc387c8e2dd"}},{"ruleId":"D2","level":"warning","message":{"text":"layoutCore.materializeAbsoluteGeometry (cognitive 16): layoutCore.materializeAbsoluteGeometry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f7ef56ce3a2834d522d1d2ecd849ad797685dc68c732f03b2f9bcd480d035e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentFlowDB.addSingleLink (cognitive 16): AgentFlowDB.addSingleLink has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"944bbc51764c537e0e9f70e983e3012135684ef8fd8852a671389c6de867e07a"}},{"ruleId":"D2","level":"warning","message":{"text":"ErDB.addCssStyles (cognitive 16): ErDB.addCssStyles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (7 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/erDb.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a5acd2f667ed238fb97b8acffa29a99437c97438f534a3062f42a55753b67f"}},{"ruleId":"D2","level":"warning","message":{"text":"LinePlot.getDrawableElement (cognitive 16): LinePlot.getDrawableElement has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/linePlot.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"436e4e9021e91547c9870a862ef34da9bcf880e0dcfdae36340e8275eb018474"}},{"ruleId":"D2","level":"warning","message":{"text":"sequenceRenderer.drawCentralConnection (cognitive 16): sequenceRenderer.drawCentralConnection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), match/switch 2 (3 pts), ternaries 2 (nesting depth added 7). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f77711c85e04242238c1c9840fabb8f8f537745743e377796ec9618fdffa65"}},{"ruleId":"D2","level":"warning","message":{"text":"sequenceRenderer.calculateActorMargins (cognitive 16): sequenceRenderer.calculateActorMargins has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 5). Of this number, 13 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99cc94c4471754f75136d6dacd75e11582ca897296aecaefa09ef0eb8fb739b"}},{"ruleId":"D2","level":"warning","message":{"text":"ishikawaRenderer.drawBranch (cognitive 16): ishikawaRenderer.drawBranch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65198d613163748047619a5390bd0449219002b0b60612aecd85808f1b3c977"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.populate (cognitive 16): parser.populate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 3 (6 pts), loops 3, boolean chains 1 (nesting depth added 6). Of this number, 12 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treemap/parser.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3f9ae6ebd628f99527bef0f78fcae7de5ebb8bd1e6b8a35e4f69e6488582c2"}},{"ruleId":"D2","level":"warning","message":{"text":"UsecaseModelBuilder.validateAndRefreshElements (cognitive 16): UsecaseModelBuilder.validateAndRefreshElements has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c17d126fd38e9a0930fb855001a39e251d3efae0a8ed0b2256dd3a82db0c3f3"}},{"ruleId":"D2","level":"warning","message":{"text":"UsecaseModelBuilder.getStylable (cognitive 16): UsecaseModelBuilder.getStylable has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (15 pts), if/else 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"620ffe86190550feda0801adc22d7cee223ddc54d8b2f59b1f98737de68b05ab"}},{"ruleId":"D2","level":"warning","message":{"text":"wardleyParser.populateDb (cognitive 16): wardleyParser.populateDb has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 4, ternaries 4 (nesting depth added 1). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 174, 99, 138, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyParser.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3f20f825e98fbffee7db06417a422c671d30815821d30f41b496ac7a386d8d"}},{"ruleId":"D2","level":"warning","message":{"text":"validateLayout.nearEndpointBandDistance (cognitive 16): validateLayout.nearEndpointBandDistance has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 4 (6 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"5350124122b08e9a27b8f13b3efb0b508048f886631a466c9f0a0d94c80ee155"}},{"ruleId":"D2","level":"warning","message":{"text":"usecaseSystemBoundary (cognitive 16): usecaseSystemBoundary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, ternaries 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"878ebb9301ec15d6ff9e38d4d6ebad785e87ab496c16f3d0bc5a758eb57660dd"}},{"ruleId":"D2","level":"warning","message":{"text":"getSelfLoopSide (cognitive 16): getSelfLoopSide has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 2 (4 pts), boolean chains 2, other 1 (nesting depth added 3). Of this number, 8 points are the body\u0027s own statements and 8 belong to 5 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c8c08aa1efe8a71647b724a75c1cca59735ecd3869961946906db083e21856"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: router.routeEdgesOrthogonal: FunctionTooLong \u2014 routeEdgesOrthogonal runs 1314 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1214 over it, 13.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e8b2a5311a38dbf37ceb1243ccf5de3032570d528082c30526a863045055d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wardleyRenderer.draw: FunctionTooLong \u2014 draw runs 759 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 659 over it, 7.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"26adc7808493e9216bc6d462b203012763136e62b48559300fe16de161680de2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: materializedGeometry.resolveRenderedOrthogonalCrossings: FunctionTooLong \u2014 resolveRenderedOrthogonalCrossings runs 726 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 626 over it, 7.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3f6038afcb3c2ee74626d9e0073df89d1a6277ba476f023fa333e1ef9f720c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ganttRenderer.draw: FunctionTooLong \u2014 draw runs 519 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 419 over it, 5.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9065178022d6dea2eef41c9a563bdd10fbb02405c372dab9429335fc2968b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: compound.compoundLayout: FunctionTooLong \u2014 compoundLayout runs 476 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 376 over it, 4.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"631dfd74916dfcd539d6a43cd27a46d561103b8db9eb86f6ff16b10051b19608"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layered.layered: FunctionTooLong \u2014 layered runs 438 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 338 over it, 4.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"904fd8960688166b3dde9b8f5ef758fd3739cf1e55e77fac0d7d6d92cc03c71e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: direction/materializedGeometry.ts: FileTooLong \u2014 2063 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1563 over it, 4.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef70780071324ef4419af6dd719cb07251061b5fab65d85d56db67af8723a3d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: layered/layered.ts: FileTooLong \u2014 1914 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1414 over it, 3.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a3f1631a8f255d0fb7dbe57d27eaeaf9c00eb7445b16f1993825f24cacce49"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grid/edgeLabels.ts: FileTooLong \u2014 1883 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1383 over it, 3.77\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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02209836aa147cce93f24124baa082ef160a53f8a006c64aaa12ca0ca97306cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: renderer.draw: FunctionTooLong \u2014 draw runs 362 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 262 over it, 3.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treemap/renderer.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"130a64ac08514114ca766e68ffb558a04d2ae3c8b8d0cb52ae07d244a600592a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: elk/render.ts: FileTooLong \u2014 1753 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1253 over it, 3.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a4f213216a797e92a613e6abb7c77259327a51aac4b8bb86cd574fcf03872c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UsecaseParser.constructor: MethodTooLong \u2014 constructor runs 340 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 240 over it, 3.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"578b2e11ee38af872b36bbf311dc4d1be0052e7427889e3e706c10d427ce25e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sequenceRenderer.draw: FunctionTooLong \u2014 draw runs 339 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 239 over it, 3.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"b908301eb35f3841d8bc61f727dc93754b7523e1280931ef29b985be7f51a558"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 333 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 233 over it, 3.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9745ca75ebb5fbb7376ce46eaa969e586edbaa87b119e80a31aef57817d38f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routerSearch.search: FunctionTooLong \u2014 search runs 330 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 230 over it, 3.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc996355bdab1cdeed62d449726afcc487263ab9f86f58adff10c9dc3a2bf421"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentFlowDB: ClassTooLong \u2014 1319 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 400 significant lines; this is 919 over it, 3.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"994ecdaeb176e8c2eb027179b77f0416a5af9c41bd7922c286f0c7e03b505053"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sequence/svgDraw.js: FileTooLong \u2014 1528 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 1028 over it, 3.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"130c4748c372bbd1c16915accb89afde035bc566811c6e91bfc931d3b69cfee2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sequence/sequenceRenderer.ts: FileTooLong \u2014 1509 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1009 over it, 3.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7c798016a2e30fded367b9d310532054b9e1c3bb4c74b94144b4d966145059"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agentflow/agentflowDb.ts: FileTooLong \u2014 1445 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: AgentFlowDB (188-2478). The bar is 500 significant lines; this is 945 over it, 2.89\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcf2a2eb3087cbff4fc17f5c80d3621ec7159d67dac08d73717247b39f3efa4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layered.reduceCrossings: FunctionTooLong \u2014 reduceCrossings runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd8c1c6052dfc9713cdfefc8cbbb5b6f7370d05e7c24ac8b807d75c5ccf7e4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: orthogonalRouter/router.ts: FileTooLong \u2014 1394 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: routeEdgesOrthogonal (141-2382). The bar is 500 significant lines; this is 894 over it, 2.79\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49308887a93af5c59e9d327ab96647f902bf8944ae0e2b7a7d60a425e3b4eaac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 272 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 172 over it, 2.72\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf7d03d81b399af56068acdae9f9414702d592f5c8d9d30a7650b4cb831ee00"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 269 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 169 over it, 2.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f273eab14c677133d1b062485c49b59c866185420d18b20f09487b7f141bf6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: materializedGeometry.separateSharedRenderedTerminalLanes: FunctionTooLong \u2014 separateSharedRenderedTerminalLanes runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c463cdd8a3545ba4c8ad3fdf68e61f7dcdb6b1b5a12c867aec4107eb36fe7eb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: materializedGeometry.reassignCrossingExternalRailChannels: FunctionTooLong \u2014 reassignCrossingExternalRailChannels runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"811d81494288f3be6dca3eabbc923eb2b287e883bb6d455b5c6833710d0aa8b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: edges.insertEdge: FunctionTooLong \u2014 insertEdge runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2b278ff95f5f22633f28b8b1069f17b82bf2bb452c845e7653e94a9a2ce723"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae5740c59f40d166e075e22cbfee8e4a4b56e22399496e382e5ba3e1b43e084"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cynefinRenderer.draw: FunctionTooLong \u2014 draw runs 265 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 165 over it, 2.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ece5c35c8160af08ed312e4ef63b6bde4c918332345335ef70201370ff02f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 261 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 161 over it, 2.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdb06f1e591641a439a184b7aaefdf80bd36c9b4082122312bc8a2c17c04a5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"777b645f1031c5defb8d1dd431afdc58b317f9c498c6e5b9d416efcff753384a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f676d6d69c2e7b3504e1fe090f626112370d4adc85c7b3bcfb8ce765c5338959"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 258 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 158 over it, 2.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e32e18a1450b67fd92a1b9c92a13276ce44cc35350f34372aba82821a9c1e9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentFlowDB: TooManyMethods \u2014 77 methods. The bar is 30 methods; this is 47 over it, 2.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1086da8f4b726894d29aae35e8fffbf4eea2041f544f25678e66e9853becad08"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 255 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 155 over it, 2.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark-color.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1488948c40d72a7459f757851465ec7fe986dd267c4ba9cdff08930f60b12ced"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 247 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 147 over it, 2.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neutral.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4c909a212a43b61a3286136f1d2e8a760547405470b9b455d526811ac4bf1a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.updateColors: MethodTooLong \u2014 updateColors runs 246 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 146 over it, 2.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"07888107429384b5be458f017615eeb297deb97cbc8f1a959e5fe9f2967f0854"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: labelAnchoring.anchorLabelsToPolyline: FunctionTooLong \u2014 anchorLabelsToPolyline runs 244 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 144 over it, 2.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b066748c4b10fda59ddcc9d4d80328deb4810e444cf458fd012166264437cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: phase4.coordinates.assignCoordinates: FunctionTooLong \u2014 assignCoordinates runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8741720da4ff087c884ff75b73f7659f5c4fb684dcd8b287577e45345901f015"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UsecaseVisitor: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14712cd64a60813be188110bca9145044a4b1e67f727355c7ef7edc1f42b018"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: erBox.erBox: FunctionTooLong \u2014 erBox runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c7b94d9510b50368f494f12c4f8c156448a5157207dc52948445cb5eee6677"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GridEdgeRoutingSession.routePlan: MethodTooLong \u2014 routePlan runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86d7ca7a3ccf0d3191c4eb03a948d7e7c9943f4c666f85f7fd7a092307d6f72"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/gitGraphRenderer.ts: FileTooLong \u2014 1096 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 596 over it, 2.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c15a377ce5988060ea9d54ec230f3960ff44bc4b5ee31913180629330263578"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FlowDB: ClassTooLong \u2014 872 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 472 over it, 2.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cec2c01f7c44f147f2230c7490e1ab914897f86393e7a4d59fc186cf3a5478a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sequenceRenderer.drawMessage: FunctionTooLong \u2014 drawMessage runs 215 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 115 over it, 2.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98641a9b519427dbac1adc6b453864bddbe1cb774b85cc0ffd24dd5534dff1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: compound.routeCrossings: FunctionTooLong \u2014 routeCrossings runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc72c00a7895ef0d7078bf4c5aa2ab2ce18cf8c8e15c9d44a5d4ad0b4798211d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sharedTrackNudging.nudgeSharedInteriorSubpaths: FunctionTooLong \u2014 nudgeSharedInteriorSubpaths runs 213 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 113 over it, 2.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/sharedTrackNudging.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1285bdd6cd5a0fcbef6940f08957093ae2d0f47ec7e6ac49b437acbeb5f72d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rendering-elements/markers.js: FileTooLong \u2014 1019 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 519 over it, 2.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c978ac4baad7ce68f82f338a0b8cec09ad5cec303a051dcec44ca87606911fe8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layered.position: FunctionTooLong \u2014 position runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2340}}}],"partialFingerprints":{"codehealthFindingId/v1":"e821a9d5c6e5d361bb5248741ce14e85e8c836cdf5e00aaff2ac7387a5744a3f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grid/routerCompatibility.ts: FileTooLong \u2014 975 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 475 over it, 1.95\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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5defec3264c0e3cdbfc30f49c2e27b259c218c56508b7b88f1217fa27921c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layoutCore.layoutContainer: FunctionTooLong \u2014 layoutContainer runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be9c45daa94b2b69e759a7644114aa0a30edef7c2f7453ca22aa5ce74078679"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layered.assignTracks: FunctionTooLong \u2014 assignTracks runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"132243e53b378a224933813399c6c0343da9d1fa31b691b41648255fd89ef075"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: flowchart/flowDb.ts: FileTooLong \u2014 949 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: FlowDB (98-1499). The bar is 500 significant lines; this is 449 over it, 1.90\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b571786d21ca616b33614c0d28d1e3a2c07dee0faa0488c73b299f213574c26e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usecaseDb.getData: FunctionTooLong \u2014 getData runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c918bdf2200ae0feae8ca3e313bf05a21a6dd27ef375961e32b2fdbdfe1499"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: classBox.classBox: FunctionTooLong \u2014 classBox runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"00aa905a4b6d3f8505c2469453dc0082aaef87d6d686c6ead4d71012094cf4a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grid/routerTopology.ts: FileTooLong \u2014 923 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 423 over it, 1.85\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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6b055a24f51b34cbd27c17bc761965bca9e5d31994adf0ed6551c9507b4535"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: detourSimplification.simplifyDetouredEdges: FunctionTooLong \u2014 simplifyDetouredEdges runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/detourSimplification.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33fefa612837f9d8cc258d646a213859b976ea52d0ea82d6bc7d311526d90c1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UsecaseVisitor: ClassTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 400 significant lines; this is 316 over it, 1.79\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6647ec8089a9fa0f71d014cc3f10eb18e9e20c3c4e74837613075c6bb907e9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grid/routerPlanning.ts: FileTooLong \u2014 884 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 384 over it, 1.77\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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"617fb201268cd6a1de1ba776c697ef80aeea362fa831c3cc2aab7bdd08a1ee97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: layout-utils/validateLayout.ts: FileTooLong \u2014 879 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: validateLayout (553-1481). The bar is 500 significant lines; this is 379 over it, 1.76\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d764ad348e400ab467796d6a938d12869ecd7c83eb3129eb06a7be7c93976e4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routerCompatibility.prepareRoutingModes: FunctionTooLong \u2014 prepareRoutingModes runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eeadafe831a9862a896d1136f4aafed27249842fc2b60cca48dee5fc363540"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: materializedGeometry.shortcutRedundantOrthogonalJogs: FunctionTooLong \u2014 shortcutRedundantOrthogonalJogs runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa12e6f814a1aa8c818dd355cf3d86ac2ab9c9f0be9594dd133bc7a2e3bfef00"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pieRenderer.draw: FunctionTooLong \u2014 draw runs 174 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 74 over it, 1.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/pie/pieRenderer.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e28432cc09f7597e452f4af31142de3d4e4a74139eccf6368a04b5765474932"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: layered/compound.ts: FileTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 351 over it, 1.70\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8c7b27a54502c1ba5e146db1efd1446e2c0f44b58f40ffd96c6fa652271974"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlowDB: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d792670d575e19f695144f355694e0d7feef520c1179182dd3192013e14ad98"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UsecaseModelBuilder: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"132cb03618f55fcf58c74debc6ece268c587756136023ab96c1eccf885f39dde"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UsecaseModelBuilder: ClassTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 277 over it, 1.69\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6ce4ff7cf7c04941db23c5615669eb8f33537ee7fa517c9fd4b8817ceae02a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentFlowDB.getData: MethodTooLong \u2014 getData runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"737f33f7a4e32a31274045fa44e86b462ab6a4ca1aeb420ab8ef9efdd27f79be"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: timelineRenderer.draw: FunctionTooLong \u2014 draw runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a788a8ee4b01184b7e3c5976dcf89db8b2d77815c29d95cf05e3ed001793cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.run: FunctionTooLong \u2014 run runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e86e0ad2c358f690858d822736eaff2a175a2da21cf8dd2a6fe529c31285bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rendering-elements/edges.js: FileTooLong \u2014 820 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 320 over it, 1.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfebb05f0431b48bd0ea74f8c9a581f06e1dd1e5f2d341e0ccd2aa00f0a93b8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/usecaseModelBuilder.ts: FileTooLong \u2014 817 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: UsecaseModelBuilder (172-1050). The bar is 500 significant lines; this is 317 over it, 1.63\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b78925680ac954ad420f09a1771ea239b10f73fbc1e810e9c60b01427616da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: wardley/wardleyRenderer.ts: FileTooLong \u2014 813 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: draw (67-1067). The bar is 500 significant lines; this is 313 over it, 1.63\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48529a72b309e2151e18673bead5d522ec038e5c5e0d7adb1c4d47e1e86abfe"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routerPlanning.assignDemandCoordinates: FunctionTooLong \u2014 assignDemandCoordinates runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"1829a49693117b7b0192192434153095f77ee6a2e1caeca57a48d420a4bcaa84"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: vennRenderer.draw: FunctionTooLong \u2014 draw runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc1e6218a53d1635afdda2b734729c6a48178190cf748c83f1de0b675b3a358"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: swimlane.swimlane: FunctionTooLong \u2014 swimlane runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc870a0e13391033cd1fb6b5be4feedcda80c5310eee6b5ed0d3c715f59052c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FlowDB.getData: MethodTooLong \u2014 getData runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"60270873f48dda7e3ec836b51afbd57cc03816885a7d7fc77a1d32c660f980cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/usecase.visitor.ts: FileTooLong \u2014 774 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: UsecaseVisitor (68-975). The bar is 500 significant lines; this is 274 over it, 1.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66ff8d4f3b491ddc0ce910fdf37f97b32b661c4b301f094b46ef07407dce1f9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClassDB: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56b2fff6817be6b26d5fca1621973d4f8c3ae0e628eb0495f6034c47469142e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routerTopology.buildEndpointRoutingOverlay: FunctionTooLong \u2014 buildEndpointRoutingOverlay runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6a2e7954406be6396c77115168fa4a6aa161bb59ebd0824a8fde6a7598437e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: timelineRendererVertical.draw: FunctionTooLong \u2014 draw runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/timelineRendererVertical.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8f301d952ac864269f7e6f2036fa416699fc6c852739dab34a5cc685e1a75f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: materializedGeometry.swapDestinationTerminalTailsToReduceCrossings: FunctionTooLong \u2014 swapDestinationTerminalTailsToReduceCrossings runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dad8ffc9f60787f20e382fd7dbe536d5b898aa694119f8f34b61387a1e9185b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SequenceDB.apply: MethodTooLong \u2014 apply runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8ef9ca86992492befb6337748f3542ca16dce3cfda413c7231eb290876f6b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dataFetcher.dataFetcher: FunctionTooLong \u2014 dataFetcher runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/dataFetcher.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9525656e43c8615e6cda9c05a17d7ba7bb35d5557e61366c96554d5c5a8bea61"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: helpers.writeBackToLayoutData: FunctionTooLong \u2014 writeBackToLayoutData runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8993e20c239b4eec0edfb85f2efa0133f61166e22c40a7191684ab73de3e35"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routerSparse.sparseSelfLoopRoute: FunctionTooLong \u2014 sparseSelfLoopRoute runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4d7b5ec558ff69ec24ef72cf7014c6dac3793c37451e001833e4ed3a839ea0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: validateLayout: ClassTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 173 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2d4cb6ad95051bb23504aa43cdae5ffce93cd1826f83142b2c066413016a48"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: materializedGeometry.liftObstacleHuggingSameSideRails: FunctionTooLong \u2014 liftObstacleHuggingSameSideRails runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f2a5c0e18e67663bbc7f036183ff267fd4be78e1c71dbaf63f91fd2e6ca6db"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routePath.routePath: FunctionTooLong \u2014 routePath runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/routePath.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"714ad6bc7ccbbf941e1f0a15ef7f1b3372c15869fefe6ed9735fd960b97c0a3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grid/routerSparse.ts: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 190 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb49a55055b205a04010b4bda944557b51060597bb876be00c89a102015a8eb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: phase2.crossCounts.computeSubtreeCrossCounts: FunctionTooLong \u2014 computeSubtreeCrossCounts runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossCounts.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d899e7b92927ac73e48375c9fd02013b1b8cfbbd2b33cafe63d3114d85b06827"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: gitGraphRenderer.drawArrow: FunctionTooLong \u2014 drawArrow runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cf3bdd85cab2d0930b9ec6a6ff5bf2cfc939c88b0078c4be1fe8165b04a372"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: edges.insertEdgeLabel: FunctionTooLong \u2014 insertEdgeLabel runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f8196efd70a5a6b79e197974b13c9b8daa7d92db4b0e6cb6e0901b8f208e34"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: stateRenderer.renderDoc: FunctionTooLong \u2014 renderDoc runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"508fdf88615ab61b50f7863da1fb6ab8d3e321c0166924440cfb5c227aec31f6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClassDB: ClassTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 129 over it, 1.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cbf4ee7a03cbf6d6a925c5a9c12e467e9d7f9c0059acd9169f3e199349a7b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: requirementBox.requirementBox: FunctionTooLong \u2014 requirementBox runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d389ba007eca6caed7c50d41c1672634278b3387afa6be1be8835d1b6e2f6697"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layout.calculateEdgePositions: FunctionTooLong \u2014 calculateEdgePositions runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"975f96cc8db3fb9bc87f81a446382b83ab498202a7518b0f704f56caf8dbb278"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sankeyRenderer.draw: FunctionTooLong \u2014 draw runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a333a25c23428952476ed68ca085bbdd8a809981f4dba288c38b64081ac8721"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: styles.getStyles: FunctionTooLong \u2014 getStyles runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/styles.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b469abafb07e40a2b63a3fdb71bc261b873e3bdcd5958ea7cb880d76e80c38f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: terminalStub.collapseShortTerminalStub: FunctionTooLong \u2014 collapseShortTerminalStub runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/terminalStub.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d67d9b16244522029e5ac3e05a3b17c3eb1491ca3667d0a55f1a426b965fe6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.measureDagreGraph: FunctionTooLong \u2014 measureDagreGraph runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb6e96942b67296796b7dc7a9078faf3edb097577a39ce46cfd6b42b0f504bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: render.applyElkEdgeLayout: FunctionTooLong \u2014 applyElkEdgeLayout runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4fc1354a2ac7617bf999993bee78f22892553064875535510ec568e74bee34"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: lrTransform.applyLrDirectionTransform: FunctionTooLong \u2014 applyLrDirectionTransform runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/lrTransform.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0c571bd6dfb368ea5bcb69290004ace2f6866f873c0e2e020490daa230a4a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: svgDraw.drawEdges: FunctionTooLong \u2014 drawEdges runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/svgDraw.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef6ef6207768110069bd87cd82b4564e6399036e37d383c4f9653437de35494"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mermaidAPI.renderDiagram: FunctionTooLong \u2014 renderDiagram runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"52955ecdc46c6d041cbaa580ada935a9273182d3c828f9044cd734d37f202400"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StateDB: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cd9182163892836e34a0c076c7df07e48013fd8e1408b21aa4cfb3b4453ebb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routerCompatibility.labelAwareSelfLoopCandidates: FunctionTooLong \u2014 labelAwareSelfLoopCandidates runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c2f74f1f45c24470ca624aacd21baf5e324ed3f0c9e1aabd43c822f8b89e3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: quadrantRenderer.draw: FunctionTooLong \u2014 draw runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5613d15bd7ec189600c9e41b6efee0546202e07614caddc505e147429d89ec2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SequenceDB: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c7b0424c86d1db903d314ca7735266be03ebf48046c54db7a4d04da1501e94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grid/routerSession.ts: FileTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: GridEdgeRoutingSession (177-736). The bar is 500 significant lines; this is 82 over it, 1.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d60eda57289d752ef6127721406126710e5ec7683a4dfab77e2ea3276e818e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: grid/routerSearch.ts: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 79 over it, 1.16\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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd271c22105eb7b25d13528c0cfeb905aa464dfc620f5bda3b03c30fb72323a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dagre/index.js: FileTooLong \u2014 578 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 78 over it, 1.16\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":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4932e804890fb76bf1df9dc43679528c6f04fd6e6cb31f51aeb40213d64fcac1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rendering-elements/clusters.js: FileTooLong \u2014 578 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 78 over it, 1.16\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":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"411551d59c9a46f131860060b14dbe36eb98948961c1bdd99036189a43b0f59e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gantt/ganttRenderer.js: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: draw (85-900). The bar is 500 significant lines; this is 78 over it, 1.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1495a0c9f1a16bb433b61c403b9ad2f2e5f798539a4684b87407b686a19a5e6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: c4/c4Db.ts: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 73 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f04da330bf2e7a8abc73b6f19ab0974f53d53072f33be1d65325dc2007853d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: usecaseJsonTable.usecaseJsonTable: FunctionTooLong \u2014 usecaseJsonTable runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseJsonTable.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"0765ed8c95760839da8e85e7e49ba601a0d0a1492f5a93779e2649d7b718e9fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: class/classDb.ts: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ClassDB (37-884). The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45c6aa5f3807972283b463bdeca5a21732480d1c9aa8ea717850ba88899ea64"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routerPlanning.prepareEdgeRoutes: FunctionTooLong \u2014 prepareEdgeRoutes runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f491b5fb888fc8652935f6589db3072193e8aeac22d547768a45145ee684402"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Theme.constructor: MethodTooLong \u2014 constructor runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd693b21189b6faeae90bf1544836a63035ed398c18b76e5186feb8c532683e1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SequenceDB: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 41 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1351f05b8ed07c1d9fd0a16a64a248a56bc625b7ea44a91d952208904eb12f19"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: materializedGeometry.collapseRedundantRectangularDoglegs: FunctionTooLong \u2014 collapseRedundantRectangularDoglegs runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa383dd3c95e16154d8398c839a9fa3abc1893302dea5878b73759e2c634940"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: layered: ClassTooLong \u2014 438 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 38 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34c4258653d262cbe323b3af921322fb358d3b9cba16f5fa8bcdf89ff1c91a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GridEdgeRoutingSession: ClassTooLong \u2014 436 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 36 over it, 1.09\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1e7be90aa8964e59c3c33a0fa17d1a837849daf24b35d3da8e2389de3120ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/utils.ts: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 44 over it, 1.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":"packages/mermaid/src/utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"972bc4dd24d48522207824ad461ccd158b03afa52eaa604dde2db5b1c0611ab2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sequence/sequenceDb.ts: FileTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: SequenceDB (115-729). The bar is 500 significant lines; this is 43 over it, 1.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f522dff77dfde00bcb8181c3cb1ca328b9d86827f15197b62d52f79428974fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gantt/ganttDb.js: FileTooLong \u2014 541 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 41 over it, 1.08\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":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aafdf62acedc192bb83f8e640fe5e05ed819a1c9093913d28485d5940ada9d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: renderer.renderDiagram: FunctionTooLong \u2014 renderDiagram runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-local-editor/static/js/renderer.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"2434210edc654ee18ab67bf7a11d534a9e0a20f48120b444f45b48d61f860860"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: renderHelpers.getNodeFromBlock: FunctionTooLong \u2014 getNodeFromBlock runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/renderHelpers.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad2cc1179d23e97bc9af799cb83399513b018565ec6fe32b4f3e5bf24cff253"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: styles.getStyles: FunctionTooLong \u2014 getStyles runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/styles.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"22112aea253e83ca91dffd5111118f7680c6574cb14ba6409f3d134f1f533483"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rectWithTitle.rectWithTitle: FunctionTooLong \u2014 rectWithTitle runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7880d11c9073b9ff5e84d3fd91a4400435884ab1c2af8de65d16a60b91e32fb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: styles.getStyles: FunctionTooLong \u2014 getStyles runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/styles.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af9f9f0262535ec68e1b7fade9fcf5b5393f703b1a99f822a1097d28d7faffa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: render.render: FunctionTooLong \u2014 render runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/render.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f2db69a6b2994bd0dc41016db9f779f1cfb285890989a695612d457af6c903"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: svgDraw.drawNode: FunctionTooLong \u2014 drawNode runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/mindmap/svgDraw.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"127d07fdb84a4add77772b2ef89d87318daae1160af1ee4a0233d764981dcf01"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sequenceRenderer.buildMessageModel: FunctionTooLong \u2014 buildMessageModel runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"d637af960f82b37b7688073f3b6f21b62bd8d325e42bb2054619cf5553e00a8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: siblingSharedFaceRouting.straightenCollinearSiblingDetours: FunctionTooLong \u2014 straightenCollinearSiblingDetours runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/siblingSharedFaceRouting.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3fc32ea9f4f32a7084c40f5f5057a0fc34c71c0f32c3d68f37d772c322c14c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: direction/geometry.ts: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 18 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c366b29fa94eb2df903b7358bb228c24141a9a2f5387e2357459f9b07c6f78"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: render.render: FunctionTooLong \u2014 render runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/render.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6c0298e1a290c9e09075d490c698fd0c4b45384ee5f77c0137822a73718825"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layered.settle: FunctionTooLong \u2014 settle runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"468fd11f594945d63f55f448206e7082405f361402fd52283c97a825c205d9b1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UsecaseParser: ClassTooLong \u2014 409 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"014a385b9c1aaf7b86cb7f3890a991a8441923d50d427948e2b021fdbe73d2b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: state/stateDb.ts: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: StateDB (211-790). The bar is 500 significant lines; this is 8 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62437777ae7231e8952a823c6c623be836cb11f425548d87b4978c290d09128"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClassDB.getData: MethodTooLong \u2014 getData runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"50705eca25a2c23b0937d67845b0e01545648b23521168f1b63255da9290f3d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: svgDraw.drawEdge: FunctionTooLong \u2014 drawEdge runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0d45c7b0b868f4789ef0b408a35d740dbb20ecdc1ed6919512d30bb06b3975"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: styles.getStyles: FunctionTooLong \u2014 getStyles runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/styles.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29384ce74fbe2f46cf2e2dcd4bd58d78091b56550660002cdb1e187229c3dd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: svgDraw.drawText: FunctionTooLong \u2014 drawText runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc95743c5263e7aba564afb1eddab0e3645f0b81869100bb6d76acaf14aaad10"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: svgDraw.drawActorTypeQueue: FunctionTooLong \u2014 drawActorTypeQueue runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"2affdcee9d8d44e09bae9e06723a7dd2c8caa5881e30dc8a45cfcd21857612d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: wardleyParser.populateDb: FunctionTooLong \u2014 populateDb runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyParser.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d78163eaa8b16553c22b7f1147e99c4234dfaf4ec09b17cf5a19f9151abaab"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: @mermaid-js/parser: @mermaid-js/parser: abstractness 0.04, instability 0.00, distance 0.96 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c89c5dc9e736462064d19aa692e188acb850edc232396d37b2e4972a4148d82b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: .build/jisonTransformer.ts: 20.0% line coverage (1/5)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".build/jisonTransformer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"008d3063bc528b8d788b5063ae0191ddcb871cfdeb1bad1fb43fa7f9c13cb114"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: .build/jsonSchema.ts: 12.9% line coverage (4/31)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".build/jsonSchema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e052be731885db707277461201a7e7292476ffd926fbecea61210c9929beff4c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: .esbuild/jisonPlugin.ts: 20.0% line coverage (1/5)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".esbuild/jisonPlugin.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17a501ee6ea952d827836954bafda4b70434902a1a3996a45249a58f483584c"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: .esbuild/jsonSchemaPlugin.ts: 9.1% line coverage (1/11)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".esbuild/jsonSchemaPlugin.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e49172ab16e02e3c860a7e56ce7b46e0ad29fc03693fa6c1951085a66b942d9"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: packages/mermaid/scripts/docs.mts: 37.6% line coverage (89/237)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28122a6219c2ae28bfe932f19c91c99639987e7f3fc93bfc9f05350f91e9da2e"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: packages/mermaid/src/diagrams/agentflow/parser/agentflow.jison: 46.9% line coverage (321/684)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/parser/agentflow.jison"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c72fdcc4a347eaeb1e12d4874496afe5a7cd4eacd77150e2a0b1a4f7bd971cd"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: packages/mermaid/src/diagrams/block/parser/block.jison: 44.2% line coverage (227/514)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/parser/block.jison"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"338c19fe6ed65aba1edccbfe71438a49cc96f222c0fb6d7daeb4bb482552e4b3"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: packages/mermaid/src/diagrams/c4/parser/c4Diagram.jison: 49.9% line coverage (258/517)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/parser/c4Diagram.jison"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6bf8109044c6f673a3c4603dd30706d9558f2c4848c8fdcee5e46cdad5ad44"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: packages/mermaid/src/diagrams/class/svgDraw.js: 7.5% line coverage (10/134)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78870eed24c493dbf9d8c2a4c31f59f2fd566f3ad53bd0c990fa3a591c83557a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: markdownToLines - No auto wrapping: Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/handle-markdown-text.spec.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"22adb83a08efcac4ce22a5316b467fc63bcc55394d4cd78a2e3a589f8c92c0cb"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: continues reroute scanning against current edge points after each fix: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/postProcessing.spec.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4728e30cbd05d24512a9d56f564ea297b23b054b00159732d8966853cdaf2ff9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle if statements: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad806e5c7a454a79edcf6565051c106dee82ed6f4be9dff632c4cb37713520d8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should reset a branch: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraph.spec.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aad23b21009ade7445b795457bb242f9816d8d30afa0bb9f02bea9cd289c2cf"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: reset can take an argument: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraph.spec.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb501fc9929e0296166b1c8065ee678bb6c4ca9a1c441b7a4a5644c50ee30d07"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle fast forwardable merges: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraph.spec.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4180597ee61c23100359e968456e352f73062671ac504205f8caebdf941b419"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle ff merge when history walk has two parents (merge commit): Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraph.spec.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3139f04d34e6095a12d7143140f0794fea95c757d4ddbeee859e494645df9b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: it should handle huge diagrams: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/parser/flow-huge.spec.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"173b0a43dbc05141f12e5aaf472478bb208e549674d62b383be023df96bcb8b3"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should be possible to use @  syntax to add labels with trail spaces: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/parser/flow-node-data.spec.js"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8b9b2ec4cf592501b23205f1b1f327d84668e9eeb60cc904c15ed15e956449"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle subgraph without id and space in title: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/parser/subgraph.spec.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b97ecd0fdd7b3962cda42d2fbb44185c9416ad8241baa7ee1ef65f8aa0efc0"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: [skipped test] can contain \u00E0\u00E1\u00E2\u00E4\u00E6\u00E3\u00E5\u0101: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09e21972ea7297e4875e17d05507adb274d794fe42d184146f2b8524f2f5884"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle a leading newline: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c7238edc8af33017d8e58f2ab2f2ffb7833c48e59ded0345bd595f4f51ab9b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle arrowMarkerAbsolute explicitly set to \u0022false\u0022 as false: Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/other/pr-check/configuration.spec.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"996f98edec21f4b280f9f5fb13a56f31059bdd908993a72ab31b85c5b93db130"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/other/pr-check/dev-explorer-compare.spec.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee9a7ed5271e8ff8bfac42b035e16b358bc9ab397c2764247e3528cee82d662"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should add to mermaid: 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":"packages/mermaid-layout-elk/src/plugin.spec.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcc7574c81012a71b9aef5d0a4a2838591836946416a0d1e731f030f7a6edc8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle an example-diagram definition: 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":"packages/mermaid-example-diagram/src/exampleDiagram.spec.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcfecefd30c746c04d52dde9796e15306a11dfc56d8d3a54790828f5e8d720b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should return a valid style for an empty type: 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":"packages/mermaid/src/styles.spec.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"103921ebdb596354e6fb9be9810cd015ef6eff99b1e11ea77b387c123b123fee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should return a valid style for diagram ${diagramId} and theme ${themeId}: 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":"packages/mermaid/src/styles.spec.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3835030cdf1f740060c05630408134cfcacc2753259b817f99f6b3cc2303e3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: (unnamed test): 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":"packages/mermaid/src/tests/util.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26d01b79f0b852c0800c9f7abd820a8088e67d578e2fd33c04010a2455784b8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: \u0022${diagramId}\u0022 \u2014 two identical diagrams produce no duplicate element IDs: 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":"packages/mermaid/src/rendering-util/multi-diagram-id-uniqueness.spec.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc22ce41c148d25226f895773fdcae909e094224e83f057ac620d5910aecff5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: every registered diagram type has a uniqueness test or is explicitly excluded: 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":"packages/mermaid/src/rendering-util/multi-diagram-id-uniqueness.spec.ts"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6918688d651f5140f78a612d95bf33f11df55eaccd3062e8bec580c4ef70c32"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: Level 2: validateLayout \u2014 quality breakdown is within reasonable thresholds: 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/5-car-fun-sales-wide-tb.ddlt.spec.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81face79b45eb1992c2845bbce7d0d5e890471e0ca81a3eabf414988e109d1d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: Level 2: validateLayout \u2014 quality breakdown baseline: 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/6-legal-constr-sales.ddlt.spec.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"172c434c274154757ab0304aed9e5aadb22f4c296da05a7b41c88a6542458b7a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: Level 2: validateLayout \u2014 quality breakdown is within reasonable thresholds: 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/7-car-sales-constr.ddlt.spec.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6d4d64ff186b5cbc8203d1249fd5e94b81151b8f5dbdfa5656b72879e2ee3e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: Level 2: validateLayout \u2014 quality breakdown is within reasonable thresholds: 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/8-query-process-2.ddlt.spec.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dcd0019e74c907903f65b73353b6ea31b4213320767903bb94fb5237b094e0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: Level 2: validateLayout \u2014 quality breakdown is within reasonable thresholds: 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/query-process.ddlt.spec.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d884f806a755458c4aaa051599aff46a50be1694a8221711ecde522a13cc576"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: Level 2: validateLayout \u2014 quality breakdown is within reasonable thresholds: 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/simple-2.ddlt.spec.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c77b21d4a0b8a22ee5921b968072bec746ef6c095493668944066ad6ae79f1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: super simple: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4672d468ece3b96a928ecffb29a6f7bcfb5439cfcfbc800557eca5a96daba5c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle relation definitions: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"34188d07d28225f66419b65f102e7248f94ee5d6140bcce6f5bd4c17e8862bf1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: hide empty description: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"de53b7382312417eed386354f9892da47041d98d1b5754bc0a718d4d76e994a3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handle \u0022as\u0022 in state names: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e752895632927feb1f053df2442c31d9c4facc3682dff45b2d57468cd8a43013"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handle \u0022as\u0022 in state names 1: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3551fa4a2a44c2d8d137c0688a84cfc3aa34c88587fc373685a209a645f5d3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handle \u0022as\u0022 in state names 2: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"499f1340a5539459501aff74a28e63cb834a4750001a0e8782a776c67ee56d51"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handle \u0022as\u0022 in state names 3: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e3eead13d182d18ddb6eedfc38c7c2f3f7e84ca652c4f35cb2fb05b4427536"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: scale: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1042c6e5213aeb521b89f76ebd6a001a6cefdbb5f6124865ba8118025d9ab4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: description after second state: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a698f04d548f4613d1c81fbaaa040d3b39521008059959ade1d1d19d0d9224"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: shall handle descriptions including minus signs: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e92623279d50352f61da7218072af993296b068554f4820db3739ae43d47ab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle state statements: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b442af176b6feaa949b04b17f9678bf39fadc43d7e72dd86e862e826b061c75"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle recursive state definitions: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adc7a5a1f3e886f918ac7a6b175649d8afcebf32ec17fc4a2021c954f27e440"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle multiple recursive state definitions: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a092db0559de570115ebcd40a3078b75e3cd1e3acaeaa5f93e5a491d735545ea"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle state definitions with separation of id: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c450d1b9afe2aa36a543e08ae9c4226a9d88c59e75fbec0c4498fc50eb8a02ab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle state definitions with separation of id: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafee5c685bc743e6952bda903a978773e76f8824dfad83191106c65bfcf8607"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should State definition with quotes: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f779afb1c85c0036d37055d21384d2fdfbff8001c2d31bb2fdd38c7752974f5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle fork statements: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"939cd5c6eba076fce6a770c89f44bb0d8044fcb3741a1c8911a1b5d608011bb1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle concurrent state: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8de2f7635bfe3f84a99edbe55b868ab3669371c82ea3c157f18cb78fb63579"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle concurrent state: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"126b2720a4c28e944241a55a5585c3e510d6168c28a634640a8a26de3cd632dc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle floating notes: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e77d6dd2709c4bc865db6153ba12f37beff3e56bb601778fe798ec35fa865ae"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle floating notes: 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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.spec.js"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"250c7b6094c18b4597c2a2cb5b36713dd17b58c78fb2fca97f98848a1889c08e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: super simple: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab3196ca36a90fcfaa8c6dc380a09106c61c941d10c302bd58d91f3783e853b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle relation definitions: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4334662cc8dcdd860f7ca8aa6c38ba39b021532a1aa15598a7eee7d261fabc6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: hide empty description: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"64268a2784a263766e6d4b1887bc749e592257fe61e2096450e08db0ff974c2a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handle \u0022as\u0022 in state names: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa78eadac8d8da038dd2d635e588058acfd8e5fc85d677adb376e1b8f064bff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handle \u0022as\u0022 in state names 1: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c01f6ac0dd7d691e2da308bd1559133d0ff8ab7493cbdfaa27fb1d86a4acb0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handle \u0022as\u0022 in state names 2: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d011c4767b73256b428579a50b7a1769c9ec974946624cd3f377ce3b22b4d616"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handle \u0022as\u0022 in state names 3: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"377c89434538652a96ba258f113991a136ff3c44cd97406f1802dbb15011b2c1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: scale: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e6c72bc2661580e6817a5cd3c617553f2a77842809cbcd7a441db7ca12d978"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: description after second state: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd653cc6cfb15b411951ef35e402ebf887431cb33768f78b676d7ebba6e3fb54"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: shall handle descriptions including minus signs: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2963889e44c40e6bc3d481692f5ae0eae5c690eb2997711ad0494eadd62427"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle state statements: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1bd3e9f68f3fe1795aab765cbfa5818a4e418e07074986566919545554a7ae"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle recursive state definitions: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a80b2fed3f937a625b184acfbc6ee2e1beddcd513220a7f4e9f56a722f2f1d5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle multiple recursive state definitions: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"344f0de1fe702856c125c859759fee87ec25e9346ae1b215d26def026fc9de7d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle state definitions with separation of id: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b610e71f6a39588c9d97ce03351f922c2335019b387e6c0fc4f51deb12bb58"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle state definitions with separation of id: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fae070d4751e180a03055eb17d669392d5a9a88f903d2c42e492bc5f95435ba"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should State definition with quotes: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f1f8fba19bb4804786dd7fe5b25751b8201906ca04562f17ed903d79fb7a8c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle fork statements: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d6a6f1b5dd974470658483dba29dcf0f22d3cbe0f1d4d08191c1697e6b7cd1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle concurrent state: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be8aff917484ac578702e0ac6ead6c432fe2cad075f30b4e903af9126d76d0b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle concurrent state: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"da36053a6e41f04cdd7bb8e2cffd952e2294f2d2e6d3b59d88062e785ecd042f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle note statements: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0db126f405eebfb190bef973c1cce579497a4a918f386cffa2730636a0393d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle multiline notes with different line breaks: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f480cb7032a6b39d7726b5f9ba7791837988b5fec94b775b87c0a83543cc41"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle floating notes: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b9a4cb129053a1e97735c0510abfff1c1e662b675960abf32f162356503a6a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle floating notes: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cf1c67d54d2e2e750092bd4ff85414a2d4d6c5c0f1ae3f4f60cef29fc2a0c9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle notes for composite states: 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":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b008a5eae7cd65d02fe107d6d758079abcfcfe20e7f63b959dc633b9c846df3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: 1 should parse : 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":"packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js"},"region":{"startLine":2436}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e838fd33725bd77579ac98c8025e51a912654bfd0fb0c2ab777f4e769a51097"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: 2 should parse : 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":"packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c0c72731327d3eb857745678332c185483040065e2a26d739a28d58bd6fdbd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: parses csv with sankey-beta syntax: 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":"packages/mermaid/src/diagrams/sankey/parser/sankey.spec.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e80b9e1440173de217110b7656941981d0ba7cbf296a9908bf874141390f0c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: parses csv with sankey syntax: 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":"packages/mermaid/src/diagrams/sankey/parser/sankey.spec.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb688fd3d128c4dc41fb3a17c42355d11c721adb277582b89f3d326f3ad2caf2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: allows __proto__ as id with sankey-beta syntax: 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":"packages/mermaid/src/diagrams/sankey/parser/sankey.spec.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a21a4a4cba7d08246a4cbf51fdebea8a89e2bb866e64bfd659dc1df893ead2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: allows __proto__ as id with sankey syntax: 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":"packages/mermaid/src/diagrams/sankey/parser/sankey.spec.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"479c213af03b9723b992467068959b071eaad73dc08b19def4bd0f79010b7c9c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should draw a simple radar diagram: 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":"packages/mermaid/src/diagrams/radar/radar.spec.ts"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0511321128c407ea7c78a98fe44e3a6e00b4e04516ffc1662c765ab7d9e949a3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should draw a complex radar diagram: 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":"packages/mermaid/src/diagrams/radar/radar.spec.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d4a1d223cbeb7aeeeedd0ed0e72ee9a57a045d0c55be630790f91df96ac5ec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle nested subgraphs: 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":"packages/mermaid/src/diagrams/flowchart/parser/subgraph.spec.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"d153a6b48cfa8631fdb7129fd1f47872e9fe127f473bc1c5dbf42bc6d50741d9"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): should limit the number of relationships between the same two entities: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47fb7dbc956948ef050492d0317a02c3cb260e4655a1ee8700ff5733b567c85"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): should not allow multiple relationships between the same two entities unless the roles are different: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc4128968459043abf94bcff5de0f40bb01964f5b9fe5a4c2913940892e5345"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should allow number \u00221\u0022 as standalone entity: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ca550f8874972d33a20d0ca079862e1e3aa7035a317e9a7f152be5d0a76b15"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should allow character \u0022u\u0022 as standalone entity: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"931e1cc3bbc4ec64edb25358dc7bede43c4cc81eb2c8c33a95f04509b5a36985"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should allow decimal numbers as standalone entities: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6122225c54bf8d5c24e5a4416167e83e3a075f30b3d877a674c5934c7c21d2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should allow \u0022u\u0022 as entity name with attributes: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"30140528c86d9633f8d780ef9dd892cfdfd8d4f8f1e215fe194d29e1408ea640"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should allow number \u00221\u0022 as entity name with attributes: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c77d845532fb7ea13df8eb744b63e67f304d33b32055e83a7bc1938712c077d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should allow decimal numbers as entity names with attributes: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0277d7f27bd32dbd81ddaae0f77fa7ac10677b3f9c1bd7192dbcbf1247746578"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should allow \u0022u\u0022 in relationships: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d553c87a10f85a73bd37d76a64140f7088a9f0c0495faa99ef8c5ee8b93e1e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should allow numbers in relationships: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1207}}}],"partialFingerprints":{"codehealthFindingId/v1":"906673886e42d349d5ac2c63ef7eb2e23a56b3c01efb7a473c1bcd00ff390cff"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should allow decimal numbers in relationships: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5596675f01310b211485ebb8aeb82aaf3894cb5ab9acfc178a4bc2a3d91ab1b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle complex diagram with special entity names: 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"32487bc506c5b191121846a7f2014af96c9b2bf72533232ec6933f7827990b35"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle attributes with numbers in names (but not starting): 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":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"417242aa8f8e9e47310098319f3764bb463c7ecd9867bed0b36eb440c2edc4f0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle backticked class names: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c513242e1fd0fd6b29b96728d173b0c0bb8662097d433c78823e85a77d11947b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle class names with underscore: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"1debbad16b226eb04db872840fc67a04b3f4df284a976d0bed430bd7716c2194"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle parsing of separators: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18ec57a528199d3adbcbaceda274f986a286e9707f9ebe8af321d4e9f850bb7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle \u0022note for\u0022: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"722fd5c37eb5d35e7782de8e324db4f88c3c76318cd71865954d309b1baf56b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle \u0022note\u0022: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"af14064369d2fe5a71ee5dc651308829d0222cec54223b58ac7e9d01e7fefdee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle member definitions: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"770178e2424c6eca46695df9600dac477885f4361d2910862882d0114ae0114b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle method definitions: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94f945f8d66d427ab38346eaf351e3831cf0f1a3eb52c4bb67e94246ad6c31e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle a mix of members defined in and outside of brackets: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba1f87b1725e02b02c50d7315f96605a30864593633219f25e59a136ff6d462"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle member and method definitions: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb57ee4c1e1e7a72e9159ed414b5f73eff6f423af3f4d516465144fae7a90d8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle return types on methods: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"787e2c0857720b0b162240a2493f6a131ffa8fce9bfbb55a497339cbd653ed72"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle comments at the start: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"be15714956e0028c82f960c4a449aba2db1869b164ac67552d273f4abf88be8b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle comments at the end: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c22703fd7b9da82a9e3ca1e3f97d970f8e50b7ccff103e35475b6a4886c1e13"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle comments at the end no trailing newline: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2958efd494019a47705f7dab8445ffd38fd773c469621fc523c5a345ed16e4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle a comment with multiple line feeds: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"df68b6c4fdb596a7650a8d3177d20a4c9a29191ab8805ea3f7396391e11e083b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle a comment with mermaid class diagram code in them: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"052710d32beeba6e5589830b4b0e030ce205dde55ef491b273dca3a20663c763"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle a comment inside brackets: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ab555c1b0d00596cc444487233d44669aff28058e22f27a406ee6760d29226"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle simple member declaration: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"71928f7675109539eb23a5e22ce03628fb3cff3ff86c260b4d70ae09e4baad61"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle simple member declaration with type: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d351f6318871101a171b06a4d12b55b4184779cd93da90888560a95ec801474"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle generic types: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"211c26c3204a3d6ef6fe6afe5c74e5a58dc8eb5b7392c0b9616276a20e07bb56"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle method definition: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc4c97a6a9490a6c308ddf488fbeb90ee6b117e7478857572b67bc20cf1d2f4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle simple return types: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb85633acf1591e530de37392e4b06f3e199014f87820a6e773cd88ab0e65f0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle return types as array: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7595c3c69c05e6816254b6e435ae9b360f92d10d0dd6b74975a6202a8a71949"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle visibility: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc6951989a4040be515eb3d6d0a018a2f2f50d46c4367cabc79c50de992c3d9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle generic types in arguments: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"9538a7a21d54f2049e256e4158118db8f54f88c9aa033cbd0821aece89beae1c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle generic return types: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6d8a78533c3cc8848505169d75a952a08551a5d72bced1adb98fb515941022"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle generic types in members in class with brackets: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8e6b727c6e278b9908b77744547c1407b991f80329581a3aa72ff6cf345d99"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle generic class: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cf968fbbd23ce290a90277a66f93ad3e9d6f2b98dba2775ef118e253724de9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle generic class with relationships: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"281bd160c8df219ad87c3f22d56fc736fc008cc97738427be470fdac25297d39"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle generic class with a literal name: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3434cb12164b1cc96e32344924dd51c0b1dcc177b69bd85d99b6378881a85cd0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle generic class with brackets: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad359ef54e3336d7b16cbfc411d04101c969cb2ee29941f381a7c343d44f6f4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle generic class with brackets and a literal name: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cb4335ba331205648b7b57b1358d3d1091243ac5b04faef8d50c6610fd29ea"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle \u0022namespace\u0022: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"d475fb3b0a24f74800cf9464e2b2245e68631d7a90b08fbddd87a10b7bfe79fe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle namespace with generic types: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddb88424f530dbd3e553d4fe27f8f5a73b07b344cb7de61ebe235f98f5ce696"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle all basic relationships: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f2ff43640689ec6872e80296437b5e44d52936e3570e43d0a10d84ca6fdc4d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle backticked class name: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1514}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b929bf42aec51247f9f8b127c780f1fe808f4ac211b626681713ce27f2d55b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle relationships with labels: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e840834ab4f17e53e5fcd28c8920c770e81d461571a407792c7fad3d217a981"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle relation definition of different types and directions: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7a57db5cfa80f02e14c38ba741e8d97624c9e6f0758adbc0a6e4ad1a9e23eb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle cardinality and labels: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9184f65878a48f8e7fe93f89c21be9f30d7dd079cdea640b4012a5afb9d6a8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should handle dashed relation definition of different types and directions: 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":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"f059ef51156ff3f7c665bfaa60666063466fee488fc9b01e10f539afbc052847"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: matches its expected outcome and diagnostics: 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":"packages/mermaid/src/diagrams/agentflow/conformance/conformance.spec.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a25dc5550a247219705053e8db8dedf0eae879c4b36913b39b6f3ee0ff3e54"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: new diagram types require -beta in syntax: 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":"packages/mermaid/src/diagram-api/diagram-beta-policy.spec.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d6ce6c03337ff39e8542ef518a21955bd12a80c35e2f3610787723a75eba98"}},{"ruleId":"D10","level":"warning","message":{"text":"Test project verifies nothing: packages/mermaid-example-diagram: No conventional assertion call was detected in 1 of 1 tests in \u0060packages/mermaid-example-diagram\u0060 \u2014 the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/exampleDiagram.spec.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"774cc9a9470832c713859c0e8677da05a9d0ca0134f2a1e31c87dd41818eef54"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: calls setDiagramId with the svg element id: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowRenderer-v3-unified.spec.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e460c05ddf6c8bb87b7e607f1855d816e5df75c7b2aa0da3e939045ef57dad9"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: calls setDiagramId with the svg element id: This test sets up 5 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/renderer.spec.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90f5965adbc18d11d5b0493bac448abd30d0006f2292ebf3af7319a840eb329"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: @types/rollup-plugin-visualizer: @types/rollup-plugin-visualizer 5.0.3, declared in package.json, is marked deprecated by its publisher: \u0022This is a stub types definition. rollup-plugin-visualizer provides its own type definitions, so you do not need this installed.\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f864cd6914f5032ef9a6867f6f5eac5878ae8ab3462b560bb6de6b46a63d4d3c"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: eslint: eslint 9.35.0, declared in package.json, is marked deprecated by its publisher: \u0022This version is no longer supported. Please see https://eslint.org/version-support for other options.\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04d6fe6ca46e7c5138acb9303f34c05bf26af5e4732d5aadfd02868b07841a1"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: eslint-plugin-markdown: eslint-plugin-markdown 5.1.0, declared in package.json, is marked deprecated by its publisher: \u0022Please use @eslint/markdown instead\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a84d20429f0697b8745ded7f7a8e3f5a5cb512751c3b4b012ee61968fc6a4d"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: katex: katex 0.18.11, declared in packages/mermaid-layout-elk/package.json, is marked deprecated by its publisher: \u0022Accidentally published with breaking changes. Use 0.19.0 instead.\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-elk/package.json"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7fc41a5aa5d7b345b3ed778a0b8d1979fc4f3d7549e69f7cf8decd260ba08c"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: katex: katex 0.18.11, declared in packages/mermaid/package.json, is marked deprecated by its publisher: \u0022Accidentally published with breaking changes. Use 0.19.0 instead.\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/package.json"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9dfdc3e66eb90ed8cd3f64b8ede2a083fa08e8ceb03eae3a356f39907b9f6fd"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: @types/flexsearch: @types/flexsearch 0.7.42 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022This is a stub types definition. flexsearch provides its own type definitions, so you do not need this installed.\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":"pnpm-lock.yaml"},"region":{"startLine":4048}}}],"partialFingerprints":{"codehealthFindingId/v1":"723820a6bbb3b569643ea793618a29ad04e6abe04f13a6eb8ba6e406062c837f"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: @ungap/structured-clone: @ungap/structured-clone 1.3.0 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Potential CWE-502 - Update to 1.3.1 or higher\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":"pnpm-lock.yaml"},"region":{"startLine":4275}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d86ec1a2e3fe24653321fa508fa45166202fd89a0cafb5280abaa41358253e"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: @xmldom/xmldom: @xmldom/xmldom 0.8.13 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022this version has critical issues, please update to the latest version\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":"pnpm-lock.yaml"},"region":{"startLine":4741}}}],"partialFingerprints":{"codehealthFindingId/v1":"c823043374c83d0468ac938bbc81529dc79069ca628773d6a445b3a13434013b"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 10.4.5 is resolved in pnpm-lock.yaml and 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. 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":"pnpm-lock.yaml"},"region":{"startLine":6816}}}],"partialFingerprints":{"codehealthFindingId/v1":"06aea5043151b35bb100d36c0729a1ca57c572baa7da27303eacadf44c20a97d"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 11.0.3 is resolved in pnpm-lock.yaml and 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. 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":"pnpm-lock.yaml"},"region":{"startLine":6821}}}],"partialFingerprints":{"codehealthFindingId/v1":"599f5d090855bc7f5321605430a57d469ecd9c495b058b933dead3b3e9599a24"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 7.2.3 is resolved in pnpm-lock.yaml and 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. 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":"pnpm-lock.yaml"},"region":{"startLine":6827}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0f32f1d66e67f151a4ea269b29fdcefcbf887bc9e06cc7924f9e137934dd08"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 8.1.0 is resolved in pnpm-lock.yaml and 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. 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":"pnpm-lock.yaml"},"region":{"startLine":6831}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bd1f14639c0af38e4cff7d54c9efdb2e165f6279be91c75b5a422f3837fe65"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: inflight: inflight 1.0.6 is resolved in pnpm-lock.yaml 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":"pnpm-lock.yaml"},"region":{"startLine":7081}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2184d7a11499e8ddfd4472a972a193f33bf06bb5f3b139fced0662b3309d6b5"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: nomnom: nomnom 1.5.2 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Package no longer supported. Contact [e-mail redacted] for more info.\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":"pnpm-lock.yaml"},"region":{"startLine":8350}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2366e47ef9248947ccde4295c41ac0cc72249170f7a0393f820c2b865b4261"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: prebuild-install: prebuild-install 7.1.3 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022No longer maintained. Please contact the author of the relevant native addon; alternatives are available.\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":"pnpm-lock.yaml"},"region":{"startLine":8805}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9b8bafaeb60cb87846bb620559fadee6dec4558dd17cb8f689f91e6a7afa5e"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: rimraf: rimraf 3.0.2 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Rimraf versions prior to v4 are no longer supported\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":"pnpm-lock.yaml"},"region":{"startLine":9136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d047cf4bcae1d1bc58cf37d2e86dc7f7086f16676cc481e2e19c30d6a8dd1c0b"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: sourcemap-codec: sourcemap-codec 1.4.8 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Please use @jridgewell/sourcemap-codec instead\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":"pnpm-lock.yaml"},"region":{"startLine":9475}}}],"partialFingerprints":{"codehealthFindingId/v1":"749b30215ffb6e41b83070275aca9ce4d6470be3549cda2b4ebf225934f582e1"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: uuid: uuid 8.3.2 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).\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":"pnpm-lock.yaml"},"region":{"startLine":10188}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e1c22efbe3540906aea8d1aecd9f5c06e3bbb226a2f5a515592419ba467c94"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: whatwg-encoding: whatwg-encoding 3.1.1 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Use @exodus/bytes instead for a more spec-conformant and faster implementation\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":"pnpm-lock.yaml"},"region":{"startLine":10515}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e5cb7df63ff21258178b12434d5004ecefac7867185f56a1bb3b907df58d8a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 443 in router.routeEdgesOrthogonal at line 141. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf3095486020473650ae8be7e64c970b90837dfa0206a9237385e43a262330d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/themes/theme-redux-color.js: packages/mermaid/src/themes/theme-redux-color.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 195 in Theme.updateColors at line 106. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/themes/theme-redux-color.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3204e96012c5ef73a278bf484df752c2851bb03a0388ab2005e26c198ba4ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/rendering-elements/edges.js: packages/mermaid/src/rendering-util/rendering-elements/edges.js changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in edges.insertEdge at line 706. 16 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/rendering-elements/edges.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd179cf161072186b95fdcf05c63ce6acfc84187f414c479e959e93adf4b72bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts: packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 192 in validateLayout.validateLayout at line 553. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a0809411d983f67d1a200a4c47469d87a1d9b63df89f8f7de3da43a0ff05ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/themes/theme-redux-dark-color.js: packages/mermaid/src/themes/theme-redux-dark-color.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 192 in Theme.updateColors at line 108. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/themes/theme-redux-dark-color.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark-color.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9f63bc299b24d84cc8aee474609cd3fdb79156e7abdd4059f0c229e19ff0de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 158 in materializedGeometry.resolveRenderedOrthogonalCrossings at line 1915. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"635ebfe34cc30867bce6e907f32b6f486ec80d22ca4947968d5907a0d625ad5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in edgeLabels.positionGridEdgeLabels at line 2207. 10 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"dada1ba64e6bc6732293855ce89c457cc5118d6a80e443e46e92bf847784da14"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in routerPlanning.assignDemandCoordinates at line 424. 13 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"174f3d6b2a2e270359fe427348396575783d6d188b5681d5ca7a3fb762cee49c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/diagrams/flowchart/flowDb.ts: packages/mermaid/src/diagrams/flowchart/flowDb.ts changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in FlowDB.addVertex at line 188. 9 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/flowchart/flowDb.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b522137b581ac864e2d79b1ecb63528ce153bdab87cbbb35d5529412a5785eca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in routerSparse.sparseSameContainerRoute at line 153. 5 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3deb244a4fad6a318569f75904c24036ae6c0dfe38144a2675807b29bf6da8da"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/themes/theme-neo.js: packages/mermaid/src/themes/theme-neo.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 213 in Theme.updateColors at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/themes/theme-neo.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58c9aeee3e8d3c515f4700486b405a643ee75c2a56cd56c6f72e529e219093d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/themes/theme-redux.js: packages/mermaid/src/themes/theme-redux.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 202 in Theme.updateColors at line 58. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/themes/theme-redux.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7feeb30bdb97ef8529cc48139025bc709fe1e16618bf275be26377d22f89bcde"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts: packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in render.applyElkEdgeLayout at line 1966. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df8b6de656b82ae64d32846bd611f8bab99823aa9eda34edd213db6865d0b4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in routerCompatibility.prepareRoutingModes at line 1033. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"00589d7966c58d0737642333d31f1f97387c19359ac800ea7dfc12b4b30a0ec8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 93 in routerSearch.search at line 309. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf4a4394ba95e1ebd59f51ca0abcae3f0c35d856da46331c4113d347980bf46"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/themes/theme-neo-dark.js: packages/mermaid/src/themes/theme-neo-dark.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 213 in Theme.updateColors at line 68. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/themes/theme-neo-dark.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e347e1a80b04c9b309c072134e5bdc4748e22d2f375b134252d3a85b070837e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/themes/theme-redux-dark.js: packages/mermaid/src/themes/theme-redux-dark.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 213 in Theme.updateColors at line 76. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/themes/theme-redux-dark.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c3989432a478733655423284c715a1443f1451af7843d3f9167a619a456a85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in GridEdgeRoutingSession.routePlan at line 399. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"07098f90e61d7dc3ffd41916b598239eab54a57f97ddef40fc23a7f6e951ccf1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in layoutCore.layoutContainer at line 65. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f8ad062a7e0bce08e8102a89bb9cef10831bb1ce8a23633b7161030b6c0541"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/diagrams/agentflow/agentflowDb.ts: packages/mermaid/src/diagrams/agentflow/agentflowDb.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in AgentFlowDB.addVertex at line 322. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/agentflow/agentflowDb.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc245526aa9d19138d43bac1c3f211ad411442f3ebf84d548ae8acc6cd0678b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in placement.readGridConfig at line 84. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9a929131245b087bfa3e72bb64c5ed82fc3a4688d5ef698ccd6ea115807cb5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/mermaidAPI.ts: packages/mermaid/src/mermaidAPI.ts changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in mermaidAPI.renderDiagram at line 478. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/mermaidAPI.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"641550dddd8414659485f750fcb30d550d18651353bd58cbef0b060a9100c91b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in routerTopology.buildEndpointRoutingOverlay at line 1099. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"93439f71e96caf17002ff54ca07c74012d1fb4029f717b48e576c35f3d5b55c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in helpers.writeBackToLayoutData at line 275. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"962ca9b59872c7f819815533453d3356f108721f40ab5f2e4f495f6a657cab32"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/lrTransform.ts: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/lrTransform.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in lrTransform.applyLrDirectionTransform at line 269. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/lrTransform.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/lrTransform.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fec99608ac1771edbfe63f621ee1ddbeb1bf6e1df26ed706416d12c494706e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/diagrams/sequence/svgDraw.js: packages/mermaid/src/diagrams/sequence/svgDraw.js changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in svgDraw.drawActorTypeCollections at line 516. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/sequence/svgDraw.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"4718d2179b3971418a0d96afa8c963d39b926583d966491c7ca13dc52d74933f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 74 in phase4.coordinates.assignCoordinates at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"536c8d571842cd6c52fb4d3406c3d72c6817ff3ece38652d9e82dcfaf587ed0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts: packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in lineJump.applyLineJumpsToSvg at line 653. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed491bf558bc197a7fa05809a2c7055cbb852f0702f401231b5c1de1952cf5f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts: packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in index.run at line 144. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a06f87de355200434afa7bac706f64bf9be706934a178eb9d0fbb83f5e44d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/layered/layoutData.ts: packages/mermaid/src/rendering-util/layout-algorithms/layered/layoutData.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in layoutData.toLayoutGraph at line 166. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/layered/layoutData.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layoutData.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a40498c3643b35ef8a41d709ce930fd0f049f8ac894915f80a37dba5cb8d07"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts: packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in util.labelHelper at line 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"369dc695749e4bcddb4311a86e74ef05b26841ff4fe0ff0a7b77a99964eccffa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts: packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in classBox.classBox at line 14. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac12b77e53706806e8e4bb7cd83854ab74641f7d0d4634d2325bd8d08c7560a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/utils/gridPlacement.ts: packages/mermaid/src/utils/gridPlacement.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in gridPlacement.validateGridPlacementCoordinates at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/utils/gridPlacement.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/gridPlacement.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc450f6bf525778cbee59d48cbae9033ccaca1cdf432c72a414b7ad74ce369bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/diagrams/state/dataFetcher.ts: packages/mermaid/src/diagrams/state/dataFetcher.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in dataFetcher.dataFetcher at line 241. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/state/dataFetcher.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/dataFetcher.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cafea8aef89eb743e2a08ce56a3d9f84e2765532d05295fa23bfb03d4609a79"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/diagrams/usecase/usecaseDb.ts: packages/mermaid/src/diagrams/usecase/usecaseDb.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in usecaseDb.getData at line 295. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/usecase/usecaseDb.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"6360725d4637f61788729dc53f0a4d09dddc8ebba0386c15e1d3a5940a8d3451"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/e2e-diagram-scope.mjs: scripts/e2e-diagram-scope.mjs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in e2e-diagram-scope.detectScope at line 167. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- scripts/e2e-diagram-scope.mjs\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/e2e-diagram-scope.mjs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63e6d7a96b97ccc65945cfcce4846daa2726923796effb3e3e789e317747091"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js: packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in swimlane.swimlane at line 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f840b3af9e368253db931129e19d4683932f0264de81c848592f010f098d286"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/diagrams/c4/c4Db.ts: packages/mermaid/src/diagrams/c4/c4Db.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in c4Db.addRel at line 86. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/c4/c4Db.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d5db24c049d4287421d1a594cb2bf95b796203cc1da55a6a0a9d156e4d4178"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/diagrams/venn/vennRenderer.ts: packages/mermaid/src/diagrams/venn/vennRenderer.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in vennRenderer.draw at line 31. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/venn/vennRenderer.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3d77c9b30d9e3ff99204cbe269a68ae7d93616914c6b7b67350aef72fa7e6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/ddlt/parseToLayoutData.ts: packages/mermaid/src/rendering-util/layout-algorithms/ddlt/parseToLayoutData.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in parseToLayoutData.stampRendererFields at line 38. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/ddlt/parseToLayoutData.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/parseToLayoutData.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5f7755ace8231a4ce791716e5b9a7247fe4dea0178af0816ab27f734e4c2da"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/diagrams/block/blockDB.ts: packages/mermaid/src/diagrams/block/blockDB.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in blockDB.populateBlockDatabase at line 105. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/block/blockDB.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/blockDB.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6014c744aab1ccecb11bd874f94819f68305f6940c27a13b2c4886f8aa666bfa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mermaid/src/rendering-util/layout-algorithms/grid/groups.ts: packages/mermaid/src/rendering-util/layout-algorithms/grid/groups.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in groups.buildGridForest at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/grid/groups.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/groups.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2d08e8d95947d6d271c66c50df26cd67b44dc493f0d7b2d333472e0ff84c37"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts: packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts changed 17 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is edgeStepAnimation.escapeCssIdentifierFallback at line 88), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(flowchart): reserve badge space only at edge ends that draw an arrowhead\u201D; \u201Cfix(flowchart): keep step badges clear of the arrowhead base\u201D; \u201Cfix(flowchart): collect step badge obstacles once per diagram\u201D; \u201Cfix(flowchart): hide the step highlight from assistive technology\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0e96ac80de28aac3f5d62493c98747438a70a297a135cbb4f5eb3eac2a8a92"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/rendering-util/layout-algorithms/common/index.ts: packages/mermaid/src/rendering-util/layout-algorithms/common/index.ts changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is index.createCommonLayoutRenderer.render at line 130), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix label overlap bug\u201D; \u201Cfix(class): centre end cardinalities like start ones\u201D; \u201Cfix(class): place cardinality labels beside their ends with the ELK layout\u201D; \u201Cfix(rendering): clip an edge for the engine that drew it\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/common/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/common/index.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aea18fdcb2d7d0fedff8248126bacecc760a9768955c92cd96db808cb1ac6f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/diagrams/flowchart/styles.ts: packages/mermaid/src/diagrams/flowchart/styles.ts changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is styles.genColor at line 49), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(themes): fill handDrawn lane bodies, and pin tsc-check\u0027s floating deps\u201D; \u201Cfix(themes): emit a palette rule for every slot that can be stamped\u201D; \u201Cfix(flowchart): give subgraph colour slots real source order, and close two seams\u201D; \u201Cfix(themes): address review on class and flowchart palette\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/flowchart/styles.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/styles.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6c308db659b01804afb3f4295e84d2261ca62bfcd211c4d22c3297fef0a2b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/diagrams/er/styles.ts: packages/mermaid/src/diagrams/er/styles.ts changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is styles.getStyles at line 64), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Crefactor: hand the ER/requirement CSS-generation fixes to a standalone PR\u201D; \u201Cfix(themes): validate look in the ER and requirement stylesheets\u201D; \u201Cfix(themes): clear four pre-existing defects the default flip makes visible\u201D; \u201Cfix(er): guard an empty border palette, and tighten the palette CSS spec\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/er/styles.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/styles.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8cdb6443664455717faa99b35a668fa47e3277ca71a31ed9db50bde9c9673a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/diagrams/common/colorThemeGate.ts: packages/mermaid/src/diagrams/common/colorThemeGate.ts changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is colorThemeGate.colorSlotCount at line 86), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(themes): derive the slot count from the palette, not from a bound\u201D; \u201Cfix(themes): keep colorSlotCount\u0027s result usable as a loop bound\u201D; \u201Cfix(themes): emit a palette rule for every slot that can be stamped\u201D; \u201Cfix(flowchart): give subgraph colour slots real source order, and close two seams\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/common/colorThemeGate.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/common/colorThemeGate.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1c9b3faaeb2b2f9534301cd30dde68f1af1dc092fdcc284a6640fc9e576cad"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/rendering-util/createGraph.ts: packages/mermaid/src/rendering-util/createGraph.ts changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is createGraph.createGraphWithElements at line 123), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: orient fork/join bars by flow direction under ELK layout\u201D; \u201Cfix: restore edgePaths class on the edge group (#8125)\u201D; \u201Cfix(rendering-util): use the generated DOM id for container clusters, and let layouts ask how to measure cluster labels\u201D; \u201Cfix(rendering-util): measure ELK cluster labels unwrapped\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/createGraph.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/createGraph.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f90ef396dafbeab454fc5dbb8c9581853fe3fec1bcbb789d32b79ca1151d723"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/postProcessing.ts: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/postProcessing.ts changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is postProcessing.postProcessSwimlaneLayout at line 43), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(swimlane): draw an edge between aligned cross-lane nodes straight\u201D; \u201Cfix(swimlane): leave a diamond at its vertex and enter a face centre\u201D; \u201Cfix(swimlanes): move lane title bands clear of rails in lanes with no direction\u201D; \u201Cfix(swimlanes): split shared terminal lanes again after crossing cleanup\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/postProcessing.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/postProcessing.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eeffa4b7f86223ad8c0041bbae7c0f906743c14d6153c5760193bce9587666b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/diagrams/block/styles.ts: packages/mermaid/src/diagrams/block/styles.ts changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is styles.genColor at line 41), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(block): take the node border width from the theme\u201D; \u201Cfix(block): colour composites only, matching the flowchart\u201D; \u201Cfix(block): apply the redux colour palette to block diagrams\u201D; \u201Cfix: restore edgePaths class on the edge group (#8125)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/block/styles.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/styles.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f822386ecfc9fc575bec36be898687f0419246f6525df2741e27112ec16f21"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts: packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is question.question at line 20), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(flowchart): size non-rectangular shapes from the label\u0027s height too\u201D; \u201Cfix(flowchart): preserve stadium caps and exempt selected shapes from label wrapping\u201D; \u201Cfix(elk): address review on #8152\u201D; \u201Cfix(rendering): drop the half-pixel bias in intersectLine\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6c1124f34d2ce975666ddd8b25b6143920bc2a47b06ac6082f5cb265ebe139"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/diagrams/requirement/styles.js: packages/mermaid/src/diagrams/requirement/styles.js changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is styles.getStyles at line 50), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Crefactor: hand the ER/requirement CSS-generation fixes to a standalone PR\u201D; \u201Cfix(themes): validate look in the ER and requirement stylesheets\u201D; \u201Cfix(themes): clear four pre-existing defects the default flip makes visible\u201D; \u201Cfix(er, requirement): stop emitting invalid CSS for the colour-theme palettes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/requirement/styles.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/requirement/styles.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef5918e19e65eb6fdbc45f124f897a6683e60495368f3a52a07e8a26c73f32f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: scripts/tsc-check.ts: scripts/tsc-check.ts changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is tsc-check.main at line 152), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CUse fix of failing tsc-check from #8180\u201D; \u201Cfix(ci): pin tsc-check\u0027s type dependencies to what mermaid declares\u201D; \u201Cfix(themes): fill handDrawn lane bodies, and pin tsc-check\u0027s floating deps\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- scripts/tsc-check.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tsc-check.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f197a086506e09d0d6c8c828c796fb6060ca4280862da6dc4386c9e21b4eb4a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/rendering-util/layout-algorithms/layered/render.ts: packages/mermaid/src/rendering-util/layout-algorithms/layered/render.ts changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is render.copyPlain at line 39), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(layered): wide subgraph titles, subgraph-to-member edges, self-nested subgraphs\u201D; \u201Cfix(layered): address review on the layered layout PR\u201D; \u201Cfix(layered): restore nested fields and keep render options on dagre fallback\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/layout-algorithms/layered/render.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/render.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dbf631bceb3ceab8a6dd92654bb192db96bfa0eb3f60b3c2c176762909f922"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/rendering-util/rendering-elements/shapes/circle.ts: packages/mermaid/src/rendering-util/rendering-elements/shapes/circle.ts changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is circle.circle at line 10), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(flowchart): size circles from their label, not minNodeWidth\u201D; \u201Cfix(flowchart): size non-rectangular shapes from the label\u0027s height too\u201D; \u201Cfix(flowchart): preserve stadium caps and exempt selected shapes from label wrapping\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/rendering-elements/shapes/circle.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/circle.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5217bb7ebf096319fcad49fab2122ff01b28361ec6d86e4158fabe926fd170d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts: packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is doubleCircle.doublecircle at line 10), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(flowchart): size circles from their label, not minNodeWidth\u201D; \u201Cfix(flowchart): size non-rectangular shapes from the label\u0027s height too\u201D; \u201Cfix(flowchart): preserve stadium caps and exempt selected shapes from label wrapping\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/doubleCircle.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da06a0c5cc8c5a710d3c0814e8f18507beb919240a1498b33cd6c3fcc05c71d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mermaid/src/diagrams/block/renderHelpers.ts: packages/mermaid/src/diagrams/block/renderHelpers.ts changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is renderHelpers.insertEdges at line 215), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(block): colour composites only, matching the flowchart\u201D; \u201Cfix(block): apply the redux colour palette to block diagrams\u201D; \u201CFixed block rendering due to failing SS in applitools\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 13:01:32 \u002B00:00\u0027 --until=\u00272026-11-13 13:01:32 \u002B00:00\u0027 --full-history --no-merges -- packages/mermaid/src/diagrams/block/renderHelpers.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/renderHelpers.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"35281e6832b2080be3466b09e1ca5b6a7c6b8697da7dee367ffaf3369dc427d1"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 24 significant file(s) lose their only recent owner: packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts, packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts, packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts, packages/mermaid/src/rendering-util/layout-algorithms/elk/elkOptionCatalogue.ts, packages/mermaid/src/diagrams/usecase/styles.ts, packages/mermaid/src/diagrams/agentflow/conformance/runner.ts, packages/mermaid/src/diagrams/usecase/parser/usecase.tokens.ts, packages/mermaid/src/profiler.ts (\u002B16 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8f5314ea74b0884c6021bedb24dd123e3386c981d824996b1364944c6f330087"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 15 significant file(s) lose their only recent owner: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts (\u002B7 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2619c0716724ccf2f54f7e0c3d655df83d875ce2b607035935daa7f55e322048"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 11 significant file(s) lose their only recent owner: packages/mermaid/src/diagrams/c4/c4Db.ts, packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts, packages/mermaid/src/diagrams/c4/c4ShapeAdapter.ts, packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts, packages/mermaid/src/rendering-util/rendering-elements/shapes/person.ts, packages/mermaid/src/diagrams/c4/c4Types.ts, packages/mermaid/src/rendering-util/rendering-elements/shapes/bucket.ts, packages/mermaid/src/rendering-util/rendering-elements/shapes/browser.ts (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f9cdcb4335506977bdcaf1eb179ae37994ce4659838c62f65c43bb83d736fddf"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 5 significant file(s) lose their only recent owner: packages/mermaid/src/diagrams/railroad/railroadRenderer.ts, packages/mermaid/src/diagrams/railroad/styles.ts, packages/mermaid/src/diagrams/railroad/railroadTypes.ts, packages/mermaid/src/diagrams/railroad/railroadDb.ts, packages/mermaid/src/diagrams/railroad/parser/railroadParser.ts. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4b6cfb0ee9a503f36d8c721a76fa784774ff547ab9aad1410e99445b232eb5cd"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #5: If anonymized user #5 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts, packages/mermaid/src/diagrams/timeline/timelineRendererVertical.ts, packages/mermaid/src/diagrams/venn/vennDB.ts. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f0bbfaf2818032e9031271e2fb5064cab520e74d4d95357272652f864ddeb116"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #6: If anonymized user #6 becomes unavailable, 3 significant file(s) lose their only recent owner: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/sharedTrackNudging.ts, packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/edgeLabelNodes.ts, packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.gravity.ts. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"30eac5ce49b9739f917dbf9ad35acf6655242c1e5e55673875d6c01ede3fe9be"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 10 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (75 single-owned of 344 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; 344 of the 679 production source files in this repository met that bar). They are anonymized user #7 (2 file(s)), anonymized user #8 (2 file(s)), anonymized user #9 (2 file(s)), anonymized user #10 (1 file(s)), anonymized user #11 (1 file(s)), anonymized user #12 (1 file(s)) (\u002B4 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: packages/mermaid/src/diagrams/wardley/wardleyParser.ts, packages/mermaid/src/diagrams/wardley/wardleyBuilder.ts, packages/mermaid/src/diagrams/eventmodeling/renderer.ts, packages/mermaid/src/diagrams/eventmodeling/types.ts, packages/mermaid-local-editor/static/js/renderer.js, packages/mermaid-local-editor/static/js/ui.js, packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts, packages/mermaid/src/diagrams/xychart/chartBuilder/components/legend.ts (\u002B5 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: these don\u0027t import cleanly yet due to exotic tsconfig.json requirements \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tsc-check.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3d7cd8626035861716d78279343edcbbcfcff9c445a44218095cd41aaa3efd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo remove debug code \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-zenuml/src/mermaidUtils.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d902fa65a87806060458288ad9322938a1bc3a077026e95b8796a3200337d98"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo remove debug code \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/mermaidUtils.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8faa0c65c78e9751f2420eeb74093f9aecd2eb77d9ead9b65a2840e3fda856"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore: TODO Fix ts errors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/diagram-definition.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a003ee24cde0cd9791f620b2608aa1d943ffbe9a908fee17fd2b0a7e98656f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore: TODO Fix ts errors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/xychartRenderer.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e03221b49ae8614a2d5dd0e101711b8cd1c562e8920c73a3184ab9d12639c3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore: TODO Fix ts errors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a957e4695871eed18fc62f84f8442a57ac5cd2782b47e88db6fa75d5f26c6cee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore: TODO Fix ts errors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c458f6213af98b3a130f616c0b4a6560e4762a7c8901ba5e1a47b227bf308e1f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore: TODO Fix ts errors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac27cd76c8b29ffe7b6d9bbb9a2151ec0df9eb5dd9cbe979340885f1d6fb500e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we replace these with \u0060null\u0060 so that they can go in the JSON Schema? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/defaultConfig.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a592658dbbccaac22e07e426190adc5152072f1b3347b7d72e54bbe6567ef4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should be throwing an error object. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaid.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fd64fe787d5bc6c95315a1d46f2f9e6d26e51ac148b96d8edbfb624d204918"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @todo TODO Can\u0027t figure out how to spy on the cssImportantStyles method. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.spec.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"77921b9fecff6cb89b9f09070af56072b16acc4cb4fabfce37fec981582ee077"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Can\u0027t figure out how to spy on the cssImportantStyles method. That would be a much better approach than manually checking the result. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.spec.ts"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04dbf2be9b9694adb40b770ec33d8181f3ca9125befb811126c8af03e25b026"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @todo TODO if a single function in the module can be mocked, do it for createCssStyles and mock the results. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.spec.ts"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94eca663c8d6bb905b3a8e1aff001c7923afb99e88b92ca7beccc7428497907"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // { textDiagramType: \u0027C4Context\u0027, expectedType: \u0027c4\u0027 }, TODO : setAccTitle not called in C4 jison parser \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.spec.ts"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b9106f113357e67eb14d8ce02e688b458e5d7c24deb1015bc6e123b9de0f34"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: Investigate D3 issue \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22b9510e9ecd86e5774617c5ba69bdd27b4f1df692d3c90b3af20f25898fb96"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: Investigate D3 issue \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b7d0d4d2869f501ca58dc008a6448db19dabe8b95324d879d08cd1a50baaa3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // sanitized by the sanitize CSS function TODO where is this method?  what should be used to replace it?  refactor so that it\u0027s always sanitized \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"482a29a7852c52e6a301ceea71a68c2ef8bab78bec7cd7836d96988745d599c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO make a constant \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"172cadfbf58d7088b7f323873c3f01151661edcc4741a845cb7dba22e39ca69d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO make a constant \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea355b3fadbeb09fcd045f313454fdd734401f794fab2ef2a4346b6ced490d22"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo merge with user options \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec46c5b20f799930be4314dd38397fced4b54bee3a4d0a585c7db238595e818e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: I\u0027m pretty sure that even in SVG2, this isn\u0027t allowed to be a CSS \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/styles.spec.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9368c409205b0df66b547b7dcb8058f95db4fce11aba6dd507519876ea20e8bd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: Fix issue with curve type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcc0452831567a37b6524d14c6ad5adec855cc1a60a08fce9d2e0121008b774"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: Fix D3 types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea5aab58568a057ae0d01ccbdc232835de0b597e7a4c0a9e7bdfcb428c8ae63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: Fix D3 types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"6901a6482889bb2c7a41935ad9c3d55a9905d331cb04db27f5ba13d6f81adf64"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Seed is only used for length? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"653ebd38626f6234dab677c1e10cdbd860d1b89deb8042214b8273acbd5fad73"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo add more checks here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/sanitizeDirective.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdf4e03a9e75b4f540a52bcd9810c91159c5f76500a55eeab2c3b095038c2d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make config mandatory \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/createText.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bce37b33f7f25c108ba37f351d4b9fe6e71d49cab8530ee2ddedffc06182110"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make config mandatory \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/createText.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44bb61c1332c4e6fd5db516b0b3fc3e25d130da91958338b173358632038211"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check what joiner to use. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/createText.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf2cf12cc07df7a8af8d8a3e9b6fe69bba10cb2573bdc0b3968cc47c77aea93"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: addHtmlLabel accepts a labelStyle. Do we possibly have that? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/createText.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ec80fbeba386dd0ed128587567367aeb80342cb005baad826e167effe27d37"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix markdownAutoWrap=false behavior for htmlLabels:false. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/handle-markdown-text.spec.ts"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d2a2957bcfdb4c3f26f0e46168a203c3695ef6e6f5a5911d12e4022db1f673"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Disabling \u0060markdownAutoWrap\u0060 is currently broken for \u0060htmlLabels: false\u0060, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/handle-markdown-text.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a3a10b9f2dfb76104a814f3ab8da682118a7159ad4647cfff31aa492195e92"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we load dagre without lazy loading? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/render.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"009362f5da802a354136ad39e77c1bbe3ae56a8548d47877b1be44ab9f2e80b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Specific properties for State Diagram nodes TODO remove and use generic properties \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/types.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cd85ca49db9318f1d2e699f72cd7e9a8095b79b9fbe4b3bf3f3b7a98ecb4fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 10 files: The identical TodoComment appears in 10 files (10 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 10 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022// @ts-ignore TODO: Fix rough typings\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"298d9fad60f576498d049d7704468faa8778d66371da63311c37c36b16dc9177"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"03187749f76cce7dda9fcf10b8296af1cd993bff42f680878da7dc3084af3e21"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove any \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/handDrawnShapeStyles.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b36c479e98fa8fe92e08492f1b472b3bbc18e87f5acf65b51a98c5b48b7ed8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO fix this (KNSV) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ef3f2bce4ddbe0ebcdc4aa3cadaa5c8f722a16ac08293bcc76da477d729eb2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: Fix typings \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/stateStart.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c204fbd061cfea3b7dc2b42e03a398cf26a3075b35eb6fc42d3cdbaf54ef7e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make this function \u0060async\u0060 and use \u0060fastdom.measure\u0060 to batch reflow \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b687af624c75b46433d400b35d66d798d5d3269d9d079f5905a723a0ce411bf2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: iter 8\u002B tighten to 0. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/pipeline.knsv3.lr.spec.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bb9974d6bb756222736f3b4ff34b0f032895f5393bb0085145d9afc63f7182"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // not symmetry-aware. TODO: implement symmetry detection. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07e4331a51c14d3a94a287e09868243082538239193c1dd8c8cc6df7920fc63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move this wall-clock assertion to a benchmark harness when the repository has one. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/performance.spec.ts"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"9908908458d76ce3da2b204990c592a6ea2fc42d4c480f8117ce1ff2762538dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-nocheck TODO: fix file \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/user-journey/journeyRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"911eb3675e116877fb4e6270a61965eae1a1b422ea38599410ec935fd25a2722"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-nocheck TODO: fix file \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3551f720fa52931340565ca0dc6396435d6d8c7778a44b19bb2e03bea4c38767"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Cleanup? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/user-journey/journeyRenderer.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b2a3b4dcb0dbcc7c34ce514dfe1dd121072edb686eece931bc487fd2d1d9bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: In d3 these are CurveFactory types, not strings \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecase.spec.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bad8193adaee9474d59e5b1061def66a11e7c76e62494fc6c433c412e60944"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo replace with total width of section and its tasks \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcf05ca7a9dfcf26c20b5220370b9cf594ddcea97f46aaf6d41d7dd3320506d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // one with description  @todo TODO What does this mean? If important, add a test for it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/dataFetcher.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"727d428e98929186d5b9d147ab8915013d42c09e9310c016d0a8f173d7036cc7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: set random id \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/dataFetcher.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"501669ca891e882dae2b83f514198f16206e5eaf08d22fdc20b8eb39c649e97c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we move these two to baseConfig? These types are not there in StateConfig. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer-v3-unified.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b1b2381d5a8c8312a3768c04308d7acc5eb7f6d0b290ebf3e915fc0c4a4818"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: do we ever use this function in a way that it might return undefined? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a55d256d73aad9c70a7258d7595235448b517def5a889fa4cf7db9e4f80c96"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: refactor, always use the config value let setWrap update the config value \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"227496d78ea96cfdb215940e21a825cd1abbbcaa6bb8c95399907c8cceb0e738"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c300187bfecdea0d76bb37f8bc11020517f4372592c55fd4b37732c3e68af1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO root.select is not callable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"204a03d4e4ac588817b74f905df7b1b99534a7d268290875ee293b534fbbe10d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: db should be coerced to sankey DB type \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6013ffcee2ad92e8a01e7ecf763a34c74d1a634d7189971cf7bce3cf471e055b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo fix utils functions for tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/mindmap/mindmap.spec.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bb16c7b06e99e11d3320273e1b67cf66f19e9efcd51ea8243b924ec0456cb3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo fix utils functions for tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanban.spec.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1098c25dd3466d671b00ca4921be6b775a48d6aa5b2f78eed111a1da1408a79d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: These options seem incorrect. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/mindmap/styles.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec9489ae0cac16c4c572ab017c9023a81cce60052c6c98fb233db30b6632365"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: These options seem incorrect. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/styles.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53578cec6f1d2d4c4de6a4224edafe0658963a2779e6115c012eff3265bd660"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: TypeScript 5.5 will infer this predicate automatically \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanRenderer.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e142a097016826b76c90d98e133ebe3462f897b69601677224341431212462f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO set padding \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanRenderer.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"686748a1aaef64ca029b1c7d8ca1b7c4d51d8350dba6beb1397e90c54f990908"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo, use theme variable THEME_COLOR_LIMIT instead of 10 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanRenderer.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1faf8744ff86c294c5fee8400ca37acb77c27c2f7c919f2d756b0b4694195766"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-nocheck TODO: Fix TS \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttDb.spec.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2fff595fc2914a2b9cd8a8a4fa393daf5c67e2026066993c4f03d1e8d313b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo optimizer this by caching existing nodes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9fcef21bb2af4eec0a30d15e5266f3061e4bf8f10764340d2b19d602ec2518"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo optimizer this by caching existing nodes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f69689fea94b741919810b30917a13692e1cbd911b03216fbeaed27ec152181"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: incorrect types from khroma \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/styles.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a093f87744ea237c72880c3c8e866297aeea65453dde2cf7b5bc610f771f860"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: incorrect types from khroma \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/styles.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6c64a17d260937385e9b4f547fe60e9e4e0c3a67d7964cbf1c524c58f2bde7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: incorrect types from khroma \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/styles.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"efeed0fe36da653a7b0b4093e7e8b007fc862ec48e9b372d3af706d5027caefb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: incorrect types from khroma \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/styles.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04d0a36871d3bb839b3b08a49ebb09d4e876f0e0e61d3dada3e4626ef7bb2fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore: TODO: Fix ts errors \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/erDiagram.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4f3e43b1393b6b712a224f9accafefcb96284564ac1dcbdbc59939c8fc524a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor to avoid flat. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/common/common.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10d475ffda04fbb76e44199b7ca5a6594571bc445647d89095bd5b63e314bf2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: find a better method for detecting support. This interface was added in the MathML 4 spec. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/common/common.ts"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64a2f7f14f935d589183caa008c35f06736ca859638d28e213ebb36137bf8cb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Why are link, and tags undefined instead of not appearing at all? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/parser/c4Boundary.spec.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"385855722464ae67c2733ac9029db8044412e5f3e266068047131073411430f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Why is this \u0060system\u0060 instead of \u0060boundary\u0060? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/parser/c4Boundary.spec.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dac1a352f409329e6c80b4e2366bcd34944193507825fbe9c5d5d3b9892d69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Why are link, sprite, and tags undefined instead of not appearing at all? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/parser/c4PersonExt.spec.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40fe20cf9b25f58fff371feab9498398c3c26c64f2da0d493cf12d9635e09e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Why are link, sprite, and tags undefined instead of not appearing at all? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/parser/c4System.spec.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eca888548a0a005d9743565629430aac95fc65b2a0817d46eb2a146ce4f1a0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO our parser guarantees the type is L/R/T/B and not string. How to change to union type? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureParser.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"209749a10dd0d9e927d8306e7bf7a79c21c3086a9773a4ec26892077760110cf"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hacky fix for: https://github.com/iVis-at-Bilkent/cytoscape.js-fcose/issues/67 \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a8550e25398383e66abee854b2c964250472d40e8360c94c35db7c4dfd5c2d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add title support for architecture diagrams \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"806ebb3ca17f2fa74c5e273a6b99113b35ac2a13216f603dcd54fb9be276b842"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: test with more values \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/svgDraw.ts"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db8ca8066a3e7ceae8c9e52e96aaae262170439860dead3c6ae73798aec1bb5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should a warning be given to end-users saying which icon names are available? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/svgDraw.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"1025c6e25c24ba194c1c01fbfff142f1590c1d8baba1b6204e40058a7be0a1aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Is there a way to test this with --vitepress given as a process argument? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.spec.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2aef2b5cb9600bef5314760248259fe6f1c08e030c04bad6911a396487b3113"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO, should we somehow use the functions from \u0060docs.mts\u0060 instead? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/create-types-from-json-schema.mts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c6bfcd5d1d54e845a395f82141ef5e1650a4f0e062aad1b9fc03506c270e7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // @ts-ignore TODO: Fix type of fontSize \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/helpers/util.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34bc96eea7f7e6bfb28e5c3eb3e7abdfafa509fecc794cd70c6eae7a2b14451"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060deterministicIDSeed\u0060 spells \u0060ID\u0060 where 321 names in the project spell it \u0060Id\u0060: 321 of 324 names in project mermaid-monorepo spell the token \u0060Id\u0060 (321 of 324; unit: names in project mermaid-monorepo containing \u0060Id\u0060). Peers: applitools.applitoolsBatch(runId) (e2e/helpers/applitools.ts:7); E2EConfig.listId (e2e/helpers/util.ts:14); NodeWithPosition.domId (packages/mermaid-layout-tidy-tree/src/render.ts:10); accessibility.addSVGa11yTitleDescription(baseId) (packages/mermaid/src/accessibility.ts:45); DiagramDB.setDiagramId (packages/mermaid/src/diagram-api/types.ts:59). Rename to \u0060deterministicIdSeed\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/config.type.ts"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7631f0331c300e1809cef66655692b48448b9015e917a75c83e5e66d4e8637"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060getID\u0060 spells \u0060ID\u0060 where 321 names in the project spell it \u0060Id\u0060: 321 of 324 names in project mermaid-monorepo spell the token \u0060Id\u0060 (321 of 324; unit: names in project mermaid-monorepo containing \u0060Id\u0060). Peers: applitools.applitoolsBatch(runId) (e2e/helpers/applitools.ts:7); E2EConfig.listId (e2e/helpers/util.ts:14); NodeWithPosition.domId (packages/mermaid-layout-tidy-tree/src/render.ts:10); accessibility.addSVGa11yTitleDescription(baseId) (packages/mermaid/src/accessibility.ts:45); DiagramDB.setDiagramId (packages/mermaid/src/diagram-api/types.ts:59). Rename to \u0060getId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a1c827b54890dc47b1aa92216e88d400d6a6ea3e210b1ada59a8dd2dec43c3"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060InitIDGenerator\u0060 spells \u0060ID\u0060 where 321 names in the project spell it \u0060Id\u0060: 321 of 324 names in project mermaid-monorepo spell the token \u0060Id\u0060 (321 of 324; unit: names in project mermaid-monorepo containing \u0060Id\u0060). Peers: applitools.applitoolsBatch(runId) (e2e/helpers/applitools.ts:7); E2EConfig.listId (e2e/helpers/util.ts:14); NodeWithPosition.domId (packages/mermaid-layout-tidy-tree/src/render.ts:10); accessibility.addSVGa11yTitleDescription(baseId) (packages/mermaid/src/accessibility.ts:45); DiagramDB.setDiagramId (packages/mermaid/src/diagram-api/types.ts:59). Rename to \u0060InitIdGenerator\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8552805afaac1fcb02e6ec4cbdeb5c335599745d5489ed770c8eabc282006b3"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Generate types from JSON Schema\u0022 repeats the code it sits on: 4 of its 4 words (generate, types, json, schema) are already in \u0060await generateTypeScript(configJsonSchema);\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":"packages/mermaid/scripts/create-types-from-json-schema.mts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c35226141f000637da4d83894941d8721b40d6b8414d990bd460a2bf6aec19"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Add a directive that sets flowchart.htmlLabels to false\u0022 repeats the code it sits on: 6 of its 7 words (add, directive, flowchart, html, labels, false) are already in \u0060configApi.addDirective({ flowchart: { htmlLabels: false } });\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":"packages/mermaid/src/config.spec.ts"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb9e76c18e1036a206918881d729b6d988c9af3101029100b881915b6ea20d0"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022?c4ShapeInRow, ?c4BoundaryInRow\u0022 repeats the code it sits on: 3 of its 3 words (shape, row, boundary) are already in \u0060export const updateLayoutConfig = function (\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":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef11890f7f621fb86ba95659a882b4e7b7e0b9f424f608f862a831101143950"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022draw boundary inside currentBoundary\u0022 repeats the code it sits on: 4 of its 4 words (draw, boundary, inside, current) are already in \u0060await drawInsideBoundary(\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":"packages/mermaid/src/diagrams/c4/c4Renderer.ts"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"410f7cddae034328467732534686f770e2e9ff6ee63e5a3ad78c3d68d7875f8f"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set viewBox\u0022 repeats the code it sits on: 3 of its 3 words (set, view, box) are already in \u0060elem.setAttribute(\u0027viewBox\u0027, \u00270 0 \u0027 \u002B w \u002B \u0027 \u0027 \u002B h);\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":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8fdaa7d5368d7a82047011f22999a42686d6e2cb939710796068b693fb9c5a"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 6 comments in this file only repeat the code they sit on (lines 66, 74, 247, 336, 355, 357), for example \u0022Check root node\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":"packages/mermaid/src/diagrams/mindmap/mindmapDb.getData.test.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c8baafdd80b2fb267408db79e12ca6e74d1fd59e19b0ae267c8195d1125a70"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Find the corresponding node in the layout data\u0022 repeats the code it sits on: 4 of its 5 words (find, node, layout, data) are already in \u0060const layoutNode = data4Layout.nodes.find((n) =\u003E n.id === node.id.toString());\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":"packages/mermaid/src/diagrams/mindmap/mindmapRenderer.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"333872edb16f5430807faf355f009781fed38e5d003abccf8b6a9333173cbab6"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set the color scale\u0022 repeats the code it sits on: 3 of its 3 words (set, color, scale) are already in \u0060const color: d3.ScaleOrdinal\u003Cstring, 12, never\u003E = scaleOrdinal(myGeneratedColors).domain([\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":"packages/mermaid/src/diagrams/pie/pieRenderer.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b094688317cbefc107c8da7df77462bbdf99c82299387a87cf0aa6c1ea3d70a9"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Find the actual message (type: \u0027addMessage\u0027)\u0022 repeats the code it sits on: 4 of its 5 words (find, actual, message, type) are already in \u0060const actualMessage = messages.find((msg) =\u003E msg.type !== undefined \u0026\u0026 msg.from \u0026\u0026 msg.to);\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":"packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5963947c53cae572cf6bc8c8f161a63416c98596188c5356f03c112226e98d"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 5 comments in this file only repeat the code they sit on (lines 421, 423, 427, 429, 431), for example \u0022add parent id to groupData\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":"packages/mermaid/src/diagrams/state/dataFetcher.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b40f75283a5fce463b1f58ebffc4de9120faed9f0312695ffccdb9e3b216a01"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022default diagram direction\u0022 repeats the code it sits on: 3 of its 3 words (default, diagram, direction) are already in \u0060export const DEFAULT_DIAGRAM_DIRECTION = \u0027TB\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":"packages/mermaid/src/diagrams/state/stateCommon.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39a52703d2187c9e654d8bbb802de7eaddfeea0c65a775712a5af445e6261ab"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022calculate maxEventLineLength\u0022 repeats the code it sits on: 4 of its 5 words (max, event, line, length) are already in \u0060let maxEventLineLengthTemp = 0;\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":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a21209e9e22c509c46d72162b6bdc47c89e8d0e2203ce546dce932d5b6285c"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022filter task where tasks.section == section\u0022 repeats the code it sits on: 4 of its 4 words (filter, task, tasks, section) are already in \u0060const tasksForSection = tasks.filter((task) =\u003E task.section === section);\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":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bcb2cb95b31db7f2c36eb87a852d41bc0e8684a8f5134fea3c45a369625705"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022log task height\u0022 repeats the code it sits on: 3 of its 3 words (log, task, height) are already in \u0060log.debug(\u0027taskHeight after draw\u0027, taskHeight);\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":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c5fb7afc7f1f0b48b7d7177223dd8c2426b39cab6510059cf46feebb05537b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022set masterY back to eventBeginY\u0022 repeats the code it sits on: 4 of its 5 words (set, master, event, begin) are already in \u0060masterY = eventBeginY;\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":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4937f427638af93e0d08f44d9627f38cdb1ddf9713153f075e776dc8054b282"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022filter task where tasks.section == section\u0022 repeats the code it sits on: 4 of its 4 words (filter, task, tasks, section) are already in \u0060const tasksForSection = tasks.filter((task) =\u003E task.section === section);\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":"packages/mermaid/src/diagrams/timeline/timelineRendererVertical.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"606e60d51b47d6b6774faf85b21f730a1c57a3bc02dedd5a453622f22959b504"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022log task height\u0022 repeats the code it sits on: 3 of its 3 words (log, task, height) are already in \u0060log.debug(\u0027taskHeight after draw\u0027, taskHeight);\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":"packages/mermaid/src/diagrams/timeline/timelineRendererVertical.ts"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"92407f3354e56e37904d9375bd372afc9a6a0bb4824e8bd0c8ebcebd6048871f"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Infer segment width\u0022 repeats the code it sits on: 3 of its 3 words (infer, segment, width) are already in \u0060const segmentWidth = inferSegmentWidth(contentLineTexts);\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":"packages/mermaid/src/diagrams/treeView/boxDrawingPreprocessor.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ca9597cdf84d7bac861ad01518fb703a9535d938802c3e4db4f4492fe62198"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Define the TreemapDiagramConfig interface\u0022 repeats the code it sits on: 4 of its 5 words (treemap, diagram, config, interface) are already in \u0060export interface TreemapDiagramConfig extends BaseDiagramConfig\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":"packages/mermaid/src/diagrams/treemap/types.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03e51fbcee40d9b8f5c98c6d4505b6ab9f4416841624124bc9324656390b55c"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Render squares for pipeline parent nodes\u0022 repeats the code it sits on: 4 of its 5 words (squares, pipeline, parent, nodes) are already in \u0060nodeEnter\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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76400cb8b1ad33125f2e5b3c13969ec8c9ea1c265c885352e0a7596d65d3e18"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Sort annotations by number\u0022 repeats the code it sits on: 3 of its 3 words (sort, annotations, number) are already in \u0060const sortedAnnotations = [...data.annotations]\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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"952ac4a16f17aec60c9be2aba404848f381df8826c6c867419916e273474e141"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Find id in params\u0022 repeats the code it sits on: 3 of its 3 words (find, id, params) are already in \u0060const id = params\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":"packages/mermaid/src/docs/.vitepress/theme/redirect.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1785cbf3156d046a4f06aaa1ea77f8719aa2d581e9583ba80da4f1b9934f7e6"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Replace multiple newlines with a single newline\u0022 repeats the code it sits on: 4 of its 5 words (replace, multiple, newlines, newline) are already in \u0060const withoutMultipleNewlines = withoutBR.replace(/\\n{2,}/g, \u0027\\n\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":"packages/mermaid/src/rendering-util/handle-markdown-text.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d0283a34416bf5be9998b7b4c1c1aa3f008adf51be55d54b112be481a71544"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Insert the edge path\u0022 repeats the code it sits on: 3 of its 3 words (insert, edge, path) are already in \u0060const paths = insertEdge(\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":"packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/render.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b671e49434889ad5fe975f83fa287381e395ebf28c6c999cfe87701d875b8642"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Position the edge label\u0022 repeats the code it sits on: 3 of its 3 words (position, edge, label) are already in \u0060positionEdgeLabel(edgeWithPath, paths);\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":"packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/render.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b23c0e0635d6ae038498ff6824a77b942dc8508a4b7c007de3f20f0502cc3d1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022outer --\u003E a, then da --\u003E a with da nested in outer\u0022 repeats the code it sits on: 3 of its 3 words (outer, da, nested) are already in \u0060const order = orderNestedEdgeEnds(\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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/__tests__/nestedEdgeOrder.spec.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"79280bdd1cb50ee2c770b5597f560e32b1dbc8157953b1f8407a36467bf112e2"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Bounding box area \u003E 0\u0022 repeats the code it sits on: 3 of its 3 words (bounding, box, area) are already in \u0060expect(s.boundingBoxArea).toBeGreaterThan(0);\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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.spec.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"72775b440dfcf3d02f042a8a8c128a14fb1093bc3c5bfb4bac0eacf4f2310de5"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check top border\u0022 repeats the code it sits on: 3 of its 3 words (check, top, border) are already in \u0060if (Math.abs(y - r.top) \u003C= EPS_BORDER)\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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"6324b1bd3ab9b3fd3d1f2eed06153bfd3185af78ac84dd8cc5125b6e89fb4cf9"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check bottom border\u0022 repeats the code it sits on: 3 of its 3 words (check, bottom, border) are already in \u0060if (Math.abs(y - r.bottom) \u003C= EPS_BORDER)\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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9adb130bc5c033f96fb8afc5e8ec993873c5c264b14abab316b503d8c501d5f"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check left border\u0022 repeats the code it sits on: 3 of its 3 words (check, left, border) are already in \u0060if (Math.abs(x - r.left) \u003C= EPS_BORDER)\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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"1541179745e1c7f4ceb888cf5346148a8509a8e0d98bf28926cf9f134bbbc2d6"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check right border\u0022 repeats the code it sits on: 3 of its 3 words (check, right, border) are already in \u0060if (Math.abs(x - r.right) \u003C= EPS_BORDER)\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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f11f39bb180affc9c07a0b07c11ffe422dfc4f19bd41efd25f1dc3a82c95ffa"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create a function to order children by crossing counts\u0022 repeats the code it sits on: 5 of its 6 words (create, order, children, crossing, counts) are already in \u0060const orderChildren = createChildOrderer(children, rankOf, crossCounts, minLayer);\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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.multitree.order.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ef37bb7fadf504770b913dcafe50917257630bae0a47d3ca52935e181bb151"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Emit nodes in tree order\u0022 repeats the code it sits on: 4 of its 4 words (emit, nodes, tree, order) are already in \u0060let layers = emitNodesInTreeOrder(rootsSorted, g.nodes, rankOf, orderChildren);\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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.multitree.order.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"834b26362de5271e155528a58b870628fad800f3710984b096f82012a7d08c6c"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get the original marker\u0022 repeats the code it sits on: 3 of its 3 words (get, original, marker) are already in \u0060const originalMarker = document.getElementById(originalMarkerId);\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":"packages/mermaid/src/rendering-util/rendering-elements/edgeMarker.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b71d982366d40b3d001bdf8124b313f0b0b705bd31d1ca4972d75f13992fa3"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Mock getConfig to control flowchart.curve\u0022 repeats the code it sits on: 5 of its 6 words (mock, get, config, flowchart, curve) are already in \u0060vi.mock(\u0027../../diagram-api/diagramAPI.js\u0027, () =\u003E ({\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":"packages/mermaid/src/rendering-util/rendering-elements/edges.spec.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1d88cbdb0fca63c79aead10fef42815c15bdf3cedd4216d0a271437410a0d6"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022bucket | console | browser\u0022 repeats the code it sits on: 3 of its 3 words (bucket, console, browser) are already in \u0060it(\u0027should register the bucket, console and browser shapes \u0027, function ()\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":"packages/mermaid/src/rendering-util/rendering-elements/nodes.spec.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fcc77b7606e0e842da0bc79c174a2bb609967b725c8f50aebd2154c82c26dad"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Replace its text content\u0022 repeats the code it sits on: 3 of its 3 words (replace, text, content) are already in \u0060child.textContent = child.textContent!.replaceAll(\u0027\u0026lt;\u0027, \u0027\u003C\u0027).replaceAll(\u0027\u0026gt;\u0027, \u0027\u003E\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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef52bbd21906046337e74e115aad47cbf80a2745804c8439af409d619276613"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Load and parse the api-extractor.json file\u0022 repeats the code it sits on: 5 of its 6 words (load, api, extractor, json, file) are already in \u0060const extractorConfig = ExtractorConfig.loadFileAndPrepare(apiExtractorJsonPath);\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":"packages/parser/scripts/prepack.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a2c2154350635771818b238c1818c0385178e63947b3e6280fc4202dc9a97c"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Register validation checks\u0022 repeats the code it sits on: 3 of its 3 words (register, validation, checks) are already in \u0060registerValidationChecks(Treemap);\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":"packages/parser/src/language/treemap/module.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b6bde9a7952712fb6aa8f1e1846934b966be3337135448bf040353f79b677c"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 7 project(s) overshoot their size bounds, lowering Project Cohesion to 7.1/10. The most over is \u0060packages/mermaid\u0060 (113500 LoC, 1068 module-visible types across 68 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"47778939935661d1b1e3e1296d73b33b4eb79c1c976e269492caa7f705a949d5"},"properties":{"commitSha":"fa46d61ab03de21f860a10da91f1a17da7c0944e"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c4943da896fe0caaee973aba028207f46a3147ddc258cc52b3de09b2dc21c80"},"properties":{"commitSha":"6db070197a8d3887e73b3962280ee162131a67c1"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0b8390ac4a739653f60d8af85c6fab5e4673bfdaf0e15f8bcd4464f4cfa587f8"},"properties":{"commitSha":"c5843bee239c04cce98e1d59897b50fec31c9507"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6aa698cb878975f791570d53dba31ad2b71a43f04a1b4b8106976714d4b16ae8"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"71098f248cf0b753049ab4dfee3e29cd158533c15ac4aec315a70c598e0ab0dd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f86829ccf4f018e8d9d8c60e924f53cef6aeb09058f652f608eb98970accb99a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"91ced31a04f40b56066e33629c22496440c1b78de77d7bae2d5df79f09fc0cec"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"418c4b22929f58af374d3e2326902513dbae2ed27b7e177bbb490ad203245897"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7206b530a4b4ce1b989f5a4236742a11c1413248fa7c5b63edc8c0fbcbb015f5"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f34203b430bbb647e88efb904eba35cc405b33ed5ace676548e06974fe281e11"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8af93b54d7b6d09176d9c9016e65470b9e3497c2e30cd6af0b8b0a89230292a4"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1498825690ee691422757d83c6c8726aaf69040fa62a3b6b71a03075f0880320"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7cf8a78c4a993aecafcb4fe2b18ecb6ff3aced137586a07de2812771fcf18756"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85f99189d964cdde824a816d83f2290af0a3f7efe42feb1d6495743a90e33e22"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8750074d2e20406a4b90093c70a4940c4512a95b88c1d3eed37c4040efe3573d"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"e71b84804a590ff21327dfaf9f244f54d8a5d160aa817dc4c0b3db74e9319ac8"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-755","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"828a4f1ca2059ef00c2ab07ace33910d62194a81d66831faada44dc451b40058"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-755","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"52ffc5e9b424e22cc8546c8ffabf8453757cbce383a293dbd0649279626887e9"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e16fc3671c0b53a1800dad27fb375b9db08902aab3e5c5b5f3ebfcb1ed49748"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cdd3e250d0ab6c5c31c05574e6f3e03b731c5a85779dedf2a2bb5e7ee1b7a1c7"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab0c183da5ac0e0c52a7b4609039b50ce4edd777b4214633030150b7ac56b09c"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2a4d6f92a3319f4c39506ae20756129a368bcbc5f34c268cc2d8bfd4850faec"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be3b7f3ab1954097a63fb18ea1fcde83ac18f5845c7f56460dafe8acb9f630d7"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6558d92d8e0e3f3e0224e602ea089a17325488f16bbb965be4237bda8fb550ef"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45260855e5733d8f4cd8cc28a025032ca894c75b2c4350b6b77c4409b8f42546"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"e5533c2d149eea07ed065c5fde61196816d01a4a3eb50ba7bc43ead963babea5"},"properties":{"dependency":{"package":"proxy-addr","version":"2.0.7","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":"48c164841f6224291df5678c144907aac1140444045df8422910ba31d14b1f68"},"properties":{"dependency":{"package":"shell-quote","version":"1.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"29827ff1862f4841c892ec8b8867f048f1bfa9d96110dfe90e22961d0aa8306d"},"properties":{"dependency":{"package":"shell-quote","version":"1.8.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8f4d9b2cce8826c39d9062ff158427750f126af518da77c5ec4f6d461c26850"},"properties":{"dependency":{"package":"shell-quote","version":"1.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3be3df418cb63fed345ec369da090cb9737dc9ff080dd327970a48c07c84363f"},"properties":{"dependency":{"package":"websocket-driver","version":"0.7.4","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":"06218928334faee2cd0009ae4dc2ddd133800a72602be5666b20a26fd2555757"},"properties":{"dependency":{"package":"@argos-ci/core","version":"6.1.1","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":"9ac84a30e76f156ffaf8b1a07ba543354f55dce81cdab924e234eb75a6360c4a"},"properties":{"dependency":{"package":"@vue/server-renderer","version":"3.5.25","advisory":"[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":"6452770c49ccc01a2cd2e2f42077d5236e1395ce2a73aee786ccb8d270d3bbe4"},"properties":{"dependency":{"package":"@vue/server-renderer","version":"3.5.40","advisory":"[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":"dcd64392f90c18401b918781f3086904a8ef2691e50467e3cb3018a7dfe9864b"},"properties":{"dependency":{"package":"@xmldom/xmldom","version":"0.8.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"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":"d413b799df6a5824528071c98e7f12373a3498303fa33c50104b3c9319c46b58"},"properties":{"dependency":{"package":"axios","version":"1.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[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":"2eae5ae78d85cd537b0fb3020ddcfb60e7b62739c2b4fe6fee05aac434877c13"},"properties":{"dependency":{"package":"body-parser","version":"1.20.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a590dbace74ae4140978e7d583665c0dadcc95dd6cc7470b6e47b7335c7dbe4e"},"properties":{"dependency":{"package":"body-parser","version":"2.2.1","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":"2d34a46f903edb95f2ade27a9234b2613615a88da74f5e6953961d855fa45966"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"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":"2656f22acee22402febbae988e5e99c38908b4e9a87343caddf9ce2e6325faf7"},"properties":{"dependency":{"package":"brace-expansion","version":"2.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"523ba84dc3249fe07f4fe67869df9a5033d9faea9f74a6a5ce818cbb8c8aa502"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.9","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":"ce9bbfea95fe015374ae86e03b9373fd15c82feee84c4ee070b765207d8d9476"},"properties":{"dependency":{"package":"browserslist","version":"4.26.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dbba5450c239e0d42bef0bfdb1e409ba1a11708a974ccdafd416c4a9a7391cac"},"properties":{"dependency":{"package":"browserslist","version":"4.27.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"87bf22458bbad221d5e85a4dbea6e17669e1e9d377f6bff36f1bc9a25e3401fe"},"properties":{"dependency":{"package":"compression","version":"1.8.1","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":"f8ed3878fd4990d970372c99df48b5c9ea45601d5792f91c92d67aa62fd6aaa5"},"properties":{"dependency":{"package":"defu","version":"6.1.4","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":"06593c39ce911a216ed914a471d9cdd931bac450d9675076e44dd756bcb35a60"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA 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":"8cebd965383fbf6ec5aa075ac5961d71615ca803fb60541206693fa7a1c8ca18"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA 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":"f2a876976a9f2754c42c0bb864cfa5f6459f9751290e608775645f3ba4658751"},"properties":{"dependency":{"package":"fastify","version":"5.8.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"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":"a9a22022fc126e7ba813001ad3a58af8bd9b5edef6ed4f4ec6757076b4ab7ad7"},"properties":{"dependency":{"package":"find-my-way","version":"9.6.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc0d4bfbc2dbf13b7b4678c7f750f00c9c46698f61534d37a6a18fd133b243d5"},"properties":{"dependency":{"package":"flatted","version":"3.3.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0a0c650d6de0f98a1406fe5e38b03340f31c240361b33d484921a60f320d852c"},"properties":{"dependency":{"package":"follow-redirects","version":"1.16.0","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":"01fc85053279d115ea033564d5712283763a31a120ba4ad4775e78b10049b1a1"},"properties":{"dependency":{"package":"form-data","version":"4.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78c8e25d39c4457602e0ca5e937d1358a01419156ca32f8bac912fad3036cfac"},"properties":{"dependency":{"package":"glob","version":"10.4.5","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":"5047af63c9688854d6bb74ca14bdf107fcc09a0a4735d8ff201fe68961a837ce"},"properties":{"dependency":{"package":"glob","version":"11.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"12eb062a89c57bd3ce8822314a31cf76608f09b7be92d6645fb967e300baf647"},"properties":{"dependency":{"package":"joi","version":"18.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE 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":"e322a55d415dcf9ddc70a1e49e7f99a203363067b0d772bc5bee0d81f06949e8"},"properties":{"dependency":{"package":"js-yaml","version":"3.15.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"e2e/helpers/mmd-snapshots.ts","line":4}}}},{"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":"304788d557630be1de20781ef82784a040f1a94a6d318bb6867ac63dbd5745d0"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"e2e/helpers/mmd-snapshots.ts","line":4}}}},{"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":"44a291d29d113d3531f544b98dbedb22d2aa4840e15eed0ddd741761e6a8a0a3"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"e2e/helpers/mmd-snapshots.ts","line":4}}}},{"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":"d5d2d9a5664ee98ba552a2d7305788e6820361d759e1fd1a9639f9776b8d6ca5"},"properties":{"dependency":{"package":"launch-editor","version":"2.11.1","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":"bd35a72e6722ab54649b8f90b26091aedbff60323fea941d92430016c01956ae"},"properties":{"dependency":{"package":"linkify-it","version":"4.0.1","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":"b75b3ba043a71a14aefc0545a4020c85ab2dac0c9f35ad8151f7736a7cfa75e8"},"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":"380e9775a99b766fe55fc7798386bd61b90dff7051cbe0f82cb4363fd66785c3"},"properties":{"dependency":{"package":"lodash","version":"4.17.23","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":"c8cf009554f233bc84ed1fdaf360bf404d4dd36d960c687c64c5a8637b641927"},"properties":{"dependency":{"package":"markdown-it","version":"13.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE 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":"0b08ef5542c9f4398d4acaa9e077492a1beb95ce9cfd45d321a25b7170404c97"},"properties":{"dependency":{"package":"markdown-it","version":"14.3.0","advisory":"[GHSA redacted]","aliases":["[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":"cc8dafbac82911c6a68762b3443eda8aa60e3c765ad74ef9abb2b2de755854f0"},"properties":{"dependency":{"package":"minimatch","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"68d7d6d85cf241418017bf15c6d6c03a93be97f4c0edad8b7dab5fbef48dabd5"},"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":"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":"6b119d517ff16b1edbc441e60662a8065e02e36cc86ecac75b87b22cc76a3fff"},"properties":{"dependency":{"package":"nanoid","version":"3.3.16","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":"1c436004dbd621ebcd05d90ad3583dfa555ecab6f081fe7e33d0c129a03ee0cb"},"properties":{"dependency":{"package":"node-forge","version":"1.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[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":"f92fc2ddb946ed0765e4c67aa7e243a07870f2368edac2bd98c50b6c0d66c7eb"},"properties":{"dependency":{"package":"path-to-regexp","version":"0.1.12","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":"3bac668e18f3c5d2f8513c749add59e46084dfacf0fe936f8986eaab1438c1db"},"properties":{"dependency":{"package":"path-to-regexp","version":"8.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98f5b7f1cc7ab72c7ef988be1ab835626c9ba93796c264fb44a05726fc7d8dd6"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","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":"55bb3986aec1e2e40294c46650ceeadc2ea24e7e4b8482cdd51746604ddded6a"},"properties":{"dependency":{"package":"preact","version":"10.27.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"addbeeceadb4c5bc8ee5caeb04de03ac44d22d147c99d7f88af5a778dea0b9c6"},"properties":{"dependency":{"package":"serialize-javascript","version":"6.0.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":"5f538739e89f76b0971a5390fa8cddbf706f34980e213deea9c68f7ff3476760"},"properties":{"dependency":{"package":"sharp","version":"0.34.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"scripts/screenshot-sheets.ts","line":17}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9e6ed2f1c3b9d06c1ae728ca0754a134c8b09e532a74b14e5e76708e01e4c58"},"properties":{"dependency":{"package":"smol-toml","version":"1.5.2","advisory":"[GHSA redacted]","aliases":["[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":"0bf997523edcbfd004b0e48079d2d03fc36b5b8058c165442d7b3299bf52fe16"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","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":"34c634dd8d84f5e47277186547eb9356311f344db4759e892016881dfc707f13"},"properties":{"dependency":{"package":"tar-fs","version":"2.1.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":"5fd66fed6cbabf2ebcb54e1348a619847d0bc5632ed65037101ab132a4a74a93"},"properties":{"dependency":{"package":"tmp","version":"0.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7424c94094dad37a163d385a8906880f2e4cabe67ebe544b80401bdc249ec37"},"properties":{"dependency":{"package":"underscore","version":"1.1.7","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":"7531eb5fa8b12bbac40121f69038f913c6ef844555a157b58db0a6ce500ba8f1"},"properties":{"dependency":{"package":"undici","version":"7.25.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[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":"b5ece2f610c9bfc15c6fcaf5f59a7b5331f7fffd872348c5b3a1385abcdc5eee"},"properties":{"dependency":{"package":"vite","version":"5.4.20","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"package.json"}}}},{"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":"50158e674a425a76864e10f3dc10943702dcd4e3db70274c526a9a9e55691783"},"properties":{"dependency":{"package":"webpack-dev-middleware","version":"5.3.4","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":"659b17df3a297d0c761f05e64fbd7a7fec481b8fec3425db0f2590512d5583b5"},"properties":{"dependency":{"package":"ws","version":"8.18.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b717e9dd303f73b8b7ce5922ca68dede6a38dec9452f848a70f0889e9aafb7d7"},"properties":{"dependency":{"package":"@humanfs/node","version":"0.16.7","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b7bda289298f8c7b577c3df21f51a6fc17f92b7e23b2a76b5f7c4731a8327d8c"},"properties":{"dependency":{"package":"ajv","version":"8.12.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"packages/mermaid/scripts/create-types-from-json-schema.mts","line":13}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16bc49aac72eafef4ac9a880a9755121d0367a6bdf3e48689c49c4d9d8c09a58"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.8.25","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6e87960f713f5159e96ad28751616b641218e6f6732383af905bb115b4b0cdfd"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.8.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ff4501a0b6eb84bb92385b6433ad1c9d658a3cd9dbc3a993388fb9e366aa074"},"properties":{"dependency":{"package":"esbuild","version":"0.21.5","advisory":"[GHSA redacted]","reachability":{"kind":"production","file":"scripts/swimlanes-size.ts","line":2}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6fb79007bff808f0f9ed82f4d428b3c45193863658dcd9768c0fea9c35128c01"},"properties":{"dependency":{"package":"fflate","version":"0.8.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a822456844ea2a77ef9d6377531f5a1eba052ce20a66f75177a94752d917e91e"},"properties":{"dependency":{"package":"http-proxy-middleware","version":"2.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"77595ddeb2a6b879721911aadde164fd7862ca58273f1b37abcf5a8d19439247"},"properties":{"dependency":{"package":"mdast-util-to-hast","version":"13.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3bac0b956cc7625db5ffaa04443fc36030c2af44043a6f2dfd365abaf694f40"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"932a3bfecc4fdb553659a83b676fe51d69a354f33acdb515911e099d90c2a373"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"6.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9fa903053a3f312606416859cb67a9d184205be1a801337492ae8f642ebf9203"},"properties":{"dependency":{"package":"qs","version":"6.13.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3c82628e8bb2b75d0256774cd33edfb9d8a9c77948607ce5320fde2466b61542"},"properties":{"dependency":{"package":"qs","version":"6.14.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bcaff5d1e287866fb15ab08f33c0744f85cfc07f596d7af736c916f57cc95099"},"properties":{"dependency":{"package":"uuid","version":"8.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fafc9091ae4762e9addb9f637beebbabf3036e8267907c7dd8475a28cbc70427"},"properties":{"dependency":{"package":"webpack-dev-server","version":"4.15.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"tests/webpack/package.json"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cab2098e551f88d096756eea896ab201fc72ec0275bddc366f276c5eb947889d"},"properties":{"dependency":{"package":"yaml","version":"2.8.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f392b1419f96aa208ac2115d3c34c2f00540ad0c5381e81423f8727e54319f35"},"properties":{"dependency":{"package":"@babel/core","version":"7.28.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a861b1ab2fd6ac5a0cbbd2d1eaeca38914dcada77f7a5d62bbdd015efb9e974e"},"properties":{"dependency":{"package":"deepmerge","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f725ad925cf527603c81b184e74678a84b7e7fa9f0fbc2a67fdf2a7487746145"},"properties":{"dependency":{"package":"webpack","version":"5.101.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"tests/webpack/package.json"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"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":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2fbc811a0bacf28652a0ba272d545d77557b83f659187e681131b64cf41141"}},{"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":"packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49f763bdfa7000a152401a496c1a86cdcacbc5d6ccdd72436e48666d0845406"}},{"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":"packages/mermaid/src/diagrams/railroad/railroadRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e623ad74b37ab69c142817fbc271a0e512c254ffa41a9fb40f733e23a6a6cb57"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 55 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: scripts/swimlanes-size.ts, packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts, packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts, packages/mermaid/src/diagrams/railroad/styles.ts, packages/mermaid/src/diagrams/class/svgDraw.js, packages/mermaid/src/diagrams/xychart/xychartRenderer.ts, packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts, packages/mermaid/src/diagrams/flowchart/flowChartShapes.js (and 47 more) (58 orphaned of 344 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; 344 of the 679 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":"scripts/swimlanes-size.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a835b8a06042b73d1999ebb909e9e8fe27f5ee3fe0b5c3daad83a2598d7115f"}},{"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":"packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72dbfc25b225d330586208d69385557722a364f3247e7a9ca537fcf2086a9f83"}},{"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":"packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed90f6e8a5d9fc5f3e84d515f2c3ebfbe0abe52801113f7b104001b63563211"}},{"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":"packages/mermaid/src/diagrams/railroad/styles.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"755137eca22193ebac9c4f7df982d70446d80beccafd4a0bb8632fb4f30db552"}},{"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":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0010a2b6ebaef9b3d89acf14e36d86f9db3a1b79c708400376517c4aac64903b"}},{"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":"packages/mermaid/src/diagrams/xychart/xychartRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07e138a02866865ae7340ea5e873dae7c359672841c596cfedf3eedc1fcb28d"}},{"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":"packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08aeceba2269d0580098168595545be470ce1fef4673b645e89f6c7e1859f268"}},{"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":"packages/mermaid/src/diagrams/flowchart/flowChartShapes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bd9162e2b28abf3685df7ca41cef628e272fedecb0feec21f2ee8db29abe43"}},{"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":"packages/mermaid/src/diagrams/wardley/wardleyParser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd603a2c3f196474d3a74f4784e597feb32291ecf1d899f9780a230f520ddd48"}},{"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":"packages/mermaid/src/diagrams/git/gitGraphParser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccb8c9d0781adf5f85229a4b08470339a984254bad12f0aeaa53c3927c4c5ef"}},{"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":"packages/mermaid/src/diagrams/class/shapeUtil.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ba4c40b40dd970508f7f9594f3e481d7ef41fc4203ce3e910289d8f70e30c8"}},{"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":"packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87587ef13799cd3f245770fa92c28a3a6990c6323fc40b92ed0fa6b0157276ac"}},{"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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/laneOrdering.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0892164c06972f799841293dd65e3dd8b3823bddb0cf30227f31212967ee7b28"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7898826238c83ba0d616a246b7c0e67a65aa2a76407e7d0c969aa6e35a73f29"}},{"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":"packages/mermaid/src/diagrams/cynefin/cynefinBoundaries.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3696085fe70bcc3ab1fbf339173118e953d269e6219781b4f9d58c9b707b3bde"}},{"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":"packages/mermaid/src/diagrams/eventmodeling/renderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"626425a58165ef11e7416a27747b892b44c6c3019de10b2a4d987e471bbaa60a"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1111e7e106e2b5ec8fa2295b6880b585ad0770aac99b039804e616eab0e6b6b9"}},{"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":"packages/mermaid/src/diagrams/quadrant-chart/quadrantDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f5483a93d02df683c98f7d6c19a07cb339107e5656090f9a43c29e75e55574"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e604e7f09b173d315f789a2f1fe97c3743832c4273eae557a266e3cb88631b92"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/imageSquare.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87805046e5a1e7799debe66a9cbe01a752eb46ff1105e6da440318982466341b"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f5c76a9618d8df2c7f4db9dd50175f47c07ecfadfd7bffc8675bd0fcd5baef"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fd2ce07db177a215fc73553e2ebc15fd069c5496b6d8a272e56345e281ada6"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ba5cff0c91ff11f77786f51caccb8a1d5484e13e5e15f3ed560061748f7d0d"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d11334aa474dc842079277d5060a32eac9dd6c5e3cc9be6dd374b25fc586aee"}},{"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":"packages/mermaid/src/diagrams/common/svgDrawCommon.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c054df65f154929e3196d48257f6595685cb00a661120fcc1fc48bbb57aee433"}},{"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":"packages/mermaid/src/diagrams/railroad/parser/ebnfParser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b79269e702153315655f58c7a185bad67654784edc1284e48463445b8e112e"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ac3dd44cbd0aa380da3167a78910e536258c60fb1e8442e21d4def3480533b"}},{"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":"packages/mermaid/src/diagrams/railroad/railroadTypes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70d4cb0d5811cb9d09b8f71346a2e791af46b4c9f09c017041977fe034e084b"}},{"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":"packages/mermaid/src/diagrams/railroad/parser/pegParser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a354a524cd60c9fcc4f40ac2b0b022ed17df195477cc260e881f14655e0461d1"}},{"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":"packages/mermaid-local-editor/static/js/renderer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ab9cf6c9dfac6ef879cdcc9ede66dddf59065ce9f9151dc9b1dcca8cb6bcbc"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e42504761de16d0fea34d7cc7025e0ff756bd2d6d5eb3a84fb1378a2c0bf0b"}},{"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":"packages/mermaid/src/diagrams/railroad/parser/abnfParser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ccec1c21c624de970c7d5c4062265eb6ffd80dc6997203be2ac39e8d5a1d4a"}},{"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":"packages/mermaid/src/diagrams/venn/vennDB.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc34a273f9d676d0ee180a281bfe49cb02d3e38fee06ea2d2a5d809a5805d61e"}},{"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":"packages/mermaid/src/diagrams/railroad/railroadDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40949cdf7b833561f541f04c58bd30d3c2262b574787817ff8a3a7b77df2dcf"}},{"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":"packages/mermaid/src/diagrams/eventmodeling/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddd119fcba757eefa65619cd8827eab92c79f252054ea6b247aa9c9720c8af0"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"104c4826f0a8f221c8fb7b779b325c7ec1c92c5f9355c61f9b3dd4d5fe911195"}},{"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":"packages/mermaid/src/diagrams/railroad/parser/railroadParser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac70b7e9de3618418047d2ac60264f905ffe33c9d47cd07d9c3c9e408703a542"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbee1e7ac46b9da773a8b4daaf2fb37f4a6f49344db40bef6fc7dfac944dcc7f"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bang.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e218b264fc40c4fc23b6d3908482103fff9ca0ac66412ec32924b1d09590b0"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b2f5a7730742632cb8c036bf50e1c7095c072d6b73b76b055b3e63e93c6607"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e468c688f1f302f965f32df946b555f10ab25b19b7e94c823a9a3137684430b1"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/waveEdgedRectangle.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee9e57f57650e2c00e7fd34bcb5a432720a6dd8b02e8c4552a033554c4f0360"}},{"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":"packages/mermaid/src/diagrams/git/gitGraphTypes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4c63879334327a9ce2b152195b6cdf3a73d3ee02c0afbe0fd6d010097ce82f"}},{"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":"packages/parser/src/language/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11f2b33af6305b2d2f3b1b09d31355f8cf5edbbfb1981e03553df1f2637538b"}},{"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":"packages/mermaid-local-editor/static/js/ui.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a314e4bce44469330859984fb040d73840e44cc37d1831bdac42baf758eb499"}},{"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":"packages/mermaid/src/diagrams/class/classRenderer-v3-unified.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"031dbfc0212ff5c420d916f27485641a8a08b553d92f6fb8a3082e9b7d499875"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e71bbb56885ed720b453c579cdb2319be7d8815168db4f85d571788b8d5c4bb"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/waveRectangle.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b382ec01ce2f855a6dc45406974489b5d82d1a0e43fbb46a7c785f8891a7c8"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/flippedTriangle.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaae7f23cf66f1518487d7eeed4491b6d4a3ea5069d75d9e679616289886f783"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/cloud.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7822660aceaacbe077b5c6af63330aa1d77319dc84da32679ce06e65ad30a980"}},{"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":"packages/parser/src/language/eventmodeling/event-modeling-validator.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccd6e0c69a08e6de5a137d00e7a217d02992840a2aafdc9bc8f217aae154e7c"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/crossedCircle.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2c40ee0cf3446af1fa21c511562c08be49cc8d82fb65164014327ba6b361dc"}},{"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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c472de257a86a2432f1c172a4788a538f3ab4b3f2308e19de4deda2f60731341"}},{"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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoidalPentagon.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a98d58c06fb8c9a9082a7ffd9190a0445e39dc6ccb77b4bc36e1b72b46e6dc5"}},{"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":"packages/parser/src/language/architecture/module.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"413dfd53924bdcc8523f1fd8240c0178368c239c6d041d857bf5f47558a7b9f3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: chartTitle.ts \u2194 index.ts: \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/components/chartTitle.ts\u0060 and \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/index.ts\u0060 change together 86% of the time (12 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060037ba2fa\u0060 chore: Rename Group to SVGGroup; \u00600d348b79\u0060 Updated code review changes; \u00607c7d5881\u0060 Fixed all review comment (at that commit the file was still \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/components/ChartTitle.ts\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/chartTitle.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec41ec927bd6d7beb969b29b0fc3a3222ffb480a4515f3cb650c00873c85161"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: index.ts \u2194 chartTitle.ts: \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/index.ts\u0060 and \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/components/chartTitle.ts\u0060 change together 80% of the time (12 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060037ba2fa\u0060 chore: Rename Group to SVGGroup; \u00600d348b79\u0060 Updated code review changes; \u00607c7d5881\u0060 Fixed all review comment (at that commit the file was still \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/components/ChartTitle.ts\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2cf33d2b7a6176ce341a90df50022793b56485add70475ebdeb689d6a8ef5f6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: linePlot.ts \u2194 xychartDb.ts: \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/linePlot.ts\u0060 and \u0060packages/mermaid/src/diagrams/xychart/xychartDb.ts\u0060 change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060b9074fca\u0060 feat(xychart): add per-point text labels for line charts; \u0060fae648c2\u0060 Added the file name changes; \u00607c7d5881\u0060 Fixed all review comment (at that commit the file was still \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/LinePlot.ts\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/linePlot.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3271c87baeccb4e4fcd9afe03e529853bd0161b898874ea53345b5d588d77e7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: textDimensionCalculator.ts \u2192 index.ts, orchestrator.ts, xychartDb.ts: \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/textDimensionCalculator.ts\u0060 changes together with 3 other files \u2014 \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/index.ts\u0060, \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/orchestrator.ts\u0060, \u0060packages/mermaid/src/diagrams/xychart/xychartDb.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/textDimensionCalculator.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45d1b819d7d27189d3e7975b0c50abe6215b2a3207c41e651422e5714bc6466"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: kanbanDb.ts \u2194 clusters.js: \u0060packages/mermaid/src/diagrams/kanban/kanbanDb.ts\u0060 and \u0060packages/mermaid/src/rendering-util/rendering-elements/clusters.js\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006033c7c720\u0060 Merge pull request #7276 from mermaid-js/markdown-specific-changes; \u00600197c089\u0060 revert adding kanban section to shape; \u0060dffaf9fa\u0060 fix for kanban section shape \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"295e7a35f5020f04187709606335041039824ac56ec426350bef51393f9101e4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: orchestrator.ts \u2194 xychartDb.ts: \u0060packages/mermaid/src/diagrams/xychart/chartBuilder/orchestrator.ts\u0060 and \u0060packages/mermaid/src/diagrams/xychart/xychartDb.ts\u0060 change together 58% of the time (11 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u0060037ba2fa\u0060 chore: Rename Group to SVGGroup; \u00600d348b79\u0060 Updated code review changes; \u0060fae648c2\u0060 Added the file name changes \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/orchestrator.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13019786780cfe45f8694e3a8489e117b9c8acd7f5ae0eec01bc7020545c5349"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6bb3f0b1fb2308ba55f54d8f658ff17934a3d2a9b23d0f077ed85845db8c3d1"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb5bf466ba36d771de538c95a63fedb5d123e59a05fd6e2652b2ea689eeb52ea"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1de5d85995d3c0119d37f2a9372e23c9a9353ab8b34eaae4c0892b84939f0c05"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"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":".esbuild/dev-explorer/diagram-viewer.ts"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"a236a1018757d115631d0eab4db6e3b182ad4a3a563bcf5c511f329117d890a3"}},{"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":"packages/mermaid-local-editor/static/index.html"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"da21e37da16e117fdc20919effd0d7d00f9ac4784c7dd4b4716c9c0990f83aa7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-local-editor/static/index.html"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe62a13959d5a0332db32cb15724f11876c138d72a0b6e269932bc55cc54f33b"}},{"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":"packages/mermaid-local-editor/static/index.html"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0392c587e42a49a3075b986955c296c7149d7afda63be14442c9668fb549b8a"}},{"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":".esbuild/dev-explorer/public/compare-pane.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"555c52419b90335bfd919b18b2862c64f57bd6f78a4ead579bc0228e6f1951bf"}},{"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. This document\u0027s body is only the mount point \u003Cdev-explorer-app\u003E, so there is no content here to wrap \u2014 render the \u003Cmain\u003E from the component mounted into it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".esbuild/dev-explorer/public/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e166224bcb9b17f0031db74f374d3b56d1271cfc7c52483f91d53e7aa03a8d7"}},{"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":"packages/mermaid-local-editor/static/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf8df4739f7792f1de7623a4c831f6f407253e3483fabef2f18bf7685047f37"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.editable-code:focus\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":"packages/mermaid/src/docs/.vitepress/theme/Mermaid.vue"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"88891a9844f16ca7fd7310083c5dec2f2d461be72c616ba68bc0b44ce929a577"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060dev-explorer-app .cm-content\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":".esbuild/dev-explorer/public/styles.css"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"343ff17446d939c801d8101d3675dc282e238a1174dabb0accfb87f3eaea70cd"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060#toolbar\u0060 moves (\u0060transition: transform 0.25s ease,\n    opacity 0.2s ease,\n    height 0.25s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-local-editor/static/styles.css"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e219a84d15a50964d2ae468a5e59d4c0a353f4f28d07cb648314d2ed3671f8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.mermaid-chart-tooltip.showing\u0060 moves (\u0060animation: tooltipFadeIn 0.3s ease 0.4s forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/docs/.vitepress/theme/Tooltip.vue"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bca1fb3728bd3d468cb9f0ff1b75ecbf12fb7ffea6aa6cf13972d47632174d3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.mermaid-chart-tooltip.hiding\u0060 moves (\u0060animation: tooltipFadeOut 0.3s ease forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/docs/.vitepress/theme/Tooltip.vue"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e45cd0de6dc98dad185b6861a9e07bd5e8bf2ba7c6c847c74f76ffa6bcc4aa"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060dev-explorer-app button.card\u0060 moves (\u0060transition: transform 0.2s ease,\n    box-shadow 0.2s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".esbuild/dev-explorer/public/styles.css"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"2357589fc59474a4fca8a5d35efff63d250e67dd9280226ac7723d51bb0a8adf"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: GitGraphDB (17 required operations): \u0060GitGraphDB\u0060 declares 17 required operations: \u0060setDirection\u0060, \u0060setOptions\u0060, \u0060getOptions\u0060, \u0060commit\u0060, \u0060branch\u0060, \u0060merge\u0060, \u0060cherryPick\u0060, \u0060checkout\u0060, \u0060prettyPrint\u0060, \u0060clear\u0060, \u0060getBranchesAsObjArray\u0060, \u0060getBranches\u0060, \u0060getCommits\u0060, \u0060getCommitsArray\u0060, \u0060getCurrentBranch\u0060, \u0060getDirection\u0060, \u0060getHead\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphTypes.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"679763552f55211eb7938ddfc1478754525e3d193cfd1b10755bb7ea45e77ebe"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ArchitectureDB (16 required operations): \u0060ArchitectureDB\u0060 declares 16 required operations: \u0060clear\u0060, \u0060addService\u0060, \u0060getServices\u0060, \u0060addJunction\u0060, \u0060getJunctions\u0060, \u0060getNodes\u0060, \u0060getNode\u0060, \u0060addGroup\u0060, \u0060getGroups\u0060, \u0060addEdge\u0060, \u0060getEdges\u0060, \u0060addLayoutHint\u0060, \u0060getLayoutHints\u0060, \u0060setElementForId\u0060, \u0060getElementById\u0060, \u0060getDataStructures\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureTypes.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"197918a343dc5035fd59640cd482f2d815697e862c17a24d15f96c2f95b138bc"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: UsecaseDB (20 required operations): \u0060UsecaseDB\u0060 declares 20 required operations: \u0060getConfig\u0060, \u0060createModel\u0060, \u0060commit\u0060, \u0060getAST\u0060, \u0060getActors\u0060, \u0060getActor\u0060, \u0060getUseCases\u0060, \u0060getUseCase\u0060, \u0060getSystemBoundaries\u0060, \u0060getSystemBoundary\u0060, \u0060getRelationships\u0060, \u0060getNotes\u0060, \u0060getNote\u0060, \u0060getJsonNodes\u0060, \u0060getJsonNode\u0060, \u0060getClassDefs\u0060, \u0060getClassDef\u0060, \u0060getDirection\u0060, \u0060getData\u0060, \u0060clear\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseTypes.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f7ec4846a54b3d2fe82a573910ef7f538f508869ccd004697218065a8fba04"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060getStyles\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/eventmodeling/styles.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0c08aa631b1e76f21012b18dc90c2d613cdf1419f18e5966547f6965d03a62"}},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"63750f179c6eb1f68b77d493ecb05eb73e480dcfbb21b2ce0f174377f9d393e0"}},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5667a2c3a54cdc1fa49787cd7c4818792e848cc98aa8d295c170de17f021ef9"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060parse\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.chevrotain.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"708e0a1c79920bc2e3f94e4ddb9b9a6d41c1df632123612c7574a2a9f27b1861"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060trace\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/logger.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6bcc734c174dbc1d1f833e953fee2bc134b5b13c73f345f1c5977fa2a14005"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060debug\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/logger.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf98d7de4fe6b910cf983f90f0afd943b59759fc68388cbae0b67f043e682de3"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060info\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/logger.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d79afe5dbb42a8a42aa6ff27a6a270e567aa5086e947badd7cc7728f8aaea9"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060warn\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/logger.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3f4bf0b3bf70b9252c9117b09685694028706725af88ada25e99c002bed47b"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060error\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/logger.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c531082c8ce07849ef43faf6eb1d5d2d63614c0cf4d69f53be9f54b3086145f"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060fatal\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/logger.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b5b92b55da92c2a8c8f4a10e2c98e9b99ab7aa09bb750a814a8ae05c02a80b"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060runDomusOrthogonalDdlt\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/backends.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af638ef4538641dfe2d081bc811f5a7e7325b223c195e8be40a5ad83d5b9553"}},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: The \u0060if\u0060 and its \u0060else\u0060 contain the same statements, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"245adb6e7fb6cffa0a82dd5edeefca9ca77fdd16d82e3e2504234bb6c70ebf3c"}},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5bbe813d0203a974a12ecaa5aa28a1403287bf0f911d79eb4fa2284115c197"}},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoid.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b78a8ce2549f95df7054820808e5bbc60dbd337c979a754ebd43c28ea24976f"}},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: The \u0060if\u0060 and its \u0060else\u0060 contain the same statements, so no input can make the condition matter. Implement the distinction that was intended, or drop the branch and keep the body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16563452c22300c29e64910b36881abf0e0ecdb66e919d63076924f8ceba1d1"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/other/pr-check/configuration.spec.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab1dd62fdd0dbb4d7bd66be29621d114a146aade134af9092f6e9bd48f491a2"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/other/pr-check/dev-explorer-compare.spec.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b18b51727578065af0555c41e1a2548af4191bbaa654b8c2a07153af5278a1f"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.spec.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"194eee4c7fea4d82a02a547aea7475208bd633d687f7af0c7d74ba169e415a72"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDiagram.spec.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c24585377f6fa6b8c5f9cc47968c2c7a2c9cc312737decfaaafe9c97174905"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/parser/erDiagram.spec.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceea91bd4426726e6e818525c75d0bfd00664698350465a74d7c73798a47dd78"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/parser/flow-huge.spec.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"446bfa5e7b6fb773c7d830d688fab8039c51b8f7af022f871fc519ab0d356f4d"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/parser/flow-node-data.spec.js"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"243ab3c95fc89e730c12de7e8cecbae3095c5cc966044bd9c6d3e6f43fc834f5"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/parser/subgraph.spec.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"792a7af52b1bd15dddbc79ffcb972cb78018c978d799e17abecc4b52c365cb24"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraph.spec.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca533088ab0fcf805abc3b54d6266b2d1134f8099751f3f98e12399d3941797"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraph.spec.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2291ed7cd7f8bb721879f17c562f6287a6d160ea3aa363933fea3c93039421"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraph.spec.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"49aec319ac88c497adea47848c8345595db0ce0694793395adf772c803a209a8"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraph.spec.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1284f5ce040db06438bb63a9af9d461df8e88dc83d8ac44059422f43e8b2b86f"}},{"ruleId":"IC1","level":"note","message":{"text":"Blanket warning suppression: A bare \u0060eslint-disable\u0060 or \u0060@ts-nocheck\u0060 with no rule list switches every lint rule or the whole type checker off for the rest of the file \u2014 hidden debt. Disable the specific rule on the specific line, with a justification, instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e062ca058bef0648582e32238b3d95e4c642b0fd186bde10052cf99217e4590c"}},{"ruleId":"IC1","level":"note","message":{"text":"Blanket warning suppression: A bare \u0060eslint-disable\u0060 or \u0060@ts-nocheck\u0060 with no rule list switches every lint rule or the whole type checker off for the rest of the file \u2014 hidden debt. Disable the specific rule on the specific line, with a justification, instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48f9b9758df91b42e2b154998db19f643d7f9866032cec54f882d700ffa7686"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateDiagram.spec.js"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50e06accf9996cd579e2c1a95d40d5095078d53e1e01258d415b001b78ed760"}},{"ruleId":"IC1","level":"note","message":{"text":"Blanket warning suppression: A bare \u0060eslint-disable\u0060 or \u0060@ts-nocheck\u0060 with no rule list switches every lint rule or the whole type checker off for the rest of the file \u2014 hidden debt. Disable the specific rule on the specific line, with a justification, instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d7ce595024f93578a5939c0b46e3ebc23a3ed6cf882bf263c7f02735a4621d"}},{"ruleId":"IC1","level":"note","message":{"text":"Blanket warning suppression: A bare \u0060eslint-disable\u0060 or \u0060@ts-nocheck\u0060 with no rule list switches every lint rule or the whole type checker off for the rest of the file \u2014 hidden debt. Disable the specific rule on the specific line, with a justification, instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/user-journey/journeyRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed0863e9bcc52a39186e04e6490378849e16c772f883c65817eac837b4e7190"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/handle-markdown-text.spec.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"96593eb5f7691d795f0ffe86ca7278230360b3812340698e322fc259eac028b9"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/postProcessing.spec.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4ef7b78c21fefc19d0b247649011268f77cf661d597d8a811de458203be87d"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/__tests__/raykov.router.spec.ts"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5dce4e7964f2cae89fe0bb4ba523adebd09a474e9a0d594e1f212708e832435"}},{"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":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/assignWithDepth.ts\u0060 reports through \u0060console.*\u0060 at line 17 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/assignWithDepth.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"04414a6d848925af3d7b9109524cbbc94da6113648cc633615037ee6a1286707"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/profiler.ts\u0060 reports through \u0060console.*\u0060 at line 304 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/profiler.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"480eca9be4f325b098bb4e25683915b85392e26dd5977c89cafb2f0f0db83902"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/utils/imperativeState.ts\u0060 reports through \u0060console.*\u0060 at line 12 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/imperativeState.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d9ed42790fdf655e519bb80a479f6b9e5c0d0051676fb2960757c0f36b644e"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/utils/imperativeState.ts\u0060 reports through \u0060console.*\u0060 at line 14 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/imperativeState.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ec30b824e96119c5676d4237e9a21d7b236c6b44ef254dedc39a0d095132ca"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/rendering-util/render.ts\u0060 reports through \u0060console.*\u0060 at line 10 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/render.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79d6c8ad6f304e5eb04c05c604a8fbe8cbaceeae36182088544cf7209ed4e96"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/rendering-util/rendering-elements/shapes/drawRect.ts\u0060 reports through \u0060console.*\u0060 at line 18 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/drawRect.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69957cb19cb1471b2a6c8600685e68aa9b3f25ee83db8dae2bb761bf169094b"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/rendering-util/layout-algorithms/ddlt/discoverFixtures.ts\u0060 reports through \u0060console.*\u0060 at line 110 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/discoverFixtures.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"22984ec6c11a9a210827a86173832785be8fc85d460d00633df16099bfe1d069"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/diagrams/state/stateRenderer-v3-unified.ts\u0060 reports through \u0060console.*\u0060 at line 75 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer-v3-unified.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"22da3c25e4c741a35c5bee7e47447fa8d76db7e04a921d4ddbbe78382680c5b2"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/diagrams/state/shapes.js\u0060 reports through \u0060console.*\u0060 at line 180 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/shapes.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"813e148ab3fc8d4da483fda3ac8f0da4fd006d12e2c4f923c2c57f301fd80ce7"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/diagrams/kanban/kanbanDb.ts\u0060 reports through \u0060console.*\u0060 at line 27 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b74425c0b907abd3f5dc23426351078d213d0d1c52a8d7e07f4863488e7e08"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/diagrams/kanban/kanbanDb.ts\u0060 reports through \u0060console.*\u0060 at line 35 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79ba6558e3c3bebd64280b27c8f5eedadc542ec821fc1fbe5d69d3957cfbc39"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/diagrams/kanban/kanbanDb.ts\u0060 reports through \u0060console.*\u0060 at line 37 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fed388821a0271b8f0730ecea6be8b406d14eda7630b813848f31b357c3d35b"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/diagrams/kanban/kanbanDb.ts\u0060 reports through \u0060console.*\u0060 at line 121 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a68e2185dd7fea885cd2b8043d632edaa1931dd0b47adaa54c18ad779fb9e1"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/diagrams/kanban/kanbanDb.ts\u0060 reports through \u0060console.*\u0060 at line 123 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d841aa88d95117a8235758f2b95fb7a83f6f7909a63a1d9bbb9d6411ce3e70"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/diagrams/kanban/kanbanDb.ts\u0060 reports through \u0060console.*\u0060 at line 126 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2565a08fb932b69145dd8023096fbc842db789a15643905883903b93930379"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid/src/diagrams/kanban/kanbanDb.ts\u0060 reports through \u0060console.*\u0060 at line 130 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c9174138acb301795b621554b76cbb800da56d6e690dc9682a8f294cfe6246"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid-example-diagram/src/mermaidUtils.ts\u0060 reports through \u0060console.*\u0060 at line 5 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/mermaidUtils.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"8393baaae78b019eed024c94f3a87b115a6febff8ab85ff3157dd05e6e189b7c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/mermaid-zenuml/src/mermaidUtils.ts\u0060 reports through \u0060console.*\u0060 at line 6 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-zenuml/src/mermaidUtils.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fb063c0405de624366945283a072d9ccce0fd4e6e823559e4c939f85769d30"}},{"ruleId":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060processDocs\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c9aafd882c6816b36d256d3869da24772ba7f408218843b222310594e83599"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060on(\u0022unlink\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6d2966005a2cc459257b5eb24a11fb2aa1a78149e285c81d31fe47f445561c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmdirSync\u0060 in \u0060on(\u0022unlinkDir\u0022)\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b8e7994b3908aa7d4e2010b3b2cf6bb9ee9df196d3759dd01a17da4b1be72d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060parseMmdFileToLayoutData\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/parseToLayoutData.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3685dee8897df03f5a9ba0673a8a54d8d0e4ed4467944428da9ca0f1bf911872"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 34 sibling directories (94 clone groups): 94 duplicated blocks under packages/mermaid/src/diagrams/ have copies in at least two of the sibling directories agentflow, architecture, block, c4, class, common (\u002B28 more sibling(s) not listed) \u2014 78 of them are reported below, and 16 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 94 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 94 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 94 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/svgDraw.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbef26ddb6f064d04cf35bd1d78c27b5d12a666c384eb7ff534f29e225bfcc5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (17 clone groups): 17 duplicated blocks under packages/mermaid/src/ have copies in at least two of the sibling directories diagrams, rendering-util \u2014 11 of them are reported below, and 6 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 17 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 17 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 17 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"4572e06a06b4e55f0a1dffefaf048daf4ef31c3992fb53785778ef40e3a17ac3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (17 clone groups): 17 duplicated blocks under packages/mermaid/src/rendering-util/layout-algorithms/ have copies in at least two of the sibling directories ddlt, elk, grid, layout-utils, swimlanes \u2014 9 of them are reported below, and 8 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 17 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 17 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 17 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/lineHops.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c590c2c060075d2afc1beb723bbc6c1fee737e382089db543677be88d6985d59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 14 sibling directories (12 clone groups): 12 duplicated blocks under packages/parser/src/language/ have copies in at least two of the sibling directories architecture, cynefin, eventmodeling, gitGraph, info, packet (\u002B8 more sibling(s) not listed) \u2014 8 of them are reported below, and 4 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 12 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 12 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 12 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/railroad-peg/valueConverter.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"51301bb442f0879c195e6ab40ed922d92b96478cc8647431e088e17180d8b9f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (10 clone groups): 10 duplicated blocks under packages/ have copies in at least two of the sibling directories mermaid, mermaid-example-diagram, mermaid-layout-tidy-tree, mermaid-zenuml \u2014 9 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 10 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 10 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 10 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/render.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"88618a84540f3fe5c309662f185e2813c92debb5a3d68e5461b19bab63cb9b54"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (291 identical lines \u00D7 2 files): packages/mermaid/src/themes/theme-neo-dark.js:1 \u00B7 packages/mermaid/src/themes/theme-redux-dark.js:1 \u2014 these 2 files are line-for-line copies of one another \u2014 291 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"934f6032a8f501d7b37979bbe8f03185f713bbb6356e3df272d59a40d98935ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (279 identical lines \u00D7 2 files): packages/mermaid/src/themes/theme-redux-dark-color.js:1 \u00B7 packages/mermaid/src/themes/theme-redux-dark.js:1 \u2014 these 2 files are line-for-line copies of one another \u2014 279 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark-color.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40febc353b661197cf9d3e49bf7468064f73039d4f8cf991ce3d29dcefc71985"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (278 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/timeline/svgDraw.js:19 \u00B7 packages/mermaid/src/diagrams/user-journey/svgDraw.js:5 \u2014 the two spans are one implementation copied and then locally edited \u2014 1894 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":"packages/mermaid/src/diagrams/timeline/svgDraw.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c94233f484e398c4995e038efa4320893a76d4ea37affc83a8ac91975fd812"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (247 identical lines \u00D7 3 files): packages/mermaid/src/themes/theme-neo.js:1 \u00B7 packages/mermaid/src/themes/theme-redux-color.js:1 \u00B7 packages/mermaid/src/themes/theme-redux.js:1 \u2014 these 3 files are line-for-line copies of one another \u2014 247 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee47c4fdcb278b4b73de3a230b6f22f39b83efc21081239587f5265d35233e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (147 matched lines \u00D7 2 locations): packages/mermaid/src/themes/theme-default.js:164 \u00B7 packages/mermaid/src/themes/theme-forest.js:140 \u2014 the two spans are one implementation copied and then locally edited \u2014 1875 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":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c0e056373f927235e84b40a130e4237fd327afd9730c02c362b62186e62778"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (141 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/timeline/timelineRenderer.ts:11 \u00B7 packages/mermaid/src/diagrams/timeline/timelineRendererVertical.ts:11 \u2014 the two spans are one implementation copied and then locally edited \u2014 857 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":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e46eabc8398f82f272b65ac3c6cd1115582930ff85824f3c96420cf55a1a756"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (115 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/c4/svgDraw.ts:215 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1633 \u2014 the two spans are one implementation copied and then locally edited \u2014 645 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":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a56726864605498d9f25cf281e3db56a9fdb8d8baf00511ea46118c61d8512"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (112 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:816 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:458 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"6014cc0ff1f5934a780b685d0bc1b1c4c17307a7713aad91933f2aaa63827928"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (91 identical lines \u00D7 3 files): packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts:1 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts:1 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts:1 \u2014 these 3 files are line-for-line copies of one another \u2014 91 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45de5ce457d4e990b679a7cec60c42913900506f54359a0d14828914f42b9a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (76 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/er/erDb.ts:39 \u00B7 packages/mermaid/src/diagrams/requirement/requirementDb.ts:64 \u2014 the two spans are one implementation copied and then locally edited \u2014 497 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":"packages/mermaid/src/diagrams/er/erDb.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aff7415147e24e5b21b87fce2d0dc582dcbe8cf66fecfc0fe56dab8c2623f23"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (71 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters.js:56 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters.js:339 \u2014 the two spans are one implementation copied and then locally edited \u2014 592 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10f094cd0e618de9803b9b376e7e45b39d04f6903571b809cd7afe78f141884"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (70 matched lines \u00D7 2 locations): packages/mermaid-layout-tidy-tree/src/render.ts:11 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/render.ts:13 \u2014 the two spans are one implementation copied and then locally edited \u2014 549 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":"packages/mermaid-layout-tidy-tree/src/render.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a572941fefd12a0ddefa5f48d2ada78ea04e90d32812ee43b679f7c9c1141d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:789 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:919 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"92077c16026dd8aac8654319c51ce8ac0e02e1dbd881a594d506ff3e3eb70a18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (65 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/orchestrator.ts:63 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/orchestrator.ts:133 \u2014 the two spans are one implementation copied and then locally edited \u2014 478 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/orchestrator.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ac88ee2366fb1350985634beb1ed2073c6049459508cb76136fbcb597a3c5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (58 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts:25 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/waveEdgedRectangle.ts:28 \u2014 the two spans are one implementation copied and then locally edited \u2014 487 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e950b84bff0b52d501c8dc9d4e0f80884d59874543f076ab4d89aea1f0e67e15"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1560 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1120 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"6805b97c9adcc2e29101157bf1cd014d11f787e992a420142c275f739b9ca6e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (57 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/git/gitGraphAst.ts:112 \u00B7 packages/mermaid/src/diagrams/git/gitGraphAst.ts:266 \u2014 the two spans are one implementation copied and then locally edited \u2014 377 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b85dbc5292066f417638855e32c5896cf18bfc8f2811acb38126aba768824ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2 locations): packages/mermaid/src/utils/lineWithOffset.ts:62 \u00B7 packages/mermaid/src/utils/lineWithOffset.ts:124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/lineWithOffset.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b1094ba4595f4394d773e668f48d25ccc7feaea647c3e0a55fa64fdcbfc3ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2 locations): packages/parser/src/language/railroad-peg/valueConverter.ts:5 \u00B7 packages/parser/src/language/railroad/valueConverter.ts:5 \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":"packages/parser/src/language/railroad-peg/valueConverter.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f87d0456972290db68873b718ab2e09f6c112e1d7ccae4b4df56f576f8803c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:266 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:134 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0232dd46044029560ffdce2baae65560a10e063c2b302b84713b0608c5a6b9e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (53 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/browser.ts:10 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/console.ts:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 449 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/browser.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ae366f3b024b9ff0616b2afeecba9745bfc8e627a297780b802201d498140e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 3 locations): packages/parser/src/language/railroad-ebnf/valueConverter.ts:5 \u00B7 packages/parser/src/language/railroad-peg/valueConverter.ts:5 \u00B7 packages/parser/src/language/railroad/valueConverter.ts:5 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/railroad-ebnf/valueConverter.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6962cd66cf672de01c3487c3d170f5113f47b4fd11fe3d20f3bd84e6676dc1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (52 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/flippedTriangle.ts:10 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/triangle.ts:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 447 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/flippedTriangle.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f312de61423efef545994792c4ba4487c846c35ebc3d477770fc31fca1d07a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:737 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:388 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee53531214aab93625d0ef64b4f0304b202f0b69867d0c3e6a26c545b610ecb7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (51 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/types.ts:43 \u00B7 packages/mermaid/src/diagrams/flowchart/types.ts:25 \u2014 the two spans are one implementation copied and then locally edited \u2014 240 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":"packages/mermaid/src/diagrams/agentflow/types.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc556db2a7fca5b70734bfa6234a279248bb85fbe8d7f7b077fa7f89ae93f156"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (51 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/kanban/kanbanDb.ts:164 \u00B7 packages/mermaid/src/diagrams/mindmap/mindmapDb.ts:114 \u2014 the two spans are one implementation copied and then locally edited \u2014 246 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":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d8283b081e60a336f54b1eabf5f1b1036fe157b80a9e1d361ea63ad2e42bf2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (48 matched lines \u00D7 2 locations): packages/mermaid/src/themes/theme-dark.js:166 \u00B7 packages/mermaid/src/themes/theme-neutral.js:233 \u2014 the two spans are one implementation copied and then locally edited \u2014 547 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":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d1360feba38470d1111693c1d190670c58a2d29fd1ce70c80a1ea5299fa92b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2 locations): packages/mermaid-example-diagram/src/mermaidUtils.ts:2 \u00B7 packages/mermaid-zenuml/src/mermaidUtils.ts:3 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/mermaidUtils.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8627a40e1846a4e74462fb0810e16bd226497037975859757873a8a2de7f6c57"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:446 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:260 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b233f6b97d3c410bad99ec9cfdff4629a3a1f173757878860aeeb55a60adf34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (45 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1579 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1835 \u2014 the two spans are one implementation copied and then locally edited \u2014 247 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ad6c23a477720f65da12c04edb1092a5955712655e07140aaebb8cc8bb8b02"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts:9 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts:9 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"663714783480bc1495c5d933cc90dd86910da28ffcfe52cc8f3323ca49f1d776"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1158 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:756 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cafe35ae96a9e6cd3865c906807907e87bac2637d7cb6aefbedb0c12479250"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (43 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:97 \u00B7 packages/mermaid/src/diagrams/user-journey/journeyRenderer.ts:218 \u2014 the two spans are one implementation copied and then locally edited \u2014 461 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4a13f804c873956094d26d5b2681516d28b849a426075e9d2363729c5c3c73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (43 matched lines \u00D7 2 locations): packages/mermaid/src/themes/theme-default.js:8 \u00B7 packages/mermaid/src/themes/theme-neutral.js:11 \u2014 the two spans are one implementation copied and then locally edited \u2014 321 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":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc7c55ebe5066f7236cb0257570a336ab1ad7cbfe6b58c6095b58309ce64291"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1295 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:878 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"9322d9f8ab0f733b6f3b24c000ff481d3549b86a04b7ddc2e01e6bc68d39bd1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (41 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/timeline/timelineDb.js:26 \u00B7 packages/mermaid/src/diagrams/user-journey/journeyDb.js:23 \u2014 the two spans are one implementation copied and then locally edited \u2014 220 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":"packages/mermaid/src/diagrams/timeline/timelineDb.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cf6e78464df7855cbd3b1a82e8d8adedfc02649464917220b8ab0f1d129bf6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1078 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1312 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"68843ed6a801c29924ab3cdd849ba85f2c020af2f9649c059e1a8b8d7c84e6bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (40 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnDataObject.ts:16 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnDataStore.ts:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 279 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnDataObject.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"100baf08669a094b6f5c3f86dfbd558f217a2e6b431e112725d04d68c4b328be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (40 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts:8 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 352 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c12e85a19174ac01ebdb5f52016af31ef7de760d9dc996f57d37e1ad2d3739"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts:519 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts:574 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb730a58a54611ebf530a1ff46435029427612100add5ec616138174c19b9ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2 locations): packages/parser/src/language/eventmodeling/module.ts:19 \u00B7 packages/parser/src/language/treemap/module.ts:26 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/eventmodeling/module.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8539c90e7bdecfce42fd53b51a89ef15c3ab90600093ef480fba09d6d261f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (38 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/stateEnd.ts:16 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/stateStart.ts:13 \u2014 the two spans are one implementation copied and then locally edited \u2014 260 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/stateEnd.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"159d2340d463de16f2a4238509a16f61a04cb90fd57a18152868bc2c239ccbdb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-base.js:167 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:200 \u00B7 packages/mermaid/src/themes/theme-redux-dark.js:214 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"9387fd4ab2dddeff2df99f7c11407133edd0163ee32207bacfa745de4466b473"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/leanRight.ts:15 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoid.ts:15 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/leanRight.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b93e6f7a69114d2f0ebfb6ddf61ca458382f633f741ec55ac0e6f4d7236b213"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-neo-dark.js:42 \u00B7 packages/mermaid/src/themes/theme-neo.js:29 \u00B7 packages/mermaid/src/themes/theme-redux.js:36 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e52b1b27b61211f359eda0400099a4ce9e7f68c3c7028427181032d6128edf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): packages/mermaid-layout-tidy-tree/src/render.ts:143 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/render.ts:156 \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":"packages/mermaid-layout-tidy-tree/src/render.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b15042e898822d9b2772e05e54cc363d795aab20b1717f4188ec82f105b3650"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3 locations): packages/mermaid/src/diagrams/railroad/parser/abnfParser.ts:106 \u00B7 packages/mermaid/src/diagrams/railroad/parser/pegParser.ts:115 \u00B7 packages/mermaid/src/diagrams/railroad/parser/railroadParser.ts:68 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/railroad/parser/abnfParser.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"422b05972b993b5713117396b259fde7a9f4cfde1d6b307c6a93c664a96a56ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 4 locations): packages/parser/src/language/cynefin/module.ts:14 \u00B7 packages/parser/src/language/gitGraph/module.ts:14 \u00B7 packages/parser/src/language/packet/module.ts:15 \u00B7 packages/parser/src/language/radar/module.ts:14 \u2014 the 4 copies are spread across 4 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/cynefin/module.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc10f18a05a116d27f00059c58f109117a857107daaf36471022398f50cdfd5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-redux-dark-color.js:461 \u00B7 packages/mermaid/src/themes/theme-redux-dark.js:399 \u00B7 packages/mermaid/src/themes/theme-redux.js:373 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark-color.js"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc9d58bd8d59a1a3449cfe5238a4a0752874c80fa2a9e1017ee7a89f9ca4252"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): packages/mermaid/src/diagrams/cynefin/cynefinBoundaries.ts:52 \u00B7 packages/mermaid/src/diagrams/cynefin/cynefinBoundaries.ts:94 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/cynefin/cynefinBoundaries.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6b7351ba7d3609246b6c3358a372294c45d647de198632b1eec1fcea8d6045"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (33 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts:263 \u00B7 packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts:310 \u2014 the two spans are one implementation copied and then locally edited \u2014 248 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f184dcc2f8420a6c89c5bf34a96e07ffecb382cdc1b8eea35bbe57ad171e58"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-redux-color.js:186 \u00B7 packages/mermaid/src/themes/theme-redux-dark-color.js:191 \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":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3a59e8c62b48b9e04591e5ff4a1b2621576a9d263c6e4747c06ee0a1d17bb0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1835 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1418 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a41e52fc6fa1389b015bc7328a7ce43ef60116a350700636b5abdcd3232ec08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (32 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/block/styles.ts:6 \u00B7 packages/mermaid/src/diagrams/flowchart/styles.ts:7 \u2014 the two spans are one implementation copied and then locally edited \u2014 201 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":"packages/mermaid/src/diagrams/block/styles.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3094e81e6ef312693a9e399541b7aa7b7bc698550f46c2048be948dd3d955a12"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts:175 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts:219 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8611349bceda82c08b3946b7893cd047c5f8579e8cedb2fbb70cb451763fb6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-neo-dark.js:385 \u00B7 packages/mermaid/src/themes/theme-neo.js:371 \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":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e0305c7c857ec8bc729ab34ae6f6993de5c28385fa5fe0c56f4bb56320296a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 6 locations): packages/parser/src/language/cynefin/module.ts:17 \u00B7 packages/parser/src/language/gitGraph/module.ts:17 \u00B7 packages/parser/src/language/info/module.ts:18 \u00B7 packages/parser/src/language/packet/module.ts:18 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/cynefin/module.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1931534e3a7011a3d04bf624df2211920704be81fe28b8a06393ea81c85d73d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 4 locations): packages/parser/src/language/railroad-abnf/module.ts:22 \u00B7 packages/parser/src/language/railroad-ebnf/module.ts:22 \u00B7 packages/parser/src/language/railroad-peg/module.ts:22 \u00B7 packages/parser/src/language/railroad/module.ts:22 \u2014 the 4 copies are spread across 4 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/railroad-abnf/module.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf911d0f0d111cf420ae99ccffce8ad26d8e55e6a76756fad7313f89e528002"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1074 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:688 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea3f2f7c1be1438d86d455eefa3e33e5427a1647b1ab6ed503bc3b1b2b0b90f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): packages/mermaid/src/diagrams/gantt/ganttRenderer.js:694 \u00B7 packages/mermaid/src/diagrams/gantt/ganttRenderer.js:757 \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":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"250ec4c2ecc45f961439ce120cc186a8014111eadd12cc612a251cbdab002b32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts:257 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts:470 \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":"packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38bedfe403e4b06c362811ebc6cc06ea542d7b79ff3709845eb68a9757c14cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:268 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:345 \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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d452a9374a8da71b04dfb3d8938fc6848d21c31777d7f586547b269f251838"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-redux-dark.js:160 \u00B7 packages/mermaid/src/themes/theme-redux.js:143 \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":"packages/mermaid/src/themes/theme-redux-dark.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ecc1390fc3cdc3f4425f6d558da94f7edfc3ad8aa231e7e01b06ca94001f07"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts:2623 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts:2654 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2623}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe3a2eeb9440629a358cd9c5a23cde4027e29d6117039e1df3c59fbf991a4ca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:892 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1036 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"1072086138a56352e5b39ac6bb5c01dd4cb997f643500c83de1aa2ec6aa2f834"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts:102 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts:111 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbd2c029435b0e91f063e4d4fc1876f6dee7d7ceec6bc41dd6a3e64d080d2b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 4 locations): packages/mermaid/src/themes/theme-dark.js:278 \u00B7 packages/mermaid/src/themes/theme-default.js:311 \u00B7 packages/mermaid/src/themes/theme-forest.js:274 \u00B7 packages/mermaid/src/themes/theme-neutral.js:299 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0da324e3047aee487598f7995accd1b9886d4196bc5115dfea6a1f49acb3525"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 12 locations): packages/parser/src/language/architecture/module.ts:20 \u00B7 packages/parser/src/language/cynefin/module.ts:19 \u00B7 packages/parser/src/language/gitGraph/module.ts:19 \u00B7 packages/parser/src/language/info/module.ts:20 \u00B7 \u002B8 more site(s) not listed \u2014 the 12 copies are spread across 12 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":"packages/parser/src/language/architecture/module.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae27c98fbee959e66966dde64cca68e49ee0cc5e31eaa0eb470d328f461e02a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): packages/mermaid-layout-tidy-tree/src/layout.ts:298 \u00B7 packages/mermaid-layout-tidy-tree/src/layout.ts:332 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d33dda1e716605fc633155e92b401de28fe57a94c5a8a6bdabb09080f47936f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (29 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts:8 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 423 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6851f2685c7bdb05a69537eb1e715aea94e1fb1a7233d38c96f72d38f40d57"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts:8 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts:8 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b72c1c6bbba6af62ab0757bd3a120dff17f2f82573fc62c4b05446b84120841"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/invertedTrapezoid.ts:28 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/leanLeft.ts:22 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/leanRight.ts:23 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoid.ts:23 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/invertedTrapezoid.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"146693dac1a907ac313be7037a75b688c7923e0d4d28266ea73f0e323ecb0050"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-forest.js:439 \u00B7 packages/mermaid/src/themes/theme-neutral.js:439 \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":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c03796566ab1b8661980cd0dc5273ceb9b4d93673c359aaea849783949f639f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/mermaid/src/diagrams/gantt/ganttDb.js:319 \u00B7 packages/mermaid/src/diagrams/gantt/ganttDb.js:413 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa2548968cdc380f0dfa5f7b26a0ce83dbeebc8ce1030521cb5eb9de6dd0a25"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:321 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:150 \u00B7 packages/mermaid/src/diagrams/user-journey/svgDraw.js:118 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"267a031586304e22e7c1863690f2fde1296078ca6a7ee39a31e0169006d56a0f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:399 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:524 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:649 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1008 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1d1bb02ce96f123d03075f80455d9a2ddd7171dc2515c84082219dcf5fcc14"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:532 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:866 \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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"70020be75816959449da2309ec6f1440d0d86482782b35abdc9d07fa55d80d02"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-forest.js:80 \u00B7 packages/mermaid/src/themes/theme-neutral.js:92 \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":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5347e4442f47cd7126c70c8d24856b3669dc2e4eae1abfd1c24072d765d72b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-redux-color.js:97 \u00B7 packages/mermaid/src/themes/theme-redux-dark-color.js:89 \u00B7 packages/mermaid/src/themes/theme-redux-dark.js:63 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"7deb30551b85a4926d7b506b99ccbd4d3fa0bd4c6c866edd2206ec5106f7ac21"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:697 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:351 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2cb2d377f8e54642bc733e9ec620d60a489c9fe74b21e6eae2cd2bcc1a8aef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:789 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1139 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1248 \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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"927bb512c53a2ad05599bd3ac99a2eaa6ab19bce920a2b51f8ed907dc2ad8972"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (27 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/elk/lineHops.ts:26 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/lineHops.ts:9 \u2014 the two spans are one implementation copied and then locally edited \u2014 174 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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/lineHops.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"56846f25b4cd5d88881d9bce905937389aab687fbfd55e0728a775da4ef242e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1962 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:2056 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"7830f342073406c7bbe872912681fd2acaef1442077dff89328598134a95569f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 4 locations): packages/mermaid/src/rendering-util/rendering-elements/edges.js:144 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:172 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:200 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:228 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee9c5dcdbb309a411c9475b6311b176142f06d0f88c38a85d9bdc974ededbb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-dark.js:326 \u00B7 packages/mermaid/src/themes/theme-forest.js:303 \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":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"91372a0efaf491c5a71f6b70b97850d6020d513a1b3482d5ce68801a94c83ed5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1735 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1779 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"833cd16b9078e4b512ef61a9faaa0980c1ca61158832a1435fd7812ac9285f5a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classDb.ts:343 \u00B7 packages/mermaid/src/diagrams/requirement/requirementDb.ts:255 \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":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c51aa58bd1b7bce1a4f7f976c6b265e599dbada3888142fed6ae118b2c1cdd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:609 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1695 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01e818582e33ed75290b1cdaf5e0cd2d7ab82be6a32c92c0c68c352535d6b86"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js:127 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js:198 \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":"packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"153f2325759f3a159141d91bc0a6f656d3b4c807770a70d463ca4c9e1977a375"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 9 locations): packages/mermaid/src/themes/theme-base.js:319 \u00B7 packages/mermaid/src/themes/theme-dark.js:288 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:287 \u00B7 packages/mermaid/src/themes/theme-neo.js:274 \u00B7 \u002B5 more site(s) not listed \u2014 the 9 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 9 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f15e77fd2810dc85664ab5383fbe4e5eba76e7d1d8be09196124a4c1eb778dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-neo-dark.js:137 \u00B7 packages/mermaid/src/themes/theme-redux-dark-color.js:178 \u00B7 packages/mermaid/src/themes/theme-redux-dark.js:147 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3384f918554bf2f3aec47648d7ad99d096574aeb1408cf6281149fdbeb486ba1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classDb.ts:523 \u00B7 packages/mermaid/src/diagrams/state/stateDb.ts:658 \u2014 the two spans are one implementation copied and then locally edited \u2014 164 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":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d750a5072c16462496a96abb7e98bac43121e5373d53b91bb857a2f5789bfd4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/mindmap/styles.ts:11 \u00B7 packages/mermaid/src/diagrams/timeline/styles.js:99 \u2014 the two spans are one implementation copied and then locally edited \u2014 173 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":"packages/mermaid/src/diagrams/mindmap/styles.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"32190ef5c39b238c49a2fd18093d46710e736b399773ce2c910c139d223e7c99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts:97 \u00B7 packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts:143 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"848bc86be1da21b69dc51e6b1affe6cb7955a5f06f2abd41f5f2c4510382eb51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1167 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1948 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:2042 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83b237b5008b63d4d832908af6bd445da5c32f1b48bd9409da2b00d7dad893d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:703 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:784 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64bf2fab981d8f2cc512fb6d89c2baf0569d30ffd95915a9177244a9588061f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts:71 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts:72 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts:86 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe8d50014b728fb57d6fecac777cb16cd1b64171d0178672c1164e19cec8728"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 8 locations): packages/mermaid/src/themes/theme-base.js:378 \u00B7 packages/mermaid/src/themes/theme-forest.js:381 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:346 \u00B7 packages/mermaid/src/themes/theme-neo.js:332 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 8 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cdb9a8891bcbc5ee340a10c992dbb67f0768836676727f57d6c1d2ea57f23b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3 locations): packages/mermaid/src/diagrams/architecture/architectureDb.ts:81 \u00B7 packages/mermaid/src/diagrams/architecture/architectureDb.ts:118 \u00B7 packages/mermaid/src/diagrams/architecture/architectureDb.ts:160 \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":"packages/mermaid/src/diagrams/architecture/architectureDb.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"195ecedf7c02a690ec112bd8c178165486538aa0dab1c617118e8254bf65fbec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classDb.ts:449 \u00B7 packages/mermaid/src/diagrams/gantt/ganttDb.js:745 \u2014 the two spans are one implementation copied and then locally edited \u2014 144 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":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ba7b098e92ce8012daeff6a2dcf467d01cbd9359b8ac15b3e448e3c619ba39"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classRenderer-v3-unified.ts:18 \u00B7 packages/mermaid/src/diagrams/state/stateRenderer-v3-unified.ts:19 \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":"packages/mermaid/src/diagrams/class/classRenderer-v3-unified.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf305da710e5ba6b457ce9c13159b83546dbd44110d636007cfb9218c3f6ee8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:112 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:148 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c4f47f675529b95362e519ef77ebcf95a57bd16bbd77ffd65a4b0b914126d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1927 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:2021 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae949f601a35053d0e53e58610716ad5656719a60772aef8f393a12a8b8373d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts:46 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts:40 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce701088c0b0df36f8e649ffcd8bf79c57a9ee8f2cd34e353fa78e18aed3be87"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 7 locations): packages/mermaid/src/themes/theme-base.js:29 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:65 \u00B7 packages/mermaid/src/themes/theme-neo.js:49 \u00B7 packages/mermaid/src/themes/theme-redux-color.js:102 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 7 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":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c7b1fac8426291130f1fb84a0fadb149a805945fce3a9b4966a9a122c889d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1441 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:968 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1441}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a39689ba27852d1430dd4f264a5bdf2959aabc7cfbc07553fdccdb375639cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3 locations): packages/mermaid/src/diagrams/agentflow/styles.ts:102 \u00B7 packages/mermaid/src/diagrams/block/styles.ts:59 \u00B7 packages/mermaid/src/diagrams/flowchart/styles.ts:122 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/styles.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc0b7aecb6c288d1b2d3a2e9812e991d8ab7ea762fae1164ca0a2392bd5849e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6 locations): packages/mermaid/src/diagrams/c4/c4Db.ts:156 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:205 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:265 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:322 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 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":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"266f413d8e2415336f396537b6195100aa8e2aa7890b086077e48c3027277936"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1044 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1069 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52e124a6aff9b1858b0b2712533bf446d15090cfb6481b7f08e640f36df8cc9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bang.ts:40 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/cloud.ts:38 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bang.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb82de5d9c7166da2978bb0c9db276077b910f903f67eff4278bcc42d5319986"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts:43 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/hexagon.ts:56 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d745c85a6f30b836d2ccdb0e9a4b590bf8a3f527e4fb7f52dd7b89dfcff4bd01"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/hexagon.ts:66 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/invertedTrapezoid.ts:38 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/leanLeft.ts:32 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/leanRight.ts:33 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/hexagon.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc317b2e56d0e3631348a48716f2c38b1951b1d22f4f4a3987e2750095d4f60f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1518 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1066 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"5318d344b100bb0260a1a000ab1a85d2a5279dde223d87ee88043614f7e4026d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1780 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1351 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec52e7ec672bbe7fe731d9df66fe30515cc6a5a9fb46679848bdf76035003f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3 locations): packages/mermaid/src/diagrams/c4/svgDraw.ts:406 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1882 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:2028 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"860c2745da687695459559a5baabbc8e5f9c59e42950cf17cd53d67cd3282f13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/svgDraw.js:18 \u00B7 packages/mermaid/src/diagrams/state/shapes.js:420 \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":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5bcda9537134b2734acf837f5f4d1667153f7197db601ad1161101e3e701bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:750 \u00B7 packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:781 \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":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"27155fb327ac5776ac9450ed23337fad9a50ad33d26f61a5a54e017063a19eb2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts:38 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts:25 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61eb073d9181b4f031eefed7bf35dd35c3b22f809d7b486a9ad9424415dc737"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-redux-color.js:463 \u00B7 packages/mermaid/src/themes/theme-redux-dark-color.js:481 \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":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e63f5b4c461efff14ecb4eececff90e32885ee61a11e9cebec70e385f5e0d5f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/mermaid/src/diagrams/mindmap/mindmapRenderer.ts:90 \u00B7 packages/mermaid/src/diagrams/timeline/timelineRenderer.ts:239 \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":"packages/mermaid/src/diagrams/mindmap/mindmapRenderer.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed202610146de7165375a433eaf4ef29522a84470829300bf54a206f748f91f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:1847 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:355 \u00B7 packages/mermaid/src/diagrams/user-journey/svgDraw.js:311 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1847}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b3dba98561846fb86be882a2fbd843e1fb0f06565c76a0cff1a8ed588d86a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1107 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1144 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"801d73fb8abc3a696776f341096d954918abe67e2ec0c2456400042201ec5b9e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1469 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1548 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1469}}}],"partialFingerprints":{"codehealthFindingId/v1":"d800f710e7cf81a49d9d8e4e1e11250c2935d153ad6958fe65dcdb5cb0d0dc51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts:80 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/waveEdgedRectangle.ts:76 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4db67474500958b0c3256b5e027990cb1bcd89cdf8afdd642a8471ed0c5453c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts:131 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts:197 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b97823275e80a7e42073c22bb036960dba08630885520dd2cfc8a7d98635c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-base.js:255 \u00B7 packages/mermaid/src/themes/theme-default.js:295 \u00B7 packages/mermaid/src/themes/theme-neutral.js:283 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"db91ab608af3bf5b471ba3056cfc3e1328db999a0fe01ceac36f3da66ad83169"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3 locations): packages/mermaid/src/diagrams/railroad/parser/abnfParser.ts:23 \u00B7 packages/mermaid/src/diagrams/railroad/parser/ebnfParser.ts:26 \u00B7 packages/mermaid/src/diagrams/railroad/parser/pegParser.ts:23 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/railroad/parser/abnfParser.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4f0dfee00a78a14a5fad50fbc034f8cc0982aa592ebc2afac97412e3e164a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:955 \u00B7 packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:975 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"31396e022949349bfb12300d6a33b46c3705f31b4610a37f7d4e807338fe184b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1219 \u00B7 packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1278 \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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2279a99c6c2c7dcb895f70c7c9d8cbe165643d9ce8d899549f7fd1257b7359b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:670 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1029 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcb68f343f596ee8efaa1fc284a9aa1f05c12e5194392cb21afe3a227649a6c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:999 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:1044 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"a914a711616d83d260360251997ddf9f8503472b198b7ce5b90a1ab5e8cf30cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:570 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:774 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e52b24cd92e01d9834e093ea34a5f7cd864c41f68228f89db06fe148df60ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts:112 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts:132 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd04de3192ab89b2405df6d60233b98523cafb710c8650cf24bb83cd0f0ce60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts:9 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts:28 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d88465a6ce1706c64c83669f17c43bb0c9fb53d9e8d2180f884ae47d96c898"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts:89 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts:61 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"de483e1e85d69d694ffbc544b9ec88f11c8815ec5021d03fdc9e83be6ae60112"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/stadium.ts:105 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoidalPentagon.ts:51 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/stadium.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9dfd75104c92c8e83b1f1030e7f83c92149519be4d884395336f3ed4c38e254"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 10 locations): packages/mermaid/src/themes/theme-dark.js:447 \u00B7 packages/mermaid/src/themes/theme-default.js:489 \u00B7 packages/mermaid/src/themes/theme-forest.js:454 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:403 \u00B7 \u002B6 more site(s) not listed \u2014 the 10 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 10 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64617ad140320729d016bfaca90d6c21b187839a0afd3bffcd5cb5543420c41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4 locations): packages/parser/src/language/railroad-abnf/valueConverter.ts:6 \u00B7 packages/parser/src/language/railroad-ebnf/valueConverter.ts:37 \u00B7 packages/parser/src/language/railroad-peg/valueConverter.ts:37 \u00B7 packages/parser/src/language/railroad/valueConverter.ts:37 \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/railroad-abnf/valueConverter.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"095d9fec4eda9830eebee3e8f88c7c882683d8744aa8e132e2cb9a7f83a7c789"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/conformance/runner.ts:243 \u00B7 packages/mermaid/src/diagrams/agentflow/conformance/runner.ts:281 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/conformance/runner.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb393035f993489dd45eeb8d306c38cce4c9b374594ae474f0552cd7dc399a41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): packages/mermaid/src/diagrams/gantt/ganttDb.js:157 \u00B7 packages/mermaid/src/diagrams/timeline/timelineDb.js:26 \u00B7 packages/mermaid/src/diagrams/user-journey/journeyDb.js:23 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d41a997ca01f2212bd15a4428bae454a658744525a67ab9dca6afa7925b8c95"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts:367 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts:452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ae2f2bc8e58c020082b01d2422e24b6be6fb9c9dda632a42f56f1691f44676"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:969 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:1014 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c082a95f8262ca70908a787690f567b06be3b299a8d62b3198ce5ea382298e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/mermaid/src/mermaid.ts:353 \u00B7 packages/mermaid/src/mermaid.ts:402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaid.ts"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a108322b3ef5804e4171456a3ef4a68195a66a175fd730217c78019df705a4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts:389 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts:419 \u2014 the two spans are one implementation copied and then locally edited \u2014 110 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d356c586946b09d0f2bbe189827f6175033827e40aac2ccdbe16121531a293d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/edges.js:1106 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts:389 \u2014 the two spans are one implementation copied and then locally edited \u2014 171 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":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82927f4279e90a17fc64c7af9f10a4fac6fc1219a9050b3a9bc8ea5994a62e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts:118 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/lightningBolt.ts:30 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/rectLeftInvArrow.ts:39 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0ef317781ccef90d05976f3b18ed2bdce676e576af3a37214be75646534e2d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/choice.ts:23 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/lightningBolt.ts:29 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/choice.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b61ddaa857f6d76df2b56ec5f7bd86b5d7e8287fe546a8849fca852b6345cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4 locations): packages/mermaid/src/themes/theme-dark.js:4 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:8 \u00B7 packages/mermaid/src/themes/theme-redux-dark-color.js:8 \u00B7 packages/mermaid/src/themes/theme-redux-dark.js:8 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"563a7fd6d5d22a9f9b2fa23eae036c3acb2194dd16972e1a7f9e9c88c3730938"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/renderer.ts:10 \u00B7 packages/mermaid/src/diagrams/flowchart/flowRenderer-v3-unified.ts:10 \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":"packages/mermaid/src/diagrams/agentflow/renderer.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ceff65fbd8d1459d8deac2255ee62cb3b2e9254323761c85902c776ceaf79e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/styles.ts:18 \u00B7 packages/mermaid/src/diagrams/block/styles.ts:17 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/styles.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7d090912ecfa58280f533f6f21685c10992d47bac48b2695c8334dac4d88ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): packages/mermaid/src/diagrams/c4/c4Db.ts:195 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:255 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:417 \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":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8e3ab1f2842945187da9f2379505f1c171eb0ae2d3615e10f2921e232ac029"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/diagrams/gantt/ganttDb.js:472 \u00B7 packages/mermaid/src/diagrams/gantt/ganttDb.js:530 \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":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"a667a04d062e63ecb44b87fb83286bb8174f50fe9c434af6d0c0b02e62be62ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4 locations): packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:1022 \u00B7 packages/mermaid/src/diagrams/mindmap/mindmapRenderer.ts:90 \u00B7 packages/mermaid/src/diagrams/timeline/timelineRenderer.ts:239 \u00B7 packages/mermaid/src/rendering-util/insertLookDefs.ts:55 \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed986d3520ab7141b612a70bcd2507042b33e466a641911041087ba0c64bab3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/diagrams/railroad/parser/ebnfParser.ts:73 \u00B7 packages/mermaid/src/diagrams/railroad/parser/railroadParser.ts:51 \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":"packages/mermaid/src/diagrams/railroad/parser/ebnfParser.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"134e63a6a48438f44c21dfbec096cf85ff895b512bbd283bfb2c3be562a0ee34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:113 \u00B7 packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:144 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/railroad/railroadRenderer.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"35cecf9ba3ef8ba9564322cb88164475bdec6a32b71f38d0acfc2821a0519624"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:624 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:764 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"2453554c7fee9b58b9fecaac5ab878d354102272d53bfd20d48326c80b3a8f46"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/components/chartTitle.ts:21 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/index.ts:25 \u2014 the two spans are one implementation copied and then locally edited \u2014 80 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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/chartTitle.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c9e27f83be9a19f85c580f1f2898d8d948d8d4ff1f53eea8bba3b8cdaacb8b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1894 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1989 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01c578dcf84d382782fe9fe78505a261c032f6fc32372f381ea3567ca952acf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts:147 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts:204 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e80fd7a1d1d96383a2eb988d6acf95128e2e65611e5175d37bafb776b2e262e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:478 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:964 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"826c7a5ae27b13f41bdfb2ae1e62eec34cac9c6c37bb4b5ae554df16bd864dc1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:311 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:329 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f1353b154318bc92cff627cca4fd24195eda3352c3d168a2af0a949d4a7b59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:731 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:811 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80ed0f05ddac1ab3198c66a845f0f3f74599b8a93248edd06c57fb82205b1d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseActor.ts:190 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseBusiness.ts:49 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseActor.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab60cd6d49c721029ffb79a352ee1a4eea2d0afceea3d23676e60d07e30ed240"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-base.js:84 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:124 \u00B7 packages/mermaid/src/themes/theme-redux-dark.js:134 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11738945a1da85392ff95941c5139adac4bbbf98a43367e961d1d25c7f477e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/mermaid-layout-tidy-tree/src/layout.ts:219 \u00B7 packages/mermaid-layout-tidy-tree/src/layout.ts:237 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"67039cda14cd897b5459d9308e09d403763cb0e1698d3b97f005fbb0931ada1d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/mermaid-layout-tidy-tree/src/layout.ts:406 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:513 \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":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc779218d5672f6ddb3153532b618ccc25d5b796ac1051df979cbafda5a1654a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/mermaid-layout-tidy-tree/src/layout.ts:537 \u00B7 packages/mermaid-layout-tidy-tree/src/layout.ts:560 \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":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c02fd5f052d42289aa9aa423c2ad4e1485cce8075ce0ac14a921208841df7a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): packages/mermaid-layout-tidy-tree/src/layout.ts:628 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/layout.ts:48 \u2014 the two spans are one implementation copied and then locally edited \u2014 87 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":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01c47fdf4bf9e0c325877d747d130cb1e87ebfd1966d728bc502cd55730ea23"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/mermaid/src/diagrams/er/styles.ts:34 \u00B7 packages/mermaid/src/diagrams/requirement/styles.js:19 \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":"packages/mermaid/src/diagrams/er/styles.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ef8c0db492e848b9c1d1e7d455b1e699273fca434e007b3ed1c1c911e77633"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1167 \u00B7 packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1204 \u00B7 packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1298 \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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dee09e174df6ec5820c0b9063099402acc329e9a7a3b9aed3c49fd26053ed5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1273 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1654 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"30999023d247b204caeb1f34e1ee6963b3e24b3f7a89480557f70e70873d4cf2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2306 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2326 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":2306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68dfa37e47494f9ba22cc35ced9430a0d3480af01c4345f2b5d2c2c35e3cb84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts:78 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts:95 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa63391fd999a3c38f3c6283ce4bea44e55f17fdec05b8a4ed28ea33d57dd2d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7 locations): packages/mermaid/src/themes/theme-base.js:350 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:317 \u00B7 packages/mermaid/src/themes/theme-neo.js:304 \u00B7 packages/mermaid/src/themes/theme-redux-color.js:376 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 7 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":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce3c1c82f9bc8fc16df5c1c34bd43b1a0ad9116c9bca2dcfa9f0ea97023194c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): packages/mermaid/scripts/docs.mts:439 \u00B7 packages/mermaid/scripts/docs.mts:558 \u2014 the two spans are one implementation copied and then locally edited \u2014 73 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca75aaaaca665653c5dc12590c23ead82a8000bbe86c244ebbff7ba612bf321"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classDb.ts:867 \u00B7 packages/mermaid/src/diagrams/requirement/requirementDb.ts:333 \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":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef6799e133b1f22dbf66c5c4d252ede626ce37cb22d2e1489974881e1734538"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:78 \u00B7 packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:120 \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":"packages/mermaid/src/diagrams/flowchart/flowChartShapes.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2004325ecfdb575dd2a06dffded4b17b5e7a604fc0b2af35471f37a87d5c0ecc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/mermaid/src/diagrams/gantt/ganttRenderer.js:343 \u00B7 packages/mermaid/src/diagrams/gantt/ganttRenderer.js:449 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25bf326450a97339effa7c0e8d3237f5ed6a5423a6819f54571eef3852f6015"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/mermaid/src/diagrams/gantt/ganttRenderer.js:668 \u00B7 packages/mermaid/src/diagrams/gantt/ganttRenderer.js:737 \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":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a83bfe7bcc20559a92f8f07be4ba16bbafb451aea353091504a30d6339bdc4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts:153 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts:183 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21f07b176ef62202012746d86e07e8e0993d52a19093595f906e40bc99ee5e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts:158 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/intersect/intersect-rect.js:28 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2600631dee893184030c9596a451fb0bc8b271814cf9177dea4d793e0ef694"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2443 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2479 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":2443}}}],"partialFingerprints":{"codehealthFindingId/v1":"240c0d96b910d201ef92b5c9ad07f0a0a3dc837d2f8c6c61ff7c6adbacdd3261"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters.js:596 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/collapsedGroup.ts:124 \u2014 the two spans are one implementation copied and then locally edited \u2014 120 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":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"167613c14faccb27d734a14a0f891b75d5fe5aaf75119aa9980d45716015d884"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:406 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:443 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:481 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:514 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6d24bfd734bfd9cb6fbcdb373b2292aa8e4595550e5432ddb95258e92ce9e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts:61 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/hourglass.ts:33 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"604431f77f3548ba6a2a57de2a730123857175ae3296ed0676940e10870f220c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/insertPolygonShape.ts:7 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts:259 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/insertPolygonShape.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6161ff2f5bc5288b75aaf1c1e80bdcda247f9d9c02f88366ee7f9ab5706c0bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-base.js:232 \u00B7 packages/mermaid/src/themes/theme-default.js:272 \u00B7 packages/mermaid/src/themes/theme-forest.js:235 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"652d8a807e6e11085f6d03ec0f256589cb3941d6a604f77e7379eab97142828e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 10 locations): packages/mermaid/src/themes/theme-base.js:453 \u00B7 packages/mermaid/src/themes/theme-dark.js:444 \u00B7 packages/mermaid/src/themes/theme-forest.js:450 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:399 \u00B7 \u002B6 more site(s) not listed \u2014 the 10 copies are spread across 10 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":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca10272bde64621f207ac6dea7d16379d43e7bfaf2e23982001279981978c47e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-dark.js:79 \u00B7 packages/mermaid/src/themes/theme-forest.js:80 \u00B7 packages/mermaid/src/themes/theme-neutral.js:92 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cb8836ef78ba8878f51b47734b952693937404746fee6fc55ea9ff8b623a29"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid-example-diagram/src/detector.ts:3 \u00B7 packages/mermaid-zenuml/src/detector.ts:3 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/detector.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"4586d4b651e90b17bae2dfb26da511708420ad9dd6d99b765114724fb1581abb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid-layout-tidy-tree/src/layout.ts:579 \u00B7 packages/mermaid-layout-tidy-tree/src/layout.ts:594 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efb2a62464a7b0796bc8181de59adda645264d4e9d31113d527fdd9a8d45028"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 19 locations): packages/mermaid/src/diagrams/agentflow/afDetector.ts:7 \u00B7 packages/mermaid/src/diagrams/architecture/architectureDetector.ts:7 \u00B7 packages/mermaid/src/diagrams/c4/c4Detector.ts:7 \u00B7 packages/mermaid/src/diagrams/er/erDetector.ts:7 \u00B7 \u002B15 more site(s) not listed \u2014 the 19 copies are spread across 19 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/afDetector.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ae5237fe9790ff32c1793b43bc82c1f138ed7e8e579e241a45fa531f6e50a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:191 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:102 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d60c7e37e636c1df1ba3799bcaa68cf21ddf40c93cd8ecb3f43615e123a3142"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1485 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1028 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"64582f90b29d07c68f0c6005d69b1d7ce10d90b84d2a05e9dd3f1172692bc013"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/diagrams/block/blockDetector.ts:3 \u00B7 packages/mermaid/src/diagrams/sankey/sankeyDetector.ts:3 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/blockDetector.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"e248a7abfbd381c5bd3bdbdaac80c89da108dff65af9b840cab1148ab55dfe51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/diagrams/c4/c4Db.ts:315 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:366 \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":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"321e05a1bc69c70d04e2d22b95bf74ed03f10dcc446fa926b7c0a9bc31af9e65"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/diagrams/c4/c4Db.ts:354 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:405 \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":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60840090d0c5cc89f41213ded5438d143926a323f32883fb676be565a1acc6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classDiagram-v2.ts:8 \u00B7 packages/mermaid/src/diagrams/class/classDiagram.ts:8 \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":"packages/mermaid/src/diagrams/class/classDiagram-v2.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b4097bd51f8d622f5f30f168530b4ad76367f0550790d9c3fc5341b2ce19b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:489 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:616 \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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0cb237249201a600069ab496c09e8bd16b4b949cee7618780085499e2c1dbd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:588 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:724 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71367801da155171d98ec81d9566e4069b4ad556950f70f065a99e070d9c536"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/diagrams/state/stateDiagram-v2.ts:8 \u00B7 packages/mermaid/src/diagrams/state/stateDiagram.ts:8 \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":"packages/mermaid/src/diagrams/state/stateDiagram-v2.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ce4f5a79ef45d192a628cc0eb58d84ba33795f07f8ab7adfdac98fe983d721"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:211 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:288 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:365 \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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b9cfba9f934440f1a9e96eefb574d3f801eabe501c06245bb1403ea18ce2e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:251 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:324 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:404 \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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a410da521919dd4efb8947f18c78abc4ff950377a2eae524792376d7adf57c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js:377 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js:267 \u2014 the two spans are one implementation copied and then locally edited \u2014 101 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":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"274a31cb066259744ccd26deb62d61dc9f4d4264d7713a7754d0bfa977c9b1be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1718 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1762 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33c7d6ba26c6e1e94b2e0ed53913c79f64ebd2c5e1072ad036c749778faff44"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:428 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1662 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"113c8cad756a81d1b8668f510e6d1bab7dbe558da7a8d31914a0484c12418e55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:508 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:538 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee5981f0ab7069b363defa2e7c0042ebafb77f1b9eaddb557de5d0f0bed5af0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:627 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:671 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad61f1b2c268dec100148d8b8718ac9fc958e43b07e97a47997e983debc5e36e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:601 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:667 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"61098c39d377349c8763f74fd17794e0316d280d0560cb8ca496bc2aad4a6120"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-neutral.js:163 \u00B7 packages/mermaid/src/themes/theme-redux-dark-color.js:268 \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":"packages/mermaid/src/themes/theme-neutral.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"809af5ed1c5d672a631915f59063aaa9cf9a872fd00b84c450eedc4fa0c9bf1e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1133 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:737 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5687379ad234f6d3155bfd1ce5e95297b6aae6c22869cb56b8c90ae44d0f60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/diagrams/c4/svgDraw.ts:269 \u00B7 packages/mermaid/src/diagrams/c4/svgDraw.ts:284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"874c78a95d7f15dceb9f84c3b62ced4dac4e7258ec9c4166949d26003fe5895c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 12 locations): packages/mermaid/src/diagrams/cynefin/cynefinDetector.ts:7 \u00B7 packages/mermaid/src/diagrams/info/infoDetector.ts:7 \u00B7 packages/mermaid/src/diagrams/ishikawa/ishikawaDetector.ts:7 \u00B7 packages/mermaid/src/diagrams/packet/detector.ts:7 \u00B7 \u002B8 more site(s) not listed \u2014 the 12 copies are spread across 12 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/cynefin/cynefinDetector.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe0b1a5de5b0dfe23a3f1c2c77d974a1a395dca4b6a6ee0bd9438af1f2e3a93"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:1259 \u00B7 packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:1280 \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":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be90940514954f19871d3f188a6f70fa997a094dff1a54cdc1835c2afc3b7fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts:196 \u00B7 packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts:290 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"797743015a441aaaeebbbb1f2a42b6029758b1cd8c561db0cdde7cc0fb0540f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:1688 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1707 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:2083 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:2098 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cae52d50a8047d248a66e73745f97ef4deb5ebb0ef0776c289f239b99ef7eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:93 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:108 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:123 \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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"74caa7d4269fb22aa6e29547edc5c35b982304b4ea8185bcce256a04f9759c15"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:747 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:761 \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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92f89d62354e3016ad49cf6e88612a36724ddd60a922680619886a11e74d0e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/ddlt/fixtureSizes.ts:116 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/ddlt/fixtureSizes.ts:134 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/fixtureSizes.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9778af6c7b11e5c83fc86e9cd7b809604905dbd1eeb2fd72b555d381296df42"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts:199 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts:213 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5f907d233097d3704dad714af0eeec0de30deb9e88fa7ab05b01949002cf68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts:461 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts:474 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"45603d9bea015a41d3e303b4a0b6a244c0b55f827cc828fd5423997ca5c4058d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:178 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:210 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a24a62dfd5e3021956480d7b1322e88747fb9cce8074be38da7809c449d36c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:738 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:842 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb1b5673390ebb1c652daabe67833b80256843ee6dd89135210da4c81567200"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:830 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:1194 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e822a5f5c119658dceec5b858efe000a16c2a1e529ac46f64c693ac267c85a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:553 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:608 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e9762cc182dd763003959e68b59e217f145874eccdee01893974a72d440446"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:735 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1853 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"6142a9c249c234b5bc35a80e417ad7e2669156ebcefed0fe8abf2a2cae70aa1b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:128 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:187 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:245 \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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dd30042c5ef83848aa5075c905d40a71532f9fdb9ee0abb6e02417278ec885"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:171 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:229 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e26cbf6415522a29be92cb884fce3d89add7de7d2bfb22d090ccdec125382f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:831 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:854 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e406fa7ed55aa3cd2a26828dc3c8c6d8394b4dda56696ed66527d8c4bb02cfa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts:119 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts:172 \u2014 the two spans are one implementation copied and then locally edited \u2014 96 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f891b04ed9b85498628a4ecae09835ee12e3fabf778eb1ff0b69d01c2ab9a890"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/crossedCircle.ts:43 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts:88 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/crossedCircle.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3459596e9b501ec60857debef1205fe20ef5e184f51af658c1b77c3155383bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts:92 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts:132 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8405fd5eacae5601a46b1dc593fb1eb96dad38e773a617ec72540b672740b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/halfRoundedRectangle.ts:66 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/hourglass.ts:33 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts:49 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoidalPentagon.ts:51 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/halfRoundedRectangle.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2a63985c51d88bae5b9cb61e2d41e1deff6bd4942e8237d6b4c5e40766a251"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts:10 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts:10 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts:11 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts:11 \u2014 the 4 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"484551032ba3dbe1d1ed11d15f3fea95e444bf86e128cc7fa756f812f6917f18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts:14 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/waveEdgedRectangle.ts:14 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d9ea418329a2a302fd9ed3bdaf26a17fb90e30830b87ee972a9b12d33f8c73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/mermaid-example-diagram/src/mermaidUtils.ts:6 \u00B7 packages/mermaid-zenuml/src/mermaidUtils.ts:7 \u00B7 packages/mermaid/src/logger.ts:5 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/mermaidUtils.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"96893ddc70db39741bd4baeeabaa42aa5e85752571e1ed2cc90de734fbdbc8da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1806 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1380 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0de2be4033fc6d52832798241036a326d472a6994861511820026b6867db61"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:2024 \u00B7 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:2049 \u00B7 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:2105 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"d227c72ec28ae37993caa81cb5eef4c77ff477ede2c2a99386fc80f930324d0f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/architecture/svgDraw.ts:99 \u00B7 packages/mermaid/src/diagrams/architecture/svgDraw.ts:112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/svgDraw.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73d2d9ad858df8b692840ecfede68f0c66a257e09e6723d0d09570970fa9806"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5 locations): packages/mermaid/src/diagrams/c4/c4Db.ts:516 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:532 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:548 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:574 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8098d58314d55f3c74f659c526b9ed05e56ec791bdf629822784d5d3c17995e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/mermaid/src/diagrams/c4/svgDraw.ts:166 \u00B7 packages/mermaid/src/diagrams/c4/svgDraw.ts:181 \u00B7 packages/mermaid/src/diagrams/c4/svgDraw.ts:198 \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":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4292f873e72db9ae186e6649206bc1f9dd7370e6b07e41139203aa5d3906cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4 locations): packages/mermaid/src/diagrams/c4/svgDraw.ts:413 \u00B7 packages/mermaid/src/diagrams/eventmodeling/renderer.ts:35 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1889 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:2035 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e272fcdff9d3b432606c401a7eb9273f1b748f4ec91a8ab4d1eeb470f0e906b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classDb.ts:685 \u00B7 packages/mermaid/src/diagrams/requirement/requirementDb.ts:228 \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":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"5faf084b49bef67ddc87b3043ce2fcc5e8f705e95602289870e6bad324511f8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/mermaid/src/diagrams/class/classDetector-V2.ts:7 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDetector-v2.ts:7 \u00B7 packages/mermaid/src/diagrams/state/stateDetector-V2.ts:7 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDetector-V2.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12e684cf8b8382db8a8e665723b54a14131923ceb97d8d0ada74f67d7d2ba11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classRenderer-v3-unified.ts:64 \u00B7 packages/mermaid/src/diagrams/requirement/requirementRenderer.ts:27 \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":"packages/mermaid/src/diagrams/class/classRenderer-v3-unified.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"515097b3a52208d9a8a96e3c2f8828cd07dd0424199f6dc3519d795fad14d0b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/shapeUtil.ts:165 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts:243 \u2014 the two spans are one implementation copied and then locally edited \u2014 75 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":"packages/mermaid/src/diagrams/class/shapeUtil.ts"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a553d8a14fa59fba259fc86c851213c95a68b2db0a02122da6320904b0fbf9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/svgDraw.js:142 \u00B7 packages/mermaid/src/diagrams/class/svgDraw.js:302 \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":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03b26e55f20240be2751e8613e3d50d226776a8c8c25ce51848f713d7465016"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/git/gitGraphAst.ts:275 \u00B7 packages/mermaid/src/diagrams/git/gitGraphAst.ts:310 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5ad21afd3337d26ffb8d65981eee59e2992911c7f9763d7da8ce5daa8294e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:1937 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:2048 \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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2155c0ad99e1315558bae9bc300fa1dccfe45eaae926658c1b794cce527ffef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/state/shapes.js:298 \u00B7 packages/mermaid/src/utils.ts:536 \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":"packages/mermaid/src/diagrams/state/shapes.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a3a3a6e3b4c90b6645804861c0f3d0bb0e4e54ab37244f11993a325d1232dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/timeline/svgDraw.js:512 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:571 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/timeline/svgDraw.js"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"4685de76589c3787cfe19bc70a2d38d95996eb838d708cf2327bc2ce152e1f41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/treemap/renderer.ts:227 \u00B7 packages/mermaid/src/diagrams/treemap/renderer.ts:296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treemap/renderer.ts"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"075a4b5cb9d1b77d945181c50608fcf9f34c1b12281fa8b160cf5dc53168dbbd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts:708 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts:748 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd00308d8562b332c96687768c6a74cbc266fcdf97fbab4361f107c2b8807aef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:409 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:421 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:433 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:445 \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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"973504feb9f7d759d68cc8e0fb829995c25f79f90371bd3a7492f8112d50b4b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:88 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:135 \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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba44e24a67fd176e237b20fc19e6083fa1848451f2ccce0ba32bc2c9f226547a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/components/chartTitle.ts:18 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/legend.ts:40 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/chartTitle.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"af62ab792649aec74237a5967a59f1568538614adeef28a4247e4bfee46d8a3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:123 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:199 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bdf9ce11dac7d27f9f2dea6a52cb38f6a0f2702ba8ff55c254b015cf717076"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:817 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:1172 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f74327703a21b5b753497845ab832078f1faadfc59480fe551d906a4fe81fae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase0.helpers.ts:158 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.laneAwareCompact.ts:16 \u2014 the two spans are one implementation copied and then locally edited \u2014 117 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase0.helpers.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebec19d15a8f589b5ce15974af387aab44d687909c33d7ed225e29c3369a78f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js:110 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js:183 \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":"packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c203ed15fd417622d04462c4fbeb3f40eff9ddf905787a74f207c9783585145a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:918 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:940 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"560be57bdb45e86137fca38ceb504c4f2e6126b2d42721de7a90b56cfba8a5f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnDataStore.ts:46 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnEvent.ts:47 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnGateway.ts:40 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnDataStore.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51c6be1bf990aef61f7c3ae44aa0573c67a915338dc17a644528f69c1f6b785"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/forkJoin.ts:32 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/note.ts:26 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/forkJoin.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e3c2ca9bdb176620e4f926548dd39887150eea491526d009ac88ea032fc05b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/rectLeftInvArrow.ts:36 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/triangle.ts:39 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/rectLeftInvArrow.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a31fa042d545eb678f14f195874637035d3cc1b95f8d740ade8a2ed158a4d5c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts:29 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts:31 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4a16fc5f5d8d24e6d8fdc7eeb0146b6669a9a2669234746d5df248405f3356"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-base.js:144 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:178 \u00B7 packages/mermaid/src/themes/theme-redux-dark.js:192 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d58331ace2495a62be5807498ff3e14b926c3d32ad0a4a9a24693dce9bea7d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:426 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:231 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42180ab56d2a400e7c7d2aa64431731c741c827cd7779f12035d3e5c1ba06ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/diagrams/architecture/architectureRenderer.ts:55 \u00B7 packages/mermaid/src/diagrams/architecture/architectureRenderer.ts:71 \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":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8a0911eeee82c9b5ccaadc48eeb81824bef012fc903d38f5ef812554b18946"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/architecture/svgDraw.ts:26 \u00B7 packages/mermaid/src/diagrams/architecture/svgDraw.ts:194 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/svgDraw.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a195a97c52846c9f50d5f805c62d5ed468359a4642a41120d966e39b4b8955"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): packages/mermaid/src/diagrams/c4/c4Db.ts:128 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:234 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:294 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:458 \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":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f250d843f47889cfff87bd1887a482862b6ee798876ca7ec578bccd777bf8f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 19 locations): packages/mermaid/src/diagrams/class/classRenderer.js:36 \u00B7 packages/mermaid/src/diagrams/class/classRenderer.js:48 \u00B7 packages/mermaid/src/diagrams/class/classRenderer.js:61 \u00B7 packages/mermaid/src/diagrams/class/classRenderer.js:73 \u00B7 \u002B15 more site(s) not listed \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classRenderer.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabfcbfad1837da349ac8475961e566a172ca76dadc375e3f9f335cf6fa21ea8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/diagrams/flowchart/flowRenderer-v3-unified.ts:10 \u00B7 packages/mermaid/src/diagrams/state/stateRenderer-v3-unified.ts:33 \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":"packages/mermaid/src/diagrams/flowchart/flowRenderer-v3-unified.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"29da19136013796235afe4d1ff6bb79cbc6ac7d3da684a0870220e33938cfe0a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/diagrams/git/gitGraphAst.ts:321 \u00B7 packages/mermaid/src/diagrams/git/gitGraphAst.ts:334 \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":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"768b922f208138afee4e82430279093c66382305e4a5454b665ea6bc7b83693e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/diagrams/treemap/renderer.ts:370 \u00B7 packages/mermaid/src/diagrams/treemap/renderer.ts:466 \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":"packages/mermaid/src/diagrams/treemap/renderer.ts"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92d940b5c6f421afc730caee9011cd4118df5b7b88f07ce14d38f4d1dbd2350"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/barPlot.ts:7 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/linePlot.ts:7 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/barPlot.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"849573cef2a28a6e1e1b23ea00a542e1ef04395034be5052b48defabc8c5c63c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1501 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1582 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"1792603140ecdd68db51de16318302bdd545af9a7a01a911f5fb8fd394700cc1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts:486 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts:670 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda48e71b386c1eb9835ac565dfd49957cf1f34ca2188d3fdd29eeb197c0fa19"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts:495 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts:630 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"d176d4bd91311523e9fcdc1179becd1adc515eb9f6a2be43e97e9ff506d750d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts:268 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts:355 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"db52ba27098092b489afc12be8b8756476397787ff0cd3db4682cd5c000e584c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:114 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:130 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc06da277c74750ca445d7b1e2f124e8da914782855e5115c7f59a76b22f5919"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:219 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea7ab5f16e41ca75f565c7a7a858aab25cb2469a65fd2dc791b33a6dfbc122f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1459 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2144 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef91dd47dc1ed54033502eb595a7f97ea2685eaccea705e8a7ad7253dd91e755"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:1925 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:2010 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"97244f4494373ec44f988aec8b07504e274280faa38eb87760b654aa38edb905"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters.js:40 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters.js:554 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2710ebb46c035ed9f197d5c7a6407f526582739752d52b7210da2797cd1e9766"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): packages/mermaid/src/rendering-util/rendering-elements/edges.js:330 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:341 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:356 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:367 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"28df5284465ececf1cd2935e53df4c46da89b7398b43328f4d86321d00e21b0f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:73 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:134 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:193 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:251 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bac0aeae85fc18ef7f4039be52f38cd5a4dd7aadeb512fc2297ac708d419c1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:262 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:279 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:332 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:348 \u00B7 \u002B3 more site(s) not listed \u2014 all 7 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65d9e195a1383defdc633c2768a82efd44e752f8bdcc6ddf5d8951d814b53f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:318 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:384 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:460 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:990 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee33d80e999f2644b89e00142b900fb6b4a8b4f9cbbe8809fa5bd02d2cf6fb7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:381 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:526 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f2b5da51878591f39f6cc28d282f33b7d99ec98b293883d8df179d2df17419"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bang.ts:11 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/cloud.ts:10 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/defaultMindmapNode.ts:7 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bang.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4872129d835f04ce88842c68c1df710825e076e01f9ec1356e1f90da9b0cd708"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bucket.ts:9 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/note.ts:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 91 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bucket.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b2c0eec360454c5a86b772568961e74a86229f263e4178a413b6ff37bee69d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts:14 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoidalPentagon.ts:8 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff081d8153bd0f8f81bce5b3cd50a9fd83dcfbb1a18bf9473625dba4f7b88eb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts:209 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts:140 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d6b861cb9c752eebca666c6b07ebe1b3afe0371e4bfd9b130eb2e1e2384a87"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseBusiness.ts:96 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseEllipse.ts:45 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseBusiness.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a92eeeece40b1178750f8900dae6ecd08b93d82932200be1b8cd7d99b52d098"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-default.js:117 \u00B7 packages/mermaid/src/themes/theme-forest.js:86 \u00B7 packages/mermaid/src/themes/theme-neutral.js:98 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"117f3d010f60240c5172d5cbf26c03729eae4c1c059ce01197c9ee123f360460"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-redux-color.js:327 \u00B7 packages/mermaid/src/themes/theme-redux-dark-color.js:344 \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":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2d1a78c5ca22a0c0b38c0061641f461761a020e4153d7649e7938484d4dba9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7 locations): packages/mermaid-example-diagram/src/exampleDiagramRenderer.js:17 \u00B7 packages/mermaid/src/diagrams/class/classRenderer.js:147 \u00B7 packages/mermaid/src/diagrams/gantt/ganttRenderer.js:90 \u00B7 packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts:34 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 7 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 7 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/exampleDiagramRenderer.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8f59901eb6cbe5e03c3d0ceac75b4b332caec5e0c10e335455f940a42f5e8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1901 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1265 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f8a92dd81040aa4307e1c5e726f367edf1c22a69db4abd5991a5d229d64901"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:2070 \u00B7 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:2096 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":2070}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3a843c11966e8f6c8dc902be546703fe22573fd4555487bf18a3eb63f6ec3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/architecture/architectureParser.ts:17 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyParser.ts:226 \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":"packages/mermaid/src/diagrams/architecture/architectureParser.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf9fd019ee349897bc810aa9018cb56e9b7c903a17b9521aed74038ba49f122"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/architecture/architectureRenderer.ts:382 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/cose-bilkent/cytoscape-setup.ts:97 \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":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd05010e2557ddff11e53fa8851d0d44705bddbdd6657b5764d6795b1acab1fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/svgDraw.js:121 \u00B7 packages/mermaid/src/diagrams/class/svgDraw.js:131 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cfee7255d4d002729846f618eccb49d0629aa680b9968d3bc0746bf7585ae0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:16 \u00B7 packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:41 \u00B7 packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:63 \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":"packages/mermaid/src/diagrams/flowchart/flowChartShapes.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"78343da331ac071216def68985b8c2bd9ddf587e0b7bd668c85eea998697f999"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:152 \u00B7 packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:198 \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":"packages/mermaid/src/diagrams/flowchart/flowChartShapes.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6dfdb7b8d31570e622cce17b29ed123c585b907af07c12e164c99fb57992ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/flowchart/flowDb.ts:321 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:333 \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":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"af03f42b50ee9db8e46cccb2353732b2a63e017cdccc2b75ff4324b5d1ccc3e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:239 \u00B7 packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:249 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"50831e1ce2052a15bb75c602ce3602517a9c061e2d79ac12099aa3df7ea6823f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/mindmap/svgDraw.ts:53 \u00B7 packages/mermaid/src/diagrams/mindmap/svgDraw.ts:81 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/mindmap/svgDraw.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0cfc4c84b727affd964fdce6c10b0f9292991f372b17820efbe97067da9e67"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts:32 \u00B7 packages/mermaid/src/diagrams/timeline/timelineRenderer.ts:36 \u00B7 packages/mermaid/src/diagrams/user-journey/journeyRenderer.ts:125 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ec105b8a04f044a16fda83fc2e624593a6b63d4f4253d8a864729ebaed4d68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:345 \u00B7 packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:446 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/railroad/railroadRenderer.ts"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc8566828c3a26e585767a6fa7c35df531e4f2558a4d8498af0bf20b2fdd9a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:829 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:438 \u00B7 packages/mermaid/src/diagrams/user-journey/svgDraw.js:393 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"072b2ad6d28bcf409cad13e45d10db3fc51163d2b642afdd8d0a9af03cbe529e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:883 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:991 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1122 \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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb6679bcd9115248b38d3344e1337679f7b7c017d544e09ca2adb5ff924303d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:988 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1228 \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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"6365567acbe86046747de9a05e46830c023c3f1cc295f01fb2119c49aee171e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:2045 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:409 \u00B7 packages/mermaid/src/diagrams/user-journey/svgDraw.js:365 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":2045}}}],"partialFingerprints":{"codehealthFindingId/v1":"3678fa15bfe1a7ed967b347164b24aab7fe3579942775666bf336ea6c13ed199"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/state/stateDb.ts:513 \u00B7 packages/mermaid/src/diagrams/state/stateDb.ts:534 \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":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe64ab3fce904022110c505b6e5b05ffe6c7b588ed892fcfcd92feca284afbe0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts:355 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts:440 \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":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c88c302f631e0ecd60507763a5e32998409a2de6842ea9d5c0e090d39edfbf3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:480 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:492 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:508 \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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"97eed31d6ca0dec3b52f0eb9394d21e8f063518841daaeec1bb0b670901cb8e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:602 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35ff46eb75238aac1c471a0e99a075a5fa658c9010ac954667d8ed2a84e83db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/createGraph.ts:108 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/groups.ts:176 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/createGraph.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"27402adaaf999b117ecb62d73cb994f161073208de01a9072a3fba4ae8a2993c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts:701 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts:717 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa2ba18f18a57aacc256c7b80a6ebfc6a1c9b697563e8d139e30703aea9c07a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts:189 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts:387 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"849081c013614b92fa66c3f84a63140a84f86ad12fc5c3088c42ba7d83d2813c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:989 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:2491 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"3586b49d76000345fed525f2c07b297e5ace057068e2f617ab4c5450adf7d8a8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts:217 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts:234 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c7c13383fe9f291672d53c5130af2f868457e2becc5118d744ddc02ad758a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/detourSimplification.ts:213 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/validation.ts:72 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/detourSimplification.ts"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1017aaf416e8950b4a112ee0708513e0a462885ab3e82c6ebb75f0266e0b54e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:453 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:722 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1fe31aefe89607dc23018d2afa4c35bb11a1c6594714ca38f103739af2e1ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/laneOrdering.ts:135 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase3.ordering.ts:234 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/laneOrdering.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c47964976a3bbc601c23690583dfde5f8c39206b740a4e363fa17067a80266"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/edges.js:944 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:967 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd34a3bff93aadaf2f751563e329e3ff600848cf2d9d2aacbe8be11be5b6d2c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 12 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:336 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:352 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:368 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:404 \u00B7 \u002B8 more site(s) not listed \u2014 all 12 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b12c2a601c8b8d162dcfb07dd62c575d0821b5092f507a8231b401cfd1aa33e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:575 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:864 \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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd177fde6132632ebbb1d4c2fcd173c28b5b909783f3e4bbe28abf5f7684515"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts:10 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/lightningBolt.ts:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ef26061a04e26eafa3adf1cefbcdb5ce43797695d44cc1e49fda156e13c7da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts:10 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts:14 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acc7dfeca01065277602659291fe9d2d771aa2391c91871bb7a000acd19e06e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts:100 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseActor.ts:239 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf09d41395a232fdac8bd94d51356a2877f8f90ffe9b7cc5f67f2b13742cfe8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts:107 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts:73 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts:79 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a460a7935f82f2540d9fe639277058f649117b6a76d78bd7a5cf83a1f52e91"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts:23 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts:30 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts:32 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"867e2a8bf5a165d448107a53bbb44fcd3da3cff823d5d22dd2d4e8da87a670f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts:127 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts:134 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts:134 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/imageSquare.ts:138 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d5601bbbcf1ac3b00123cee2add6b364b39c98fc878c1d6198280451c766d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts:30 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts:39 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts:39 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f57d15c5431bf2bf58f18c8c900fa4da36259eb2ae9a7257f626e50b708de1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-dark.js:397 \u00B7 packages/mermaid/src/themes/theme-default.js:435 \u00B7 packages/mermaid/src/themes/theme-forest.js:407 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"46350b5c5270d20bc3353fe60cb745d3cfba55b2383fd9120c9549d11c8c7ed7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-default.js:467 \u00B7 packages/mermaid/src/themes/theme-forest.js:439 \u00B7 packages/mermaid/src/themes/theme-neutral.js:439 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cff655c6cdc92297e8cbbc7bd3e00dabee1cc706546444009410013f656128"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9 locations): packages/mermaid-example-diagram/src/exampleDiagramRenderer.js:19 \u00B7 packages/mermaid/src/diagrams/class/classRenderer.js:149 \u00B7 packages/mermaid/src/diagrams/gantt/ganttRenderer.js:92 \u00B7 packages/mermaid/src/diagrams/quadrant-chart/quadrantRenderer.ts:36 \u00B7 \u002B5 more site(s) not listed \u2014 the 9 copies are spread across 9 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 9 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/exampleDiagramRenderer.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b502055d9a304b9a86425f83dd05bfcf2747aa8a9386c310fcefb7eeef9b96"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1741 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1327 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13829f2e6fd751adff4e83ad3b2cec58b56adfc541daf01c89fa7bd4744bf3d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): packages/mermaid/src/diagrams/c4/svgDraw.ts:297 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1704 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1723 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:441 \u00B7 \u002B1 more site(s) not listed \u2014 the 4 copies are spread across 4 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":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"6352ef00e7d4eb76fc5c07d8c762b55261cb2cd3b93db6bad697c4664d4a3c58"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classDb.ts:332 \u00B7 packages/mermaid/src/diagrams/class/classDb.ts:406 \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":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1615d2c5dd5746643e9aefdcf49afdbbb96e59047ea2c60eec2b74286f74c3fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/shapeUtil.ts:168 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts:388 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/shapeUtil.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c180951ad2fc57cf97708f57feadabab4e180711443f54b5ab1802cd56de07b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/styles.js:14 \u00B7 packages/mermaid/src/diagrams/state/styles.js:21 \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":"packages/mermaid/src/diagrams/class/styles.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d66e28f612bebb7dc71b381b76038ee82c624589cea09064bd6fedad33823b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/cynefin/cynefinParser.ts:11 \u00B7 packages/mermaid/src/diagrams/radar/parser.ts:14 \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":"packages/mermaid/src/diagrams/cynefin/cynefinParser.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1c14e919eb0b7ab05a295189453624136282fdce4927965879bc3eb61975d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 43 locations): packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts:359 \u00B7 packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts:69 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1724 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:2111 \u00B7 \u002B39 more site(s) not listed \u2014 the 5 copies are spread across 5 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0921b35b1a74084bf14a27850ad190be9f9abbc10489f67b07f2ed08c6886b60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/er/erDb.ts:228 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:746 \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":"packages/mermaid/src/diagrams/er/erDb.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"711ee06a5a35d303eaa8079e5a24a42e373e2784f44c2c607c1787941de0efb6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/er/erDb.ts:391 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1332 \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":"packages/mermaid/src/diagrams/er/erDb.ts"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6696ea861bc5441ffc3d89b4702eecc35fff5a5fdb343f17a40c1c0a96e526ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/er/erRenderer-unified.ts:10 \u00B7 packages/mermaid/src/diagrams/requirement/requirementRenderer.ts:9 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/erRenderer-unified.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b61c2446e83946d002e70f1203d60f9e446fc5334b5bec143b659e6c4c13a98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/flowchart/flowDb.ts:1322 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1336 \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":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6a88a40eb94b534aeb49e010a0bd9d3957abfdcaff6da2f8ecb4668b217ab2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/gantt/ganttDb.js:789 \u00B7 packages/mermaid/src/diagrams/gantt/ganttDb.js:798 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d572f81757263c90177881f4446ab5a4f876380af57455df6515df05e27f1127"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/git/gitGraphParser.ts:50 \u00B7 packages/mermaid/src/diagrams/git/gitGraphParser.ts:68 \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":"packages/mermaid/src/diagrams/git/gitGraphParser.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c499e3b4811df2828d476266d98e814d1550fa350fe1799f97dd5393bae4d307"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 14 locations): packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:1046 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1770 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:295 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:313 \u00B7 \u002B10 more site(s) not listed \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4851afd57dd802f246548b042bfa3b21f3f318cd997c0063233ea48659d17ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/mindmap/svgDraw.ts:36 \u00B7 packages/mermaid/src/diagrams/mindmap/svgDraw.ts:156 \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":"packages/mermaid/src/diagrams/mindmap/svgDraw.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"381f1267b4eaa067c148cc5f20a57ee5ebc72c5791f4dcfd7c458f4b021aa05e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 23 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:2113 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:2131 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:261 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:278 \u00B7 \u002B19 more site(s) not listed \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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f4eb827eaf74d69cb74a2543ca1ade03a860c48a0e79afe9d0a9a1890f1fb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts:294 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts:397 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c11395dd1bf83097d6fd23333dfcb6833933f72473405b3e20dc4f343cb30c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts:554 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts:582 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts:593 \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":"packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e94d59e398b795cd2f04c73b925188a090df344409c0acd8d83139c8c8b309"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts:738 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts:750 \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":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9fc1438c3f3ecd8f01f9a39514cd26f8d1e7692638252223d1b13e655224f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/venn/vennRenderer.ts:298 \u00B7 packages/mermaid/src/diagrams/venn/vennRenderer.ts:332 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5ad136cf9026fce0965da306e3f439966cdde881e3def2305e567ef118b071"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:703 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:714 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7289a9d486e6c39d5e5c8fab60e658a7e63543fe8c0680ee714a2ecb9075f6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/xychartDb.ts:87 \u00B7 packages/mermaid/src/diagrams/xychart/xychartDb.ts:102 \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":"packages/mermaid/src/diagrams/xychart/xychartDb.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"94fd51ab755625e4f1ef2513811f457f0a41a2fb86b433fb5efde08ccba19c97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/xychartRenderer.ts:131 \u00B7 packages/mermaid/src/diagrams/xychart/xychartRenderer.ts:196 \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":"packages/mermaid/src/diagrams/xychart/xychartRenderer.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61d43993edf9429657c23b34ac3109c7d21228530a209a27ff97c57c6c8efaf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/elk/geometry.ts:47 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:500 \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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/geometry.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e577593573b43e05507265863bd2770643fd57a11dc82eb51b5249b1573b58"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/elk/geometry.ts:98 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:485 \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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/geometry.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"217ae2c422731cc0030ea183230a3363b7ce15e8765b413ebb2f360a1c204753"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts:446 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts:458 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d9e53f99357c4f31510cec2cec5aa16258827ecfafd4a572947f6e0969dc70"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts:75 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts:227 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2b65e1d140e31232db4608e78fb19718fe424e12d7b998df41e0f474239c07"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts:285 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts:568 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c9f27c23de07eeb8b9c9817038d58ca2c7281eb20e124ade945a9cf24eb5ca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts:44 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:151 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d41ce20629d3346dd3e106cb7c208312fecfdcd366b2c01765b31dd29d74a21"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:706 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1824 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"182d4cbe1ac7f085468364eba32b3f4348c2092eb8aa1c42d50482b281ec54a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1977 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/terminalStub.ts:103 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1977}}}],"partialFingerprints":{"codehealthFindingId/v1":"09287f7f19d7a8bdad5b19fb0d727ed952935dd757c80ea438662c5f25363a42"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:1647 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:1659 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"78eae195964b923a5c98d6f2bfefaafce9557ffd721246dd354af572fd20dc67"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters.js:297 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters.js:795 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"1362bbfa3862d8749b1d56a790fda1e4eac02c6b653f6b246f3d38fcd4c6f27f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts:568 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts:705 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2ad0cb3dd22231efeef1a9dcdab863690bc2fc52275a70bfa6713d7592bf98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:39 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:338 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:354 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:370 \u00B7 \u002B5 more site(s) not listed \u2014 all 9 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd0cf02edb770fb1c8f2be1e0dcbb8c5d017fde5f6842babcf3fa1db794c442"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/markers.js:759 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:839 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ffa57c9d302bb8a3b10fb47d75eec20ca677371affb62775c11c1b16a7cd75"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bang.ts:71 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/collapsedGroup.ts:179 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bang.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ae88e1a2bca7381f2ce83467199edabb79229d15ddb8fa5b36ee22427f84e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts:66 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseActor.ts:74 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseBusiness.ts:25 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"479cf81062a2f32ae3a9cb19ffdceede11a3c28dc352d3efc6a8266eed673d8b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bucket.ts:9 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts:14 \u2014 the two spans are one implementation copied and then locally edited \u2014 78 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bucket.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a44788ce4c0bf79bf056892687f0c1e1f2a148239c2c3d5710fdde39515705"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/c4LabelHelper.ts:22 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts:14 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/c4LabelHelper.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e813351a9e63320356ce67ae0a24b6ac49858d973c0a8b83a8c109be3855eb08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts:18 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/subroutine.ts:34 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4220afe2ccca855f69187b144551062501aa169023282346d5e2d6a0cca91020"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts:213 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts:230 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e356749affb174c930bb47174c6b8788d26497452e2f33f97c7616f09d7fd8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/cloud.ts:69 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/collapsedGroup.ts:179 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/cloud.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea4486cc2f3157419b4be37cb06c5e4e7efd14c0d550d6f4877788f42a7ea52"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/composite.ts:31 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/text.ts:24 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/composite.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcefa4241e626100413042b1d1c2ec8bd5e5c58be2b635d255bb0806e5f7ce4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts:104 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts:105 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts:123 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts:89 \u00B7 \u002B6 more site(s) not listed \u2014 the 10 copies are spread across 10 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd9b3fb504347b8b57e2ad1042cb7bee28ee4a4ef9e2015862a6133f8568022"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts:90 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts:67 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/hourglass.ts:38 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts:74 \u00B7 \u002B7 more site(s) not listed \u2014 the 11 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 11 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5ab4ba1feec2319cb3f124c7bef18fdc387d7423c9b96c99dedb4443b4ab18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts:80 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts:60 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a90d3712fc84d2b36548f62c437b14319af0fb030a05056d5e0244eb233f945"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts:8 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts:9 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a2b9e1cdc27bcf32c3011abdae2465fb5579cd2929636f1fac6b8b7e657d0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7 locations): packages/mermaid/src/themes/theme-base.js:403 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:371 \u00B7 packages/mermaid/src/themes/theme-neo.js:357 \u00B7 packages/mermaid/src/themes/theme-redux-color.js:430 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 7 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38a47d3875c8a230de3cfa2ef48cbfac20c610749aeb1e9db2ccfb448de9b9d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6 locations): packages/mermaid/src/themes/theme-dark.js:55 \u00B7 packages/mermaid/src/themes/theme-default.js:87 \u00B7 packages/mermaid/src/themes/theme-forest.js:15 \u00B7 packages/mermaid/src/themes/theme-neo.js:15 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 6 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f990bf53a467b84cf12515c8a46104ad75067602f947ee91586c91dabe24ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:233 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:114 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2f6d5e28c299b0241ada455d372348f0724b1d5ba49ec94dc23a795de12ff3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1758 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1336 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff41735eb542054ccc0ed873811763b8b845940743e8e3f05035d811da5875da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/shapes.ts:127 \u00B7 packages/mermaid/src/diagrams/agentflow/shapes.ts:138 \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":"packages/mermaid/src/diagrams/agentflow/shapes.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7be5031f98ec1e8a0df621a98da36a7dcfde429e8468cc6396a5b99bb0a851b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/c4/c4Db.ts:619 \u00B7 packages/mermaid/src/diagrams/c4/c4Db.ts:627 \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":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba165d3f839245da1b4922898c09f898bf8e64939a3ce4b8468cf9009b7f0b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/svgDraw.js:219 \u00B7 packages/mermaid/src/diagrams/class/svgDraw.js:243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"4822f295c44be722f85f77a737e776ef6e671e50c4bd3a5b9dbf2cc07f7e3b89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/svgDraw.js:317 \u00B7 packages/mermaid/src/diagrams/state/shapes.js:371 \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":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"7205b88bdc9e36486e2b04b6fefe246cb0829ec8d906fa70c48bc189957588bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/common/svgDrawCommon.ts:18 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:5 \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":"packages/mermaid/src/diagrams/common/svgDrawCommon.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c65a787c4b54b006b1d79240acf700b54d98c1b30ead2b82ba9b0a6cb03f62"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/mermaid/src/diagrams/error/errorRenderer.ts:123 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:921 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/markers.js:944 \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":"packages/mermaid/src/diagrams/error/errorRenderer.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce64a86d7fdfd07b3b2858f96d6d0a090c92d50905748eab4d301ba12393086"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:280 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts:102 \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":"packages/mermaid/src/diagrams/flowchart/flowChartShapes.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"803dc01ff96943ea253b7bcc38ff0b76427502d1cecd40fca3a64d95cfb51423"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): packages/mermaid/src/diagrams/gantt/ganttRenderer.js:93 \u00B7 packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts:78 \u00B7 packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1048 \u00B7 packages/mermaid/src/diagrams/state/stateRenderer.js:51 \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee0aaadcf1824b78177f6548631a9a136459d001bb531e7e159e871b72ccef8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/pie/pieRenderer.ts:198 \u00B7 packages/mermaid/src/diagrams/pie/pieRenderer.ts:221 \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":"packages/mermaid/src/diagrams/pie/pieRenderer.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"c273e56f796d93008a7ca9f11eb26fbc29fd9ebac278b7eed3f67288d8be2921"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/radar/renderer.ts:75 \u00B7 packages/mermaid/src/diagrams/radar/renderer.ts:90 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/radar/renderer.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"451921f05d44948132dc8edbcad82bc51ab8d7fb2f3b098e31ade009d8b73e95"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:159 \u00B7 packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:214 \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":"packages/mermaid/src/diagrams/railroad/railroadRenderer.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"051da4ee5a86787b6e6e51b892cc51f463f58e889413c3029dd4ac2c24cc0e6f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:1169 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1329 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc65cf075dca89e43280654e39ea95ae56a23136ad489cf906163bea256db3cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:1825 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1977 \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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"991e2bc5c6299fc48e1e93b5c545c864229aff4d3cd9ddd0c677f5745f1a0dba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/state/shapes.js:222 \u00B7 packages/mermaid/src/diagrams/state/shapes.js:234 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/state/shapes.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ffe9e0368a2237462a01435488bfd2d489c2b1a175726e703a5c67558e7602"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/state/styles.js:27 \u00B7 packages/mermaid/src/diagrams/usecase/styles.ts:91 \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":"packages/mermaid/src/diagrams/state/styles.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"273aed851265935368545be568477c5b390f1069758813ef6c986a5650373b3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/usecaseDb.ts:337 \u00B7 packages/mermaid/src/diagrams/usecase/usecaseDb.ts:364 \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":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb3d4670b2edb832d362b6684959dd982b6398af99cc7ff1064137b8bfc8ee1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/wardley/wardleyParser.ts:104 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyParser.ts:150 \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":"packages/mermaid/src/diagrams/wardley/wardleyParser.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef9c92c449b873ced167709d3d871e18cf780ff9cf4f73d3db15a7e63fa78b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/wardley/wardleyParser.ts:127 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyParser.ts:209 \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":"packages/mermaid/src/diagrams/wardley/wardleyParser.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1688e7a2679806b1965ec951c6faa5cfbd1805a12ba281ea5b66aab78bf2ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:173 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:282 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"efefccb2c5ef6bead16ac69988c0fe20ca866b60c65f102fa43d1459b3f1669c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/ddlt/fixtureSizes.ts:67 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/ddlt/fixtureSizes.ts:96 \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":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/fixtureSizes.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6395859ce0a118014a52fea4fe1ebd0dcfa8c0effdfb87980940a7d23d66ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/ddlt/fixtureSizes.ts:89 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/ddlt/fixtureSizes.ts:105 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/fixtureSizes.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f40e40f42a987677f97f6ba5c58dc47f686cdd9a2118a37bde7b78d6178e095"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts:732 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts:750 \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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae58f322ac6fc7e6a440136b3edd3a5266053392072b8e02730a022ed356306f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1004 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1015 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e9831a8f6e05f3a808ee6ab86dd62be174a80650add123c14223b001903636"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts:327 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts:352 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebcff730fd4cdeef8aa18f4e1f2536a7e7afd5f30dfb8907aff3008961b59ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts:973 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts:1025 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"8daf9b044a8615d8b18fffe6a7e8cea01bc786d80359528074a1c61aa65428ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:851 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts:1218 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bc645a19e923da512ec045a47b8b34aac555961bf3530c4353151a35fe9817"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts:553 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts:580 \u2014 the two spans are one implementation copied and then locally edited \u2014 92 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8ec9c4a73be15b15b7b75889282fa3e8d7d474898f3672406b903a9f8c9d4e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts:80 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts:89 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20531ee90eb857ad27364b0475babd5f8d2b409f8f31485c57fc0688a9aa84f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/alignedEdgeStraightening.ts:124 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/terminalLegAlignment.ts:134 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/alignedEdgeStraightening.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b093e87d1a42f10a21167452c04ea164abc34da7bbaf8ef555d2ed26adb63c7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:590 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/terminalStub.ts:167 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc130abdec019ddb79e23a2b84b8d76fe689795f2591bbea0cd42ea01a92b59a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2405 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2608 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01c05333053d67e61904218f68abad0d5094e0be1cce32ffdd73488ae930aa1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/portSwap.ts:131 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/siblingSharedFaceRouting.ts:158 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/portSwap.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d1fe4bec4be14a62b46157707e11a34618e0dfd1d78b25a7b0efb3f95f586e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:921 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:930 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb87d9752684fcea622a88673ac4587fde2165d861875bd341ebec7aa70f4209"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossLaneAdjust.ts:9 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossOptimization.ts:75 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossLaneAdjust.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3967d431a327369b70b6c883d6a14486345334417334e9897386d3ae84664603"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.gravity.ts:44 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.gravity.ts:100 \u2014 the two spans are one implementation copied and then locally edited \u2014 93 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.gravity.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f577ee34efffc846af9ae1a2d0caa86c8b163053988162b4f3a83dd68747b62"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters.js:716 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js:54 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1127faa8463afab35be0c30bd2d4b72b618f06b45d5b5ec58c6b742ed1cb52"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/edges.js:603 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:611 \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":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"14515fe9ea9f775a5d96b558fe131f46618c69aa6336d9166e3c06aaf281c9cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnActivity.ts:15 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnGateway.ts:16 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnActivity.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc714fd52d7eb83f3b06837b8cc28772e38580db4f4d6394cf447fb44a3571f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnActivity.ts:38 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts:101 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseActor.ts:240 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnActivity.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbff4c2259227652670aa0d39fc844e6bc1f8b7abc3be17935cb8bc6a291e8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnGateway.ts:16 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseBusiness.ts:34 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnGateway.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a016b4944a0544fce9e2cbdb32bd310df049b2f6ec0136b6df8fe79870d5b2f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/choice.ts:8 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/forkJoin.ts:11 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/choice.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc2c4ff1810fbcf2a6222e9521b74aa981784cb6a95b1a320585539c3af5fcf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts:45 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/crossedCircle.ts:32 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts:30 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts:39 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 8 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"126dc87bfc53b1737c4f443f557c518bd0123d615f41e359e1ce58fe897f439a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts:51 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/question.ts:17 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"038966e668516c4e6bacf8d13f1321b1f02f2d5c999aacdd5a450d4ce21e0499"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/drawRect.ts:38 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/kanbanItem.ts:112 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/drawRect.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"adecf10af13bf6fe7ae5589520aadc9f52f0778bb6c752642c97f46da3239675"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/halfRoundedRectangle.ts:53 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/hourglass.ts:21 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts:43 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/stadium.ts:92 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 8 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/halfRoundedRectangle.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92fecb8957fd583bff61dc4b11761658b815c6420f047082dc3a498817c6ab3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/invertedTrapezoid.ts:9 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/leanLeft.ts:9 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/leanRight.ts:9 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/invertedTrapezoid.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc52358f3b68e1e7754a88949c50fc34c5d484659abc27d0c3fffe1b262ad8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/labelRect.ts:36 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/note.ts:57 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts:75 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/labelRect.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c828be0552ad9758e544ebcbaebfbdce50549b9a191edc435648dac1654f120"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts:38 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts:39 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts:33 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd12f7134bea77c57e4a09355e15c3d02d8c2baaa5876df71c9977dce67cf29"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 15 locations): packages/mermaid/src/themes/theme-base.js:63 \u00B7 packages/mermaid/src/themes/theme-base.js:362 \u00B7 packages/mermaid/src/themes/theme-dark.js:374 \u00B7 packages/mermaid/src/themes/theme-neo-dark.js:103 \u00B7 \u002B11 more site(s) not listed \u2014 the 8 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":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4608887e09584f52477f883cc3d4ced3c2341cad9c740b602715e22661c1637d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): packages/mermaid/src/themes/theme-base.js:438 \u00B7 packages/mermaid/src/themes/theme-default.js:467 \u00B7 packages/mermaid/src/themes/theme-forest.js:439 \u00B7 packages/mermaid/src/themes/theme-neutral.js:439 \u2014 the 4 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"8903f59e1d751ba6d9a4f7b86f6be3ec74596190141a8326b174a3943c3e9d5f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-forest.js:165 \u00B7 packages/mermaid/src/themes/theme-neutral.js:190 \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":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa35e8732d343b8a3b753e88fcab2408a0572c68829604b704451d797f6617a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/agentflow/agentflowDb.ts:1673 \u00B7 packages/mermaid/src/diagrams/flowchart/flowDb.ts:1229 \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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e0a83af6c582e5ac4651d8d335e0f35632aedc311e737d8e9b0ae23de37c75"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/c4/svgDraw.ts:48 \u00B7 packages/mermaid/src/diagrams/c4/svgDraw.ts:79 \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":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"598a3c97e67c7be2ed6e1be77bdd8bc954aa600936a0f7fdbaa4d893e94de4de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/c4/svgDraw.ts:92 \u00B7 packages/mermaid/src/diagrams/c4/svgDraw.ts:109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3804fe22feeef206f571ccd53d38c1c8da5fc105628bea0c14cd11dd967911"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): packages/mermaid/src/diagrams/c4/svgDraw.ts:374 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1847 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:355 \u00B7 packages/mermaid/src/diagrams/user-journey/svgDraw.js:311 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0898322a1e4122326455b8831c5561a2bc8e10b0c1e060e7b645047059f8c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classDb.ts:220 \u00B7 packages/mermaid/src/diagrams/class/classDb.ts:227 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"235b8e9fb56508cd838cc885fd7cf3e0eb3dd3edfc48b41409b13c4edb2e8570"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/common/svgDrawCommon.ts:85 \u00B7 packages/mermaid/src/diagrams/common/svgDrawCommon.ts:93 \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":"packages/mermaid/src/diagrams/common/svgDrawCommon.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cba749eca45eeb230b6ee26933631b5f00dbe7e64659539c1dee81bbaaff429"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/mermaid/src/diagrams/cynefin/cynefinParser.ts:11 \u00B7 packages/mermaid/src/diagrams/pie/pieParser.ts:12 \u00B7 packages/mermaid/src/diagrams/radar/parser.ts:14 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/cynefin/cynefinParser.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"713e81f92ffeaf7fc9e6daa0c6b854af5d0f4f99dfbdc41a16a72a696c90e438"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/eventmodeling/db.ts:349 \u00B7 packages/mermaid/src/diagrams/eventmodeling/db.ts:363 \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":"packages/mermaid/src/diagrams/eventmodeling/db.ts"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e76b216d3df01a60c4f583e5276a3f12bc131231a99bede17ef162765892200"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/mermaid/src/diagrams/kanban/styles.ts:10 \u00B7 packages/mermaid/src/diagrams/mindmap/styles.ts:11 \u00B7 packages/mermaid/src/diagrams/timeline/styles.js:99 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/styles.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"1813353e536d7a53c568000e82b20500f96a7c90ada3f38e1f231ea68b8a9cf1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/packet/renderer.ts:6 \u00B7 packages/mermaid/src/diagrams/radar/renderer.ts:6 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/packet/renderer.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7294710a5850a185c5030345d9a814de31829a99335a0f8970cf0980bb5fe6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:92 \u00B7 packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:130 \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":"packages/mermaid/src/diagrams/railroad/railroadRenderer.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"762cc6485fcf789e469df6737c9cc87702cc144e6516b1a16a448fa72a969f97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:141 \u00B7 packages/mermaid/src/diagrams/railroad/railroadRenderer.ts:478 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/railroad/railroadRenderer.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78a3a586a43aed5ff1f3f4557436dd5ee45da5a7274118c40db776bb7bec692"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1008 \u00B7 packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1018 \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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df0df6ab3be406639c1b55dd9f4a10f7cfe8ffe34de1317bb1314b3a9f1e1ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:1050 \u00B7 packages/mermaid/src/diagrams/state/stateRenderer.js:53 \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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4833580f8a2e2560e48235bf70cff9fa94439641be26099da7166a901e7c19"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:469 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:604 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff420325dd929456cfdd121528ca0990d13d61b4393d621aac2bcc2ec67a62b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:646 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1005 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1e6300a8a334341ef01903ed18f6b13c0f4755f221d998e09901fe598515aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:937 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1087 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1197 \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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"f705814775464a64585cbe5c495824ee003b2beb8339e3592e6561bfd18d0b8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/state/shapes.js:46 \u00B7 packages/mermaid/src/diagrams/state/shapes.js:82 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/state/shapes.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"404cc7bd13adf76b1854b3fb18ca0d0deccf4c27a1ac5d575029979b83d71149"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/mermaid/src/diagrams/treeView/boxDrawingPreprocessor.ts:80 \u00B7 packages/mermaid/src/diagrams/treeView/boxDrawingPreprocessor.ts:101 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treeView/boxDrawingPreprocessor.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"293932102c9db6a645363a06b478312d53db86e1e7d48e852d4eca36449959bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/treemap/renderer.ts:188 \u00B7 packages/mermaid/src/diagrams/treemap/renderer.ts:355 \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":"packages/mermaid/src/diagrams/treemap/renderer.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"d896e180a7afa2cab42f2cefdb78a391b524bcfea3dd264a30ba40d8182aa398"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts:303 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts:316 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"3980366e3ea163055eb3287893f178f69db3a21b658dbbf07da43d4794091171"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:672 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:683 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:694 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:705 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b79cc3a5282ac643274a23d35c090537067003f85051f979964c4330fd6107d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:878 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:897 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7450de1fd97c05646cd6b3a55364a2ae577197af2fc7a8253a0ff927e60f81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts:230 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:526 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"56693d2b35a6382aa523f54da74237b7b5e20cc191d211ffc79e0c47cd0a1768"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts:433 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts:237 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6712485d77a8b578a064b9e51e06f77c2cfe13bbf36f7dcaddeebbbf76dda9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts:469 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts:484 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"001c2403f391f57e41e1581af4ebd573e70b4c5751d56a36d2dc6d89077f5043"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:328 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/sharedTrackNudging.ts:282 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e405e8a65948781995ea39b54ebcaee70413d1b19c506e856bc71c1dec4f3e50"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:562 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:880 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1022 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68bf4fa07e0e1e4ee0da15e62ccd70957e074cf5b0dbacadc85ba2fbe82b373"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1729 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1737 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1729}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d58a60030a1963ca1f791b84fa5c7397b49a7666106aa8af3a88fbbd479968e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1813 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2604 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1813}}}],"partialFingerprints":{"codehealthFindingId/v1":"164a23215fe6c9726db9ac531f3510fdc36d286965d383e47de3842411af096c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:876 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:887 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"e489be821711ec9bed16c30e4af649301d90cb5346d478cb9b666b257992822d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:1007 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:1020 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"701957b2b5dc7766b005a4fe23326b2b1e886678cff51c995614b96c00a17feb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase3.ordering.ts:128 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts:256 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase3.ordering.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"998abd2b57b24104440bbd673aedf3072d23e4c7f81d0f267ca5f9a94c49bace"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters.js:206 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters.js:333 \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":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd02af09db946f10d10082527a868e6749dffc26e426a78482cc7d4ddfa66cab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters.js:565 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters.js:719 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js:58 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/edges.js:156 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ff1c66ac5c849aed9e3fe5464e0ddcce8c88b42fb783db9724c58f1389db3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts:29 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/filledCircle.ts:27 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/anchor.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0983301a42ba338beb837bdc2858d3dc06345b864a09b2ba5eefbd0a1146ccc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts:86 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts:20 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts:14 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts:57 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 7 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"819c83b54283b7935440e5585baec6575119cccecfcd7d6cbd4adaa8eb8db4c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/circle.ts:29 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseEllipse.ts:28 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/circle.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7808a355d282ed7cf1d2feaf6ecb5ded21fb5dab6a027c2514f0cd2a7be636c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts:389 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts:45 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"096360ca1bc517a64ea0e05805636a7a5a1a23d472974221aeefccc0ac25cb97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/halfRoundedRectangle.ts:33 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoidalPentagon.ts:25 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/halfRoundedRectangle.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d4b705cc44c2d4233cab139506156d45668c4b57582ce24d5dfccf11823324"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/note.ts:36 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts:122 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/note.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ec12cbb41eb7ea25bdc244dee33163f11662fe0408d961cb1330d5986f2570"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts:45 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts:248 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4e03423789543e0dff92aa8d68c3cb2f7f99bf46f4449f09c3af2bd54bb202"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-redux-color.js:317 \u00B7 packages/mermaid/src/themes/theme-redux-dark-color.js:332 \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":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"973b6ab4344502d5a5e47f446796d06f1985bc56690cd3e8dbd7fa8de1238003"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/architecture/architectureRenderer.ts:493 \u00B7 packages/mermaid/src/diagrams/architecture/architectureRenderer.ts:501 \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":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab4def2a26deb6537bb5e93e9b957fe6b6bd85638302e058bd8af21ad246f33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classDb.ts:41 \u00B7 packages/mermaid/src/diagrams/er/erDb.ts:20 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9667e8e355d76f50440a3734d80f3183b409cfb3b1b210b8396a8af0d4291d47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/shapeUtil.ts:52 \u00B7 packages/mermaid/src/diagrams/class/shapeUtil.ts:63 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/class/shapeUtil.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d180c2fbc3a22d8ce5026fd7a95135788c6ed0fe4c0df4688df7db3f05aaede"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/svgDraw.js:262 \u00B7 packages/mermaid/src/diagrams/class/svgDraw.js:343 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c8841a4096f182f41d8d02fd5abeef4c7b41e7ebed6e5cc40378a55cdc4e99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/common/svgDrawCommon.ts:71 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:135 \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":"packages/mermaid/src/diagrams/common/svgDrawCommon.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"81613aa29b98bca4e408e37c0f0fe41407ad42b23e42a5c513caad969aeb4a2d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:282 \u00B7 packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:290 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"022593037352b6f8c518662077f656538ad2a2ea64da02a14b491387c1dd0e20"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:1445 \u00B7 packages/mermaid/src/diagrams/git/gitGraphRenderer.ts:1465 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"d023fa07b937895ba131885e30b04ec690b97d41853005429149e5360e07477b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:273 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1607 \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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c37a5ff0022d516e677f665dfc8d874dfbd6878e8a3abebbf040fa98caf793d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5 locations): packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:585 \u00B7 packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:594 \u00B7 packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:607 \u00B7 packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts:619 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"30af02dae346c5c0951ac220c4d15709ba981046f73ff84ebe1ab359384acff4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:457 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:943 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e75f33a377552025e333ff0be6cb81d23911e2eff8a3d11c8ae690722e071d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:782 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:892 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"4410239efa45276045bb8db7b83d0ed1b57f05294f0dcd4b1133fa1cd01c9773"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4 locations): packages/mermaid/src/diagrams/sequence/svgDraw.js:858 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1091 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1203 \u00B7 packages/mermaid/src/diagrams/sequence/svgDraw.js:1339 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dc45929aeb0f1046bbb08a7802a8a6af289f3353ae114bfe10426c3151653a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/mermaid/src/diagrams/timeline/svgDraw.js:2 \u00B7 packages/mermaid/src/diagrams/timeline/svgDraw.js:109 \u00B7 packages/mermaid/src/diagrams/user-journey/svgDraw.js:95 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/svgDraw.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f15c22af290508384b7634dfda045518113e4646029cf01201ae05e2843c7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts:194 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts:285 \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":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b52cd4f2b2dec9421551e72caa81653509f6b3489593e7709405a00c2e75d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts:508 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts:523 \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":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"65029451b45a60009b6f806b67898171744064bbd7ae4c4e65e8920077204ba6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/venn/vennRenderer.ts:121 \u00B7 packages/mermaid/src/diagrams/venn/vennRenderer.ts:173 \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":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8339c9eecedf3e4daa40ecde17719ae95f1f98edc577c853c8de6dffbe299be5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:633 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:662 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:696 \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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec110e6a213bdb2991fc6f5b43996a2c990dcb1c0f1b1a4a58ce0648aa756b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:956 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:976 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:1021 \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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc38d75b4605e07cd0a6778da153825d3df281f568b6f80d00e43c9d42cae7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:244 \u00B7 packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts:317 \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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1fd493aca1f3ed5b0c0c4ce8d894b16fcc0e320a3df8f0108f7b47fea1d6ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/ddlt/baselineDdltSpec.ts:145 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts:530 \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":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/baselineDdltSpec.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e8bfb3bfee6937c7a2945ee5d06e7147584347189021d38bbd92c72413dbb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:93 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2836 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d86d558e10d5b112ce41d59203c2bcab36dd2d7b2bab4a4676f009963bf82a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts:177 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts:183 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfd5f97aec659d5b8f02d505113776590a78298597808194973908586df0657"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts:268 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts:316 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ea8b0a40b6b847042188da142a95ec735d51960f0526d4bfb2ddc0af4276b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts:311 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts:391 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d9b7b4c5f255ccfb96e5a7d19ffd2783aae4038993ca1c531b82f908188339"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts:1109 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts:1079 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c1e1c9361a814deeeb2c43d2d8aad2abe5bcfa0b8e15377d65779d22515664"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:464 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:475 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cad981af54e66847ced1800c006b91b9979ef1366bb6da904d96f3ec29568d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:1223 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1230 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbac37b6bb8ff021e9a85cbafdced57424396bf1def0a7603f879f39cf8b2a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:1349 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:1412 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfaff85b246b012303701fb153afd8dd4aded82606af268283c4523b05b6355"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:522 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:562 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts:617 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"48378d743543ddc951567e98c6176b3b814c259e30a3f1c3915f1cb509c31b3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1163 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2259 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9583dd2a4ec0638c025324679be01cbf6f59242d57af3814c0ba390a6400f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:708 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:715 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5141e41a79bdfe0b85d1d83c037cecf505df2a2ca9dd5e765454e8ac857c81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.laneAwareCompact.ts:40 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.longestPath.ts:12 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.laneAwareCompact.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e10aef1624ba5aacb47e5999c939d54b32ede69ea08b1b654911cbe91acbab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/clusters.js:15 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/clusters.js:680 \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":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5321df0136c67230d8707dcedfcae0dbeb6850e6f06279f4a0f80814a3161954"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnEvent.ts:44 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnGateway.ts:37 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnEvent.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1322fae170d26d2aae540fd79563c9911a4118d9a08de66fcae74555983e4baa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts:66 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseActor.ts:74 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseBusiness.ts:25 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseJsonTable.ts:41 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dab6425062458db2cad446f150829dd29cae8bcbb0c020f59a6fe01b2ebe277"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts:280 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts:289 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts:299 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts:310 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d85313299e5e7424fa7c3bfdaa4999f5bbb5ba25dbc37bc1964107f037af0c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/folder.ts:9 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts:14 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/person.ts:13 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/folder.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fc833c9174fe99bac49405dc7bcd8f67bb840e34cc0560d00ae5cfb183a554"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 12 locations): packages/mermaid/src/themes/theme-base.js:417 \u00B7 packages/mermaid/src/themes/theme-dark.js:369 \u00B7 packages/mermaid/src/themes/theme-dark.js:408 \u00B7 packages/mermaid/src/themes/theme-default.js:446 \u00B7 \u002B8 more site(s) not listed \u2014 the 11 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":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea1835e54a50cdfa2c2c2a639983719d1f23cad20cc95e045e965271993dc1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-forest.js:155 \u00B7 packages/mermaid/src/themes/theme-neutral.js:182 \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":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d361c2625dd067202acbde3ed230ac810bd8bc544e753b25e70642c58bf94c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/diagrams/architecture/architectureSeed.ts:20 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/laneOrdering.ts:30 \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":"packages/mermaid/src/diagrams/architecture/architectureSeed.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"419a4d396dcc214aa1518488add36216181cc78f5911b47b5773884509b1db02"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/diagrams/class/classRenderer.js:240 \u00B7 packages/mermaid/src/diagrams/state/stateRenderer.js:229 \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":"packages/mermaid/src/diagrams/class/classRenderer.js"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fea95f6a22910f009d759f0c84c7648e7709e4f6d3a93bf10b1ca9a0159625"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): packages/mermaid/src/diagrams/state/stateDb.ts:433 \u00B7 packages/mermaid/src/diagrams/state/stateDb.ts:448 \u00B7 packages/mermaid/src/diagrams/state/stateDb.ts:454 \u00B7 packages/mermaid/src/diagrams/state/stateDb.ts:460 \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":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e39ccfba96861f2d6e7f004600fe6b0a0b4bc1a2b6ab55295716a16754d34f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts:311 \u00B7 packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts:324 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"33383f43351b5be53f7cb619f8a177bf78cfd99b8a823ff0b7cfc77e14028c3d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:780 \u00B7 packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts:794 \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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3a42b429674e18cb644366a0ff56cf9ad856e92f2b442d37e7a34935683f03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:87 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:240 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ece77ea4976e9253ac881a6af1e5179b9ced118548f8771fed3ee2f73480b1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1626 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts:1632 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01c50f728739f44b1d61a5451af2964be6d9bed95428bf9d8ebe179d3bfea44"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts:160 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts:169 \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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4221d65e2532ef93ae5b070febec93535b611c5b7a5195c739ac3eabb5c21edd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:599 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:955 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfd6d673393fde3ee63459c5927e3af9ffcdb9b6cc905af0193d23ee353d627"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:781 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:2522 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02abe0fc2f853e81ef7bd812a001c3657d907a4ea0fd67b2d84ced665adb475"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:1766 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:1782 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"4898fd79118e5f898163a18a8a30361075ba6f65867e3c2b1b79a800f33509e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:1836 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts:1937 \u2014 both copies are in the same file, so extract the block 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e93962916b1da9ed81313e84781ce4ce0453b65fadc6602b0c42f4096266378"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:250 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:256 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f62249da5aa25f11ec971ea937619b4f2236c36e00da18c6c3d4f6f8d7aa154"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts:1411 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:1868 \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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e04c52ce74e9cb3f8520be39d57e37091d1462c83ee0c76716ea43b68ba9929"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts:455 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts:232 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"38be2ed1a4e0e0d35239d6c2e42a36a2a3356a692f1cc2a0dca913d6b86a311a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:1359 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2542 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"482814372df5c1bf165d1fdd2168b5a4ef14fd2e61065b36cc82b59cfe287667"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2515 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2540 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":2515}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b64600039b1b393b83f765d13c1cbfd78646be9a0745e07dc6c53a84794ef4e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts:2543 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:2369 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":2543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ced8c4212c1838edaea47d1eb3d33c7b467eb421cbc951e163855de08ad3b9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/validation.ts:119 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:1869 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:2072 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/validation.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c451c6b2c1bbbe67ef87a3506ed5570836a69580cc649410458d1172849204c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:1618 \u00B7 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts:1626 \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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1794afcaf3106d611ee4db5b0fdf8dfe22bad03d82a44269cea84c62df30754"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts:65 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts:84 \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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"565358f3eef8ea86a670c11581b40bc34f9f9c5d00774e0169f9a5aac86ab95d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/drawRect.ts:14 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/text.ts:7 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/drawRect.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26f6bf7154676acfd560efbc091f89c0e82ff1cffbda53e663bf928655873b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/leanLeft.ts:15 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/leanRight.ts:15 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoid.ts:15 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/leanLeft.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78d0c3b76f9a9c0d079d0f65dbcf4604817afe7806c8dc34ce8966a69cf8dec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts:10 \u00B7 packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts:9 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8020b35eece7ad36e393733a7d3d6caa9fabe55a0b2fa4125d5937ceddb1a5a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11 locations): packages/mermaid/src/themes/theme-base.js:222 \u00B7 packages/mermaid/src/themes/theme-base.js:371 \u00B7 packages/mermaid/src/themes/theme-default.js:259 \u00B7 packages/mermaid/src/themes/theme-default.js:402 \u00B7 \u002B7 more site(s) not listed \u2014 the 7 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":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7436563eb4aa5846b1b41f05e05d2f58d09f1fc500766c254a607bc6509608"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): packages/mermaid/src/themes/theme-dark.js:217 \u00B7 packages/mermaid/src/themes/theme-neutral.js:163 \u00B7 packages/mermaid/src/themes/theme-redux-color.js:267 \u00B7 packages/mermaid/src/themes/theme-redux-dark-color.js:270 \u2014 the 4 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"359c0791f828d135f844ba3a3f6266cb3a99acd73a79b7ea9a37c4f0c4f86c55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/mermaid/src/themes/theme-dark.js:225 \u00B7 packages/mermaid/src/themes/theme-forest.js:158 \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":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa99cb5290f25906ee22cc3b3a0405487ac25b8ea12133717453077e4154092"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/mermaid/src/themes/theme-dark.js:429 \u00B7 packages/mermaid/src/themes/theme-default.js:230 \u00B7 packages/mermaid/src/themes/theme-forest.js:192 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"590c67442fd0f53448e26550571a8a6e5efb88fd5e75633325232df8d907793a"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/scripts/create-types-from-json-schema.mts:13 imports ajv/dist/2019.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/create-types-from-json-schema.mts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2a99fd5e2fdee45cd0ca25b2a81bb1b167227c8089a13716be6c504e01829d"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/scripts/docs.mts:32 imports @adobe/jsonschema2md/lib/schemaProxy.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d5078a460fc36f6b0b7783a402f89ef231e7c7fb962aba2a388e9931e33aa1"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/scripts/docs.mts:34 imports @adobe/jsonschema2md/lib/traverseSchema.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"24136a9bfaa0084bfb7e4dcee404366c205a268ab4e4ec95e625545473817087"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/scripts/docs.mts:36 imports @adobe/jsonschema2md/lib/markdownBuilder.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bfbd151edab8e986f547dc859cf5eff527c8df957591e97abd883c9a57b0b0"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/scripts/docs.mts:38 imports @adobe/jsonschema2md/lib/readmeBuilder.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0277fee7b2a58dad2366a4b7aeb4f9f9835b3fa7224547d09419bec302866a4"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: packages/mermaid/scripts/docs.mts:48 reaches into another package with a relative path (../../examples/src/index.js) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/docs.mts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6f01e43a5302b1ca19f9bc2801b4e5c9285fa02c94ecc22af997f01de38cfe"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/scripts/layered-bench.ts:4 imports dagre-d3-es/src/graphlib/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/layered-bench.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c11d5fad7a92523177de0f196fc4c5a1ad00b2b37407923fb0dff22c98c9f2"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/scripts/layered-bench.ts:5 imports dagre-d3-es/src/dagre/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/scripts/layered-bench.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c66b986dbecb6aba574ce0e52aa2ab5128f9c2a0b85736de696a88d295f99e"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/diagrams/block/renderHelpers.ts:1 imports dagre-d3-es/src/graphlib/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/renderHelpers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b02e29f0a5f68d088e97d3af83c59737267ad867b4b91f68cee8aa5a47771d8"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/diagrams/class/classRenderer.js:2 imports dagre-d3-es/src/dagre/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classRenderer.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc3b6a7bacfda0bcb9c607da0fe61f4a7f7ea9c77b8e721d0926caeaaa9cf59"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/diagrams/class/classRenderer.js:3 imports dagre-d3-es/src/graphlib/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classRenderer.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"e245f12ab8a5dabce7d459d71a388610fe1910dd0c128830e8b8bc782dafe49e"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:1 imports dagre-d3-es/src/dagre-js/intersect/intersect-polygon.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowChartShapes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8069a952a9d14761da3f24bc566edf51b19233bd23c80ebece6cbda099acff1b"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/diagrams/flowchart/flowChartShapes.js:2 imports dagre-d3-es/src/dagre-js/intersect/intersect-rect.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowChartShapes.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff39d24ba8284ea5a957535dca80fa05c2861d42985b646767911fef39b848e"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/diagrams/state/stateRenderer.js:2 imports dagre-d3-es/src/dagre/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c5a7a2dbb78c1840da8e2d4e549765d9af746b0c105ebe1d445ce518dba0c3"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/diagrams/state/stateRenderer.js:3 imports dagre-d3-es/src/graphlib/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a5b41db739fb0c8f69f323fdde48cd860fe01dfee1c08287ffff1858c4cd78"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/rendering-util/createGraph.ts:2 imports dagre-d3-es/src/graphlib/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/createGraph.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d932215f1a546a397e8ea458f32216bd554299ce07c0c4cc9cb0d14a6aa45ef5"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js:2 imports dagre-d3-es/src/dagre/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a005a1dc1f81cac4533763a03b82fa905b672a2d2446ddb80f51ad77d09c634b"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js:3 imports dagre-d3-es/src/graphlib/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7c56996faa2e2a4012d7658bebedb64fcd1c23196022b5cf1b9459b5994957"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js:3 imports dagre-d3-es/src/graphlib/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a6a4c2eac4ed63898feaabdba72ae17233c7493c86ef73cd4403829a85c832"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts:10 imports elkjs/lib/elk.bundled.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"83232b71e68b830a6d87d16ce942e5370c6b22fd7c7ceb664a865fb02fff4323"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: scripts/argos-upload-sheets.ts:15 imports e2e/helpers/argos-metadata.ts, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/argos-upload-sheets.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2d0fa4c93495a5b022422225be07b298419a38125bddad355b4664f774fad1"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: scripts/screenshot-order.ts:20 imports e2e/helpers/argos-metadata.ts, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/screenshot-order.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d93a0c7e196857ce93a1f049932f8b888eb43e93389f18f6ccd0e4489ebe09"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-suite-dependency]: scripts/screenshot-sheets.ts:18 imports e2e/helpers/argos-metadata.ts, a module inside the test suite \u2014 test helpers carry no compatibility contract and are maintained for the suite, not as an API, so production code that depends on one is coupled to a module nobody keeps stable. Move the shared helper into a source directory both layers may depend on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/screenshot-sheets.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af8a0ac7d292d6d18ceeae631afaf9308d0a88f0a9f465817cfdffe5ca80516"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 289, cognitive 295): updateColors has cyclomatic complexity 289 and cognitive complexity 295; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ecefdbe311b05adf14cf42ba1b764da4e1ca74e2ddbf0677371bee9db003f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeEdgesOrthogonal (cyclomatic 287, cognitive 562): routeEdgesOrthogonal has cyclomatic complexity 287 and cognitive complexity 562; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b5b64155e9d94debfea727e92b7bebf9e5edc431baca8865ff6f3112e585d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 216, cognitive 221): updateColors has cyclomatic complexity 216 and cognitive complexity 221; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd48474026ee70195874a5ac92ae616aeab5f96ae066ae44f199f2f49ac5d01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 215, cognitive 220): updateColors has cyclomatic complexity 215 and cognitive complexity 220; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"703d61173cf40a384d9b00331a50207c6820d0da44bcee42ccd1f02816881a16"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 215, cognitive 220): updateColors has cyclomatic complexity 215 and cognitive complexity 220; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2a7b0c504d6e04a171728062aa2226e5cbd2d48f7f6da17a0da040b5163afc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 205, cognitive 210): updateColors has cyclomatic complexity 205 and cognitive complexity 210; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b1d74421f0a6dddd4bb98cb6f9e67e4667c0bdd343db949afae37d786c45ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 203, cognitive 204): updateColors has cyclomatic complexity 203 and cognitive complexity 204; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"095efa1cc263e765d9cd4587a7b0155eb1f1398d07cf200a0ff03c5bc5c4590d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 200, cognitive 200): updateColors has cyclomatic complexity 200 and cognitive complexity 200; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"598dc05fcd2b8a03d6231c0f360fd753a7a06c44feeccba96ba895a496c3db9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 199, cognitive 201): updateColors has cyclomatic complexity 199 and cognitive complexity 201; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f28b22bffdca7a57cdce682d048dc0e7880ac13a1a2833cba2dcb5c83bd1112"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 195, cognitive 197): updateColors has cyclomatic complexity 195 and cognitive complexity 197; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark-color.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2adb0b562e2689c72d9e3001888b756fe014717ee5fec20e9b746f5a709c69e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function layered (cyclomatic 190, cognitive 350): layered has cyclomatic complexity 190 and cognitive complexity 350; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"37307c2ee3dde75547cfec4bd73aef898121b2f80082b15518cdce0ae08c5b66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 189, cognitive 188): updateColors has cyclomatic complexity 189 and cognitive complexity 188; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d0f67ee64a2dd059b47a80ab86b7829c48159b0787d4a7cb6c1f4cbfa49b76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateLayout (cyclomatic 180, cognitive 406): validateLayout has cyclomatic complexity 180 and cognitive complexity 406; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d80253d5df9538584ae2dd352be872793acd50503cfa257eea2d6cecd22b12"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateColors (cyclomatic 173, cognitive 174): updateColors has cyclomatic complexity 173 and cognitive complexity 174; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neutral.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"20816eb8c634c99dd322c39bb0e39d16320c7103ecfc675abff948cc19f92f2f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compoundLayout (cyclomatic 89, cognitive 196): compoundLayout has cyclomatic complexity 89 and cognitive complexity 196; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d40209f366f1c75e05792f92a6aa27c0c6952f9af8c8764522e5aba514e688"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assignCoordinates (cyclomatic 89, cognitive 133): assignCoordinates has cyclomatic complexity 89 and cognitive complexity 133; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"157b2c37e0f8a9a53a09528040d195c19bc9673006ef88b14ee3d43be5be2f15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function position (cyclomatic 83, cognitive 203): position has cyclomatic complexity 83 and cognitive complexity 203; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fe8c120b1f756d16939e377d2a41f3138e547a8d033eaa729442ce2702d81f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function insertEdge (cyclomatic 83, cognitive 85): insertEdge has cyclomatic complexity 83 and cognitive complexity 85; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa00698693dec5fc73759c12d16260383d420cd50317b913a72b4e0b000398d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawMessage (cyclomatic 74, cognitive 90): drawMessage has cyclomatic complexity 74 and cognitive complexity 90; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"34616a36b5db26f9ded32e6e012df5385d361a52240dd254d63c25d9fd4a755f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function positionGridEdgeLabels (cyclomatic 64, cognitive 162): positionGridEdgeLabels has cyclomatic complexity 64 and cognitive complexity 162; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"95aa6fbca6865624a715e31225147d365aaebb11cf1e540b7d432c491c2105c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeCrossings (cyclomatic 63, cognitive 153): routeCrossings has cyclomatic complexity 63 and cognitive complexity 153; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5526d12de46e1ea2b07a0120b8b77193ccd69048061f3cec262a296002a48a52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function layoutContainer (cyclomatic 62, cognitive 88): layoutContainer has cyclomatic complexity 62 and cognitive complexity 88; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e718531db4565e77cd77636047c569c3a618cbe7cf868092126a81b13e30d80"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function classBox (cyclomatic 55, cognitive 57): classBox has cyclomatic complexity 55 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38a6c8079a51aa4539e55e64ba362e11b8f60b7e3ea0858933f47f4575fa6cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 54, cognitive 38): draw has cyclomatic complexity 54 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 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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5e9168845e2da60bcacbfcfa537abda3f62e860f5891a44aaaddd3b0ef433d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeBackToLayoutData (cyclomatic 53, cognitive 125): writeBackToLayoutData has cyclomatic complexity 53 and cognitive complexity 125; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f56018242a9adb3d2ba601d955a86279b1de9de35267dff0c02eeb2c16a535d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reduceCrossings (cyclomatic 49, cognitive 77): reduceCrossings has cyclomatic complexity 49 and cognitive complexity 77; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b976f0b969527a3216cdfd08545ecd2b0e0be5e0f21f445c6a24fdda238654"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sparseContainerSegment (cyclomatic 48, cognitive 90): sparseContainerSegment has cyclomatic complexity 48 and cognitive complexity 90; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62f0286580195e6e2f452e6f0f7dd9e35cab570978fae0558791345b543893b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addVertex (cyclomatic 48, cognitive 74): addVertex has cyclomatic complexity 48 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb57820bd0d224a8fffbb0cd32a91d2d0ddd3a1788cfc058ed351a615ae60e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collapseShortTerminalStub (cyclomatic 47, cognitive 101): collapseShortTerminalStub has cyclomatic complexity 47 and cognitive complexity 101; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/terminalStub.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a5534d81a5eb85e2f5df9b0b92549d5fad2f38cd9ef099c24ce24ad7599969"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addVertex (cyclomatic 46, cognitive 70): addVertex has cyclomatic complexity 46 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac24083e65b5d1d62ce108e8684c66a260ee92ec694b57fe13e11ad1f96618b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildOrthogonalPortPath (cyclomatic 45, cognitive 56): buildOrthogonalPortPath has cyclomatic complexity 45 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd7af33b3dd5c0867f0f52e65a3cb2748c1ee6b18574863e9d76c97fe91f01f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function search (cyclomatic 43, cognitive 60): search has cyclomatic complexity 43 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1117f91fb51b419c61253287d818e0aa451eb4460754d4fe4cfced9d080e08"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function erBox (cyclomatic 43, cognitive 51): erBox has cyclomatic complexity 43 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/erBox.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"455c7f17010a5e3476802405aa5c6a62a89698b77be07c09db752c1797d36cfc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 43, cognitive 44): (anonymous) has cyclomatic complexity 43 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffbc0586bd857f983aacd76b1652c83cb7ef544dd206202ae8bc4cd2c4b7082"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apply (cyclomatic 42, cognitive 22): apply has cyclomatic complexity 42 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":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"05733363a57c06116f256e8f97eb79d9a59a5fd121939955ccac68430a8f2404"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routePath (cyclomatic 41, cognitive 63): routePath has cyclomatic complexity 41 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/routePath.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36a442aff4a9a7010929530a1d19eb99f310ffde3301a70cba3cb678eecf618"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function anchorLabelsToPolyline (cyclomatic 39, cognitive 68): anchorLabelsToPolyline has cyclomatic complexity 39 and cognitive complexity 68; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcc655cb33b5dcae7d2a864765342e98fc03486bdf1965943b49f0df86ac050"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rank (cyclomatic 39, cognitive 64): rank has cyclomatic complexity 39 and cognitive complexity 64; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbfe1b6c2f66321527f438c9e135f51ac9e3e8da09a0cbce77f71ba0b1f71c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assignDemandCoordinates (cyclomatic 39, cognitive 60): assignDemandCoordinates has cyclomatic complexity 39 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e5986ab89072393a46234ada220e03939c711da05d9d23c439ee279615ee53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawArrow (cyclomatic 38, cognitive 95): drawArrow has cyclomatic complexity 38 and cognitive complexity 95; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"e122e55660a07bbe96994582e4d2b2e9e07c6c479058c8272e8959c31b4b5a98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateLayout (cyclomatic 38, cognitive 59): validateLayout has cyclomatic complexity 38 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/validate.test-support.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1273ba4e9df8694c2ea50a901ea6439da259c197fd29a95e6bdd15a803a7f9da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawText (cyclomatic 38, cognitive 38): drawText has cyclomatic complexity 38 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"546546bb5478308a699a9f61159944297fc61909741f91d272708ed0e631f02d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routePlan (cyclomatic 38, cognitive 37): routePlan has cyclomatic complexity 38 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d0a28d9a56c0e33d400a801dd0ea1bfd984c51dc5e078767a6e436f3e44d00"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function settle (cyclomatic 37, cognitive 114): settle has cyclomatic complexity 37 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01e3f1374bdf5c4161e7d2f799b3fa5131fe4caa7d75fca9062e49becb3a506"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyLrDirectionTransform (cyclomatic 37, cognitive 49): applyLrDirectionTransform has cyclomatic complexity 37 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/lrTransform.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3969e53b98e32a37e06c78c1d128b3a5251234e172ce4a8def5e9d60014c4c09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 37, cognitive 36): (anonymous) has cyclomatic complexity 37 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6c1d537e552642c964cf1fc23260b64153c3de0e6319fb6c63165e3dd3fead"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 36, cognitive 82): (anonymous) has cyclomatic complexity 36 and cognitive complexity 82; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/svgDraw.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5cbce0d978f88b31cfc79e458d9431e3dba1527d51ceb0f6744325e02e8b85"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function computeSubtreeCrossCounts (cyclomatic 36, cognitive 58): computeSubtreeCrossCounts has cyclomatic complexity 36 and cognitive complexity 58; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossCounts.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3b3df8dd57476a2996a8a9a688d8d98281955c00e5362177a41db0a1590995"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 36, cognitive 53): (anonymous) has cyclomatic complexity 36 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe25073dd2d1afd510e6a946552598da6e8099199fec989eb65a4d09b577c07"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function simplifyDetouredEdges (cyclomatic 35, cognitive 84): simplifyDetouredEdges has cyclomatic complexity 35 and cognitive complexity 84; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/detourSimplification.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4faf071946dea5cc6ac052daefe8eaaec083a267655d8237a4a9d47a1c98f28e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 35, cognitive 69): (anonymous) has cyclomatic complexity 35 and cognitive complexity 69; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"b407468eab03972dc496423aae903ae32f27d61bb866dc17dde7148fe71a86c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sparseSelfLoopRoute (cyclomatic 35, cognitive 59): sparseSelfLoopRoute has cyclomatic complexity 35 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be4bec5432d0154b3f1bb291dae80eb95d2dc98f11c87bf6de7230f550df529"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function straightenCollinearSiblingDetours (cyclomatic 34, cognitive 75): straightenCollinearSiblingDetours has cyclomatic complexity 34 and cognitive complexity 75; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/siblingSharedFaceRouting.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"deba0b32787bce325655934f68e5c468f6548b28a1597e6bf8940cc6c6b8de96"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getNodeFromBlock (cyclomatic 34, cognitive 14): getNodeFromBlock has cyclomatic complexity 34 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/renderHelpers.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0466bd6e7e3a00f6a896ba479699b39569042d835407abceaa2157ba099ac3c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assignTracks (cyclomatic 33, cognitive 65): assignTracks has cyclomatic complexity 33 and cognitive complexity 65; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2087714a533481da5422ded788b05e1fb0db0e5bd62960264a9083d229f0e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareRoutingModes (cyclomatic 32, cognitive 50): prepareRoutingModes has cyclomatic complexity 32 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"384dd23392780090e13de9ff4242dc9290e4118a10e2d973617dcada09013c4a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 31, cognitive 68): (anonymous) has cyclomatic complexity 31 and cognitive complexity 68; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"3151576a1a561e6d04d3a6619b6bc2db495a95eaebb7ac163b81ac3b7a01e220"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeGrid (cyclomatic 31, cognitive 38): makeGrid has cyclomatic complexity 31 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":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43a190055b217771ad42fecc6269306ac7d0b870f831e714c1f5d2f583fa34e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function portSwapToLShape (cyclomatic 30, cognitive 62): portSwapToLShape has cyclomatic complexity 30 and cognitive complexity 62; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/portSwap.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a2b9b6f165a92561ceb3ae90ca3369008e3dcaf69b312233d223a3104af442"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 30, cognitive 60): (anonymous) has cyclomatic complexity 30 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/query-process.ddlt.spec.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1ab8721c58175f2b75b17dc352a2d7e4e73788953b5a2d1b3c44992674447f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSwimlanesLayout (cyclomatic 30, cognitive 54): validateSwimlanesLayout has cyclomatic complexity 30 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/validation.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdbb5eab614d684cb1a4ef2bdf72af2e5324fd32e0c67504888ad6e03f7496d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateElStyle (cyclomatic 30, cognitive 48): updateElStyle has cyclomatic complexity 30 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54a4bfa96b14665c1d523d7b5ee3022c0d0219e6ef504848c678529ad6c5b13"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getMaxMessageWidthPerActor (cyclomatic 30, cognitive 48): getMaxMessageWidthPerActor has cyclomatic complexity 30 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0a86b28de6686ba589e7d25a732593b0fcd2743960ef5c398b18cc326beca0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 29, cognitive 60): (anonymous) has cyclomatic complexity 29 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/blockDB.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9572dcbf69f92f51bae8d8257ec6c37911b8c10ef2a3e8c9b7205e0a374016af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findCyclicEntryNodes (cyclomatic 29, cognitive 59): findCyclicEntryNodes has cyclomatic complexity 29 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b62104df102872e4a487041f473e12ca405c337969d5ddf6fa17697888ffe4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function kanbanItem (cyclomatic 29, cognitive 32): kanbanItem has cyclomatic complexity 29 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/kanbanItem.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb0b962e0413493ebfd18515cff9c28a18bc0216d6d44467f6ffc904ffc0de6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function layoutBlocks (cyclomatic 28, cognitive 50): layoutBlocks has cyclomatic complexity 28 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/layout.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b3d8fd38f437243db15e8045092abbf19b5de725b5b8554bc6b650fd7d7ecd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildEndpointPlan (cyclomatic 28, cognitive 41): buildEndpointPlan has cyclomatic complexity 28 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"848336699606091abc8c3ae7344f4517fc5b27a35209aad59eff8ccf81d61ef8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyLineJumpsToSvg (cyclomatic 28, cognitive 38): applyLineJumpsToSvg has cyclomatic complexity 28 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":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd61c4208319acbace8de50fa9b65fc25a0e7c3cf5e24bec9a11d12d20a845d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stripLineTrailingCommas (cyclomatic 27, cognitive 40): stripLineTrailingCommas has cyclomatic complexity 27 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"04abc9cc9f209262dd334619eec2c75f6c81edfad4be3b8fc1d956dbe65e4485"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hasDiagonalRenderedEndpoint (cyclomatic 27, cognitive 31): hasDiagonalRenderedEndpoint has cyclomatic complexity 27 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f826697e3f9553235ae8efaa2fc635a1f80c62e63597526169882d7f15becc09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readGridConfig (cyclomatic 27, cognitive 21): readGridConfig has cyclomatic complexity 27 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e35e2aa8f0d68189c7968f703d76d9e8e0a5a381d1d321c28583b9059a992de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function calculateLoopBounds (cyclomatic 27, cognitive 19): calculateLoopBounds has cyclomatic complexity 27 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"445bb70bf7b2dd9ba98635e2f651089a01e15f766e1cd53a619a319c41c83e3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawCommitBullet (cyclomatic 26, cognitive 48): drawCommitBullet has cyclomatic complexity 26 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"de02e7027ed7cca044330a3778f5448ba724a22c86a1c2b674231a71c40384fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveRenderedOrthogonalCrossings (cyclomatic 26, cognitive 43): resolveRenderedOrthogonalCrossings has cyclomatic complexity 26 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1367651543eedfb110db17ae4ff51cd49320605470d020e1562cb4e57a91e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 26, cognitive 33): (anonymous) has cyclomatic complexity 26 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf18ae15b09acbd268a8e69dd1b6822ec02dd520b5eac58c6b276a875ab1773"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function waveEdgedRectangle (cyclomatic 26, cognitive 24): waveEdgedRectangle has cyclomatic complexity 26 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/waveEdgedRectangle.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20f6d02dd53286f3e8ccd5d89cbe2bb8395e77e90fb2d8b39540778ea814298"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function outlineEndpoint (cyclomatic 26, cognitive 20): outlineEndpoint has cyclomatic complexity 26 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/orthogonalEdgeClipping.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fbafd02608a51f385cb6df1f620cd878af913cf72acb3b75c9cbb133965fe7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 63): (anonymous) has cyclomatic complexity 25 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38a0e2af390e86652ab85792009de9ac49fd545d63c39278b35dc2f7c5e210e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dataFetcher (cyclomatic 25, cognitive 55): dataFetcher has cyclomatic complexity 25 and cognitive complexity 55; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/dataFetcher.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1ab0c6d3ce957fb449ea234685f01f511df4403ec8c14f6dc1a061ea2f6aa4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setBlockSizes (cyclomatic 25, cognitive 48): setBlockSizes has cyclomatic complexity 25 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/layout.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb398c31c3b96c1ab4fb9a2a6656264f1abde768567eba48bbd621bd1e7643a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 25, cognitive 41): draw has cyclomatic complexity 25 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/cynefin/cynefinRenderer.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba82fd945c7f20d5a679ff383c90a922d9880309179eab30113ba60ac1314b7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function preprocessBoxDrawing (cyclomatic 25, cognitive 38): preprocessBoxDrawing has cyclomatic complexity 25 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":"packages/mermaid/src/diagrams/treeView/boxDrawingPreprocessor.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"231689a9f88a8d55b177d71c7398753a2e6cdd9e45be042df1e89de033c8a120"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function canonicalizeOrthogonalPolyline (cyclomatic 25, cognitive 38): canonicalizeOrthogonalPolyline has cyclomatic complexity 25 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"174f521d72d510dcbb737a352706d3b08b7d179754bd4a3d5d1823e9bf5e266f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 25, cognitive 26): draw has cyclomatic complexity 25 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treemap/renderer.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad547a830b5ce8d819192286f56cb788783ca92fbe6cf76521bde5763f6330e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectElement (cyclomatic 25, cognitive 24): collectElement has cyclomatic complexity 25 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e19970072aa75f9b4e4ba5acc1297d68036c5b940e4d363df11e7f819b5d4d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 25, cognitive 20): draw has cyclomatic complexity 25 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sankey/sankeyRenderer.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55b6c2123955291483e34c59bccec21e24d9edd16976ad46c349631f64d333a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function linedWaveEdgedRect (cyclomatic 24, cognitive 22): linedWaveEdgedRect has cyclomatic complexity 24 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/linedWaveEdgedRect.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f60856c2f8c6fa62c2a97c842c2a8b8940de146db7510ef15ac48efcf2c317"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 20): (anonymous) has cyclomatic complexity 24 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6e2a4ab09c3633a9930fd8c869120d847152e4f875529a2aa0ce97a72faea0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyMetadataAssignments (cyclomatic 23, cognitive 45): applyMetadataAssignments has cyclomatic complexity 23 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e35f39fea6a40dd50c22eed8d7e2808c7af4521f9efae1bec472662e7b2005"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildEndpointRoutingOverlay (cyclomatic 23, cognitive 45): buildEndpointRoutingOverlay has cyclomatic complexity 23 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77a2c328123f182360448e5604bfd683661ebf3ce56635eb9f7de9634dfd953"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function computeNeighborhoodPreservation (cyclomatic 23, cognitive 45): computeNeighborhoodPreservation has cyclomatic complexity 23 and cognitive complexity 45; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ede3d93e9a4a10b27054f4bef9c6ff621ad7760b8a5f6eea112854eef4f0fdf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pastLabels (cyclomatic 23, cognitive 43): pastLabels has cyclomatic complexity 23 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e70bb57d4c097f53f611c67c92ad567fcf46b070c2316c9f931f7d3c2e2371b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rewriteEdgePath (cyclomatic 23, cognitive 39): rewriteEdgePath has cyclomatic complexity 23 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0453bcd2cc9a16d58b8d0e73095e8db122edd48e237577a858a68727ecf0832"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getData (cyclomatic 23, cognitive 38): getData has cyclomatic complexity 23 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":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfb2989b5c662374617b136fb97dd2dd27b7131cdde7c947247ee67219fa480"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readString (cyclomatic 23, cognitive 36): readString has cyclomatic complexity 23 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7338ad079edd668f8f470ac96bbddb38ac6803a6e48b98ad7e01aa6c84bd76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addActor (cyclomatic 23, cognitive 26): addActor has cyclomatic complexity 23 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4b24d37e3b9401a4789bade7a2d275cb7c1e96ec4668c398b9d3d3b3744a7d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildEdgeData (cyclomatic 23, cognitive 19): buildEdgeData has cyclomatic complexity 23 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2750}}}],"partialFingerprints":{"codehealthFindingId/v1":"f237e3ebac0b37489d295e8b36fc8e611d4c9a903ef78127b4704c3f0b0adedd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 48): (anonymous) has cyclomatic complexity 22 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":2164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcd25c4b84f141669fcbd416518e45702b253d1614df05faa65f45a05064533"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 37): (anonymous) has cyclomatic complexity 22 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f833de5c01bfdc8e343c4bfea160c3b054a993e53fbcb4f01045dba73de2fd6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 33): (anonymous) has cyclomatic complexity 22 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/pipeline.hoe.lr.spec.ts"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"2248cc991b228f665223872b83d40b5858913bd66af30c68d8a91116f27693ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 32): (anonymous) has cyclomatic complexity 22 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/pipeline.hoe.lr.spec.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41054ef5cd3655e64c3e9b739f31df28cee32e61b4e03864f569385e11dcc78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function requirementBox (cyclomatic 22, cognitive 30): requirementBox has cyclomatic complexity 22 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/requirementBox.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9c8e4e1c7cec61bdf7f1474f11a9bce51260b600cc8dd07675ca1e0b583f8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scoreLayout (cyclomatic 22, cognitive 29): scoreLayout has cyclomatic complexity 22 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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ab1b24c14ec3f60a80e880ab512ddf2e9b9b7bb848410d792257f13cc1ae01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildDrivingTree (cyclomatic 22, cognitive 28): buildDrivingTree has cyclomatic complexity 22 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/driving-tree.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68c254fa31f9954510dbf2631a76458889f3ff79dee1f3a02a9eec5213753eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stateStart (cyclomatic 22, cognitive 24): stateStart has cyclomatic complexity 22 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/stateStart.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22144618eed8bb02be75b0d6085c6af242aa69f152d939112cb9401f66f4143"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 20): (anonymous) has cyclomatic complexity 22 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2019}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7a7dd33aab4467f06300f88ceabd678ffea359155c78eda8ccf0490e659706"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function orthogonalSegmentsCross (cyclomatic 22, cognitive 17): orthogonalSegmentsCross has cyclomatic complexity 22 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"42318a670164c69c6219ca8b661b87d772dfb14c8899283f099895f217259f95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function blockedCenterIntervals (cyclomatic 21, cognitive 35): blockedCenterIntervals has cyclomatic complexity 21 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2cfa48fe41c3433782ad5e1584073c53d5e7fcfec1c523b9810894f04e242d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getAxisLabels (cyclomatic 21, cognitive 32): getAxisLabels has cyclomatic complexity 21 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4581141cdb3b0bd5bbbdb3cc9346adfd2f5693de24e34568fd3c1f028a16ecfe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectScope (cyclomatic 21, cognitive 32): detectScope has cyclomatic complexity 21 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/e2e-diagram-scope.mjs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bdb8573fa29228210c69232baccca1dd4fa284e259accdadeeb2489f5de304"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderDiagram (cyclomatic 21, cognitive 30): renderDiagram has cyclomatic complexity 21 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfbe45359331aef12cd50d53eef893383f88a7e016b071ecc071317ead2b166"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addNode (cyclomatic 21, cognitive 28): addNode has cyclomatic complexity 21 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/kanbanDb.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"718df5441ed0e6d77c802edbff49dac990450161e70b17e493456df77b81dac2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawActorTypeCollections (cyclomatic 21, cognitive 28): drawActorTypeCollections has cyclomatic complexity 21 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70eff5117de5cabdd21ac446540668607ed421e6262cc824be4d3365342ede5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawActorTypeDatabase (cyclomatic 21, cognitive 27): drawActorTypeDatabase has cyclomatic complexity 21 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"09454b2c54b67ea3b47af7ceb50d6eca2485c26ae03782a8686bb4943517ef1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 21, cognitive 25): draw has cyclomatic complexity 21 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a836de893bf1f5991f78deb258a4204bca99f1467008dadd15c5bb79901ebb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function injectDomusEdgeLabelNodes (cyclomatic 21, cognitive 25): injectDomusEdgeLabelNodes has cyclomatic complexity 21 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/domusEdgeLabelInject.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2813df29e3629c71c715d8fd4325c57d4b2eb877a0ef19517f444f38f0224051"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clearAnchoredOverlaps (cyclomatic 21, cognitive 25): clearAnchoredOverlaps has cyclomatic complexity 21 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"200ff8df4faa54473c5a96caaa288841fb160bca428062238d89653899e4f8c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stateEnd (cyclomatic 21, cognitive 22): stateEnd has cyclomatic complexity 21 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/stateEnd.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c26e1ab5d1842d5dbc5d1e675d2b72295d0f40ce494fce5424d3a9c9afbcc22"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toLayoutGraph (cyclomatic 21, cognitive 21): toLayoutGraph has cyclomatic complexity 21 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layoutData.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f6821463b5a5b81baee04fe74b0d38be0a16b49d403b25d9288ae07227b5ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 19): (anonymous) has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f4edc8facca8812887d22fae33cab1d3cea84df383ea93100ec8426dc5ea28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 12): (anonymous) has cyclomatic complexity 21 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.spec.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"176be208880d7cf88f328ca23cb8b053d996dff8a00acedb90279756af12a57c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getSemanticModel (cyclomatic 20, cognitive 46): getSemanticModel has cyclomatic complexity 20 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"937e8928d2454306f49938f2d8e2c813272edbb97027d4c3169eeb87fc9841c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function adjustCrossLaneSources (cyclomatic 20, cognitive 39): adjustCrossLaneSources has cyclomatic complexity 20 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossLaneAdjust.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f32dc892a9b9ffb7a92268f48209e8d0d5e1deaf61025e58d3d1170735ce500"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function snap (cyclomatic 20, cognitive 35): snap has cyclomatic complexity 20 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1734fb3f9ecce74f22b10850e08521fd350138730e9a02f13d6da092c4cde4c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getData (cyclomatic 20, cognitive 28): getData has cyclomatic complexity 20 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34b80fb57aca29ba27404551d764b209e02bf339f835697db78c183275b6d1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 27): (anonymous) has cyclomatic complexity 20 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/sanitizeDirective.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08f209fd37e7fcb399ad3ab1e875d547b4b72347adfc2e917e655a61b3be0d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function consumeNumber (cyclomatic 20, cognitive 26): consumeNumber has cyclomatic complexity 20 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseJson.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e7798c8f6e903a162cbeb08c417e31fff6501352fe4558319eb89393e58d6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function endpointCandidates (cyclomatic 20, cognitive 26): endpointCandidates has cyclomatic complexity 20 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"61342b314c230ad2bc033ae3aa7b81e851cc2b2f5bbf9962be8bd43de9445833"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addSubGraph (cyclomatic 20, cognitive 25): addSubGraph has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4730cbebea7722544d52a5e3854143b0d2877b0f2d59b2d9953d46d38507f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 20, cognitive 25): draw has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fad5644b2e510d41dbf3c73b8dedebd3a502f7e9fb6559519c45ea9b0062f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function computeRankFaithfulness (cyclomatic 20, cognitive 25): computeRankFaithfulness has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9c9505d0cac0f6e599a9109a86feb496a5100402fb0d4b04244a93a793cd4f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cherryPick (cyclomatic 20, cognitive 24): cherryPick has cyclomatic complexity 20 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a87b008783dd9906b9a69b6bd57e9bdd3924a43d65b61f95dffe039544a4b63"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 22): (anonymous) has cyclomatic complexity 20 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c857f51769630b98cf66ff35f1c6cd633e190f7ece51c242c8294ad3f3c79e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function triangle (cyclomatic 20, cognitive 20): triangle has cyclomatic complexity 20 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/triangle.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeff9663e4fc2f214b6484eaa6e7753444e9d7a97ba4651e7a22f70cb77462e9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function flippedTriangle (cyclomatic 20, cognitive 19): flippedTriangle has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/flippedTriangle.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f605b94d51e6319957b842242c4ef689d805cab2c764930e94d4011116505da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function maxRectangularHairpinLength (cyclomatic 20, cognitive 15): maxRectangularHairpinLength has cyclomatic complexity 20 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/mermaid-work.ddlt.spec.ts"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"65455bd6b2d8504d9a9d59ba7a792dde3237257f6447ea6669a663f77c589b41"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function calculateEntityVisualProps (cyclomatic 20, cognitive 11): calculateEntityVisualProps has cyclomatic complexity 20 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/eventmodeling/db.ts"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7c9b0daf4d921df221d40b6706a73ec5d387841ef6eeed543b3dc68d5ee834"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assertLabelsPlaced (cyclomatic 19, cognitive 52): assertLabelsPlaced has cyclomatic complexity 19 and cognitive complexity 52; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/__tests__/terminalLabels.spec.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"82422fe25d39b48ceb517b2d1963f6f70da01587d40939c4c8530fd61d64c9f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMember (cyclomatic 19, cognitive 39): parseMember has cyclomatic complexity 19 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classTypes.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4930aa925712ea9ccfaa033f94eb2f69a4a116ac7eddb71c6aa1dbced649b01a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateGridPlacementCoordinates (cyclomatic 19, cognitive 38): validateGridPlacementCoordinates has cyclomatic complexity 19 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":"packages/mermaid/src/utils/gridPlacement.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4913273e9561fa0a1992d18e308474c7600fc1b90571d8d46a634934e7d8f4a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rerouteSegmentAroundRect (cyclomatic 19, cognitive 32): rerouteSegmentAroundRect has cyclomatic complexity 19 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d5f51d0b018a3fb745fc4bd9d8abb434cf9d867f48cae194411e080628bf57"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildGridForest (cyclomatic 19, cognitive 29): buildGridForest has cyclomatic complexity 19 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/groups.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef876076daf361d4e07dd9e5b613ffae33ce9d360765eb64380c34ca6abc261f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 29): (anonymous) has cyclomatic complexity 19 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/query-process.ddlt.spec.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca19a50e7b92e6ecebfffda83bc40f7278bc17758848394adfbf317a4caff97f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareEdgeRoutes (cyclomatic 19, cognitive 28): prepareEdgeRoutes has cyclomatic complexity 19 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc02282485e60bf838654aa04d025ad3c534fc0508adf1986a04d7921d411d53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function insertEdgeLabel (cyclomatic 19, cognitive 27): insertEdgeLabel has cyclomatic complexity 19 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de1a0db703039df77882bd55ebe820b081bf55f1d146caa4a564031d9e9e0c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawActorTypeParticipant (cyclomatic 19, cognitive 26): drawActorTypeParticipant has cyclomatic complexity 19 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd3dec5097c61968aa33a33220acf5b6886d8f52e7c26963bf06323b761cc23"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 26): (anonymous) has cyclomatic complexity 19 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"0492f78f7b26f3bf3381dad7eab964ae30fa8474380feae4ab88be23e31b1af5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function matchExpected (cyclomatic 19, cognitive 23): matchExpected has cyclomatic complexity 19 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/conformance/runner.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7eb9d4a74f8063309101ae7f09b6112b510c948db175e0c3e4e7ebc60306589"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rethrowMetadataYamlError (cyclomatic 19, cognitive 21): rethrowMetadataYamlError has cyclomatic complexity 19 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a23b9fbf17f9c1ba2f47f85ebd84d1b9bc1b5d9efd1c1e2f8776f8cf50f97d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 21): (anonymous) has cyclomatic complexity 19 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/util.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c63ee93fb0d5e7578dcb34f13ee79561adc66a9640d5561fee1dd8528ef3a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sparseSameContainerRoute (cyclomatic 19, cognitive 20): sparseSameContainerRoute has cyclomatic complexity 19 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1deb20ac1ac63ece0580c72def14a95e3dc8f2bbf0fb0bc365a867e6b4260973"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 18): (anonymous) has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/parser/flow-edges.spec.js"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f132ee48f0e47becfbb855e5cf50e9b47a5af8e8859d9113db802383048828"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getStyles (cyclomatic 19, cognitive 18): getStyles has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/styles.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a2eddee743ec1dda5dd18b915f9fbbe82156bfb57d3848464d83b702b758a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getDefaultConfig (cyclomatic 19, cognitive 18): getDefaultConfig has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88f7c3ce279cea1e9468157c22809fd7ecea6100d6db2a94be8abadf668b4a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stampRendererFields (cyclomatic 19, cognitive 17): stampRendererFields has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/parseToLayoutData.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b327e46e2e28925a74b74b59a55a56ddc43ed3f057f2d26b5df673e93f6aab0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function multiRect (cyclomatic 19, cognitive 17): multiRect has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/multiRect.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d710f33dd8d34371d8920c238b6fc7137318f2e6ff000cc96489735c8c4f95f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function multiWaveEdgedRectangle (cyclomatic 19, cognitive 17): multiWaveEdgedRectangle has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/multiWaveEdgedRectangle.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"476cac9c47d0bae61db3e729d58d85d9a1a7f138d35c041c757403ff645104a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function slopedRect (cyclomatic 19, cognitive 15): slopedRect has cyclomatic complexity 19 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/slopedRect.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bea6cfb2e23028b7780b96021d1f538ff26efda82d89aa4e6e47c64f482308f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function calculateSwimlaneProps (cyclomatic 19, cognitive 13): calculateSwimlaneProps has cyclomatic complexity 19 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/eventmodeling/db.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad60a49bcc6708dc265a66fe713ebef9bc200ff12e1add68994f4ffd4cd6f992"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function separateSharedRenderedTerminalLanes (cyclomatic 18, cognitive 56): separateSharedRenderedTerminalLanes has cyclomatic complexity 18 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f37ffa118ccc57a2d30e9998cea9eb2cad02c0dbbbea3c66bbb722d965ecf57"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function swapDestinationTerminalTailsToReduceCrossings (cyclomatic 18, cognitive 46): swapDestinationTerminalTailsToReduceCrossings has cyclomatic complexity 18 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"1751d4fa3ec3dd3fe6dd26669a27943aced0f4950b70e2e03d091e36189674d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function labelPlacementWithExtendedDetour (cyclomatic 18, cognitive 44): labelPlacementWithExtendedDetour has cyclomatic complexity 18 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1897}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b51d67a8ecbd6723bb8ebaf3d135728973d56aa8cc97fabe9d8dfb9debf66be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getData (cyclomatic 18, cognitive 28): getData has cyclomatic complexity 18 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfdcc1e8308b0f2a5ab6f3d367f5a27117d2adb4806b2d5fdb1d35e7d6cc795"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildMessageModel (cyclomatic 18, cognitive 27): buildMessageModel has cyclomatic complexity 18 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e86e14960090eb8d3ab6a0c97a0c1cff80217086c931a5b59999d69f3eea8f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareGridLayout (cyclomatic 18, cognitive 27): prepareGridLayout has cyclomatic complexity 18 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"321e602e0f76791a2f501de6a5eff5decd8f24a5d15a72bb82e01278cb32fc88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addRel (cyclomatic 18, cognitive 25): addRel has cyclomatic complexity 18 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2149fd714b12d686aadb3f5e8400a8cbbe4c156862f3c836aaf4fec75e838406"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawActorTypeQueue (cyclomatic 18, cognitive 25): drawActorTypeQueue has cyclomatic complexity 18 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f5883dddaca5b85892d950e588b063d6c587c038047255a6e6319c7965c13e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 25): (anonymous) has cyclomatic complexity 18 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/router.spec.ts"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"162b399f8e0ce55a1be7213cd723af6fc8e6930e0e4694b47d9ffeb6b0c373fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function swimlane (cyclomatic 18, cognitive 24): swimlane 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":"packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ceb7e727097a2c3fc1c903441ab56b03ffacd2a69d7c4618fa2099c3d7dcbfd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 23): (anonymous) 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":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/baselineDdltSpec.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1f48e3475a49700e625db8063a3bbc57dcbe5314220d84d4b6b2feb89169b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildWeightedLaneEdges (cyclomatic 18, cognitive 23): buildWeightedLaneEdges 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/laneOrdering.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf839bdc0a37973fdf72ba6a4adafd16bdc6de5cfaf4eb03957d299333503d90"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 18, cognitive 21): draw has cyclomatic complexity 18 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4d29a0d39dccbeee7f951f2ba5fe2d141631ef5cea0b1fb7520a9ae3a404ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizeElkEdgePoints (cyclomatic 18, cognitive 20): sanitizeElkEdgePoints has cyclomatic complexity 18 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2504}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1344e0ea719a8fabdc8eb95fec1602a82296b2a87e151dbeeb9b420598f65a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 19): (anonymous) has cyclomatic complexity 18 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcee45d930e870f33cfb745b0da3d68289f6f94c4735248e89ee85d3845d95ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function halfRoundedRectangle (cyclomatic 18, cognitive 19): halfRoundedRectangle has cyclomatic complexity 18 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/halfRoundedRectangle.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b7b479696d049d15def5bf2a348f2d1f17147cba8073c25692b4790d524fb7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyActorProperty (cyclomatic 18, cognitive 17): applyActorProperty 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":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"2399f3b3f568a77013bbe0bfebcdf62b90f56a66659cfd094f0e5697d8809e01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function forkJoin (cyclomatic 18, cognitive 17): forkJoin 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/forkJoin.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6d8c521840363acccfa350bcc57686c9d3fb0fa7c2e6cf9a06b1f5d4b145d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function segmentsCross (cyclomatic 18, cognitive 16): segmentsCross has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"602f02e2c9056deec511a61bdd7ff134e8a82a894078d4205e1bd0f857c535ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function windowPane (cyclomatic 18, cognitive 16): windowPane has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/windowPane.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4af5acd9febd032af56ad23a546f97862429d11dcdd150de7440a02207fd9a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 12): (anonymous) has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d437696c64c5eb86922f81bd2799fe22589f79cfc49527c1b17e79c894532cc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 12): (anonymous) has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/router.spec.ts"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"95136749a3b09c0c29fc36c69a1d75bb07dfa29d0f6492691ad1fb16562011f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function labelAwareSelfLoopCandidates (cyclomatic 18, cognitive 12): labelAwareSelfLoopCandidates has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d8b3afbf74243b9bbbf45947e4c026cda942816450ccb1bd08f5ba45864fe5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function labelPlacementWithDetour (cyclomatic 17, cognitive 42): labelPlacementWithDetour has cyclomatic complexity 17 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1992}}}],"partialFingerprints":{"codehealthFindingId/v1":"2979bc95769e90a4879fff6bcd378add93f58fa638aed706e142f779ea9908f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function straighten (cyclomatic 17, cognitive 32): straighten has cyclomatic complexity 17 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5d68b779eeadf525668d25eb1fce261041037e01ebadf217d8b13cd720d874"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function intersection (cyclomatic 17, cognitive 30): intersection has cyclomatic complexity 17 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1d1c54f553b0cb62bbf5e70279fb0f6719d84a92f3295b7146edf7e2157e2e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 30): (anonymous) has cyclomatic complexity 17 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/baselineDdltSpec.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2066aa6f3ad71a218b9504f26b35fa22e5376bd8986224fd38b0daf27dd1729c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTextNodes (cyclomatic 17, cognitive 29): renderTextNodes has cyclomatic complexity 17 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c1c22640fc6a5984f974064de6bde67d4f75530938ffcc2741c8280608227b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function internalEdgePoints (cyclomatic 17, cognitive 28): internalEdgePoints has cyclomatic complexity 17 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2cb43a3f00301fcf89b060907717ed5b43fd59bbe72060e234378a30916d29"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assignLayers_LongestPath (cyclomatic 17, cognitive 26): assignLayers_LongestPath has cyclomatic complexity 17 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.longestPath.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f249766a363726b477d66b672107d54509c5de6348a29eaa65082cfae349a39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reorderLayer (cyclomatic 17, cognitive 26): reorderLayer has cyclomatic complexity 17 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase3.ordering.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe34a2b4c258cd3fa43ec4435228e1512ff1ab946f0f1f980847f5f7eea58ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createEdgeLabelNodes (cyclomatic 17, cognitive 25): createEdgeLabelNodes has cyclomatic complexity 17 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/edgeLabelNodes.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"812db2565b8a184a340c3d592bd73a46eab5e365dfc9b596e5151269a443d28d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function materializeAbsoluteGeometry (cyclomatic 17, cognitive 24): materializeAbsoluteGeometry has cyclomatic complexity 17 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"072c9fb6c16a70e8f32a4d508340de6e94044e0dbbb5efc2a1671372bb7a4efd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 24): (anonymous) has cyclomatic complexity 17 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/detourSimplification.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"831f952c546e1556437066163935d51c1538af3ed075d4bcd6a055f2bdeeb79b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function genSections (cyclomatic 17, cognitive 23): genSections has cyclomatic complexity 17 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/mindmap/styles.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"556ae74ad28ae6bef76aa1dc2f746be52468abc74a1a45dd9abeba2117cb4f7a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 20): (anonymous) has cyclomatic complexity 17 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treemap/renderer.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"77441aff52ce30c017f427f6ca32b09c2811e79c6f246847251ed696cbf32787"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildLaneModel (cyclomatic 17, cognitive 19): buildLaneModel has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/lanes.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"63292959af55655432f5a1da454239cb67c27f2801f88f7bddab638fd0031dad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function linedCylinder (cyclomatic 17, cognitive 19): linedCylinder has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddc0f924838d2645b9ab6389bdb31a81751e8983ea91f07e6f99f2f577f424d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawActorTypeEntity (cyclomatic 17, cognitive 18): drawActorTypeEntity has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebda5ec0d2c874e27504b2ca21a0e97f2cb8b5f5809b2f89753681d667915ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function straightenFront (cyclomatic 17, cognitive 18): straightenFront has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"287ebd7d1bf39b51e8749f476fc662cbcccbe1ac3cffe36d4439198681a5ce25"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function trapezoidalPentagon (cyclomatic 17, cognitive 18): trapezoidalPentagon has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/trapezoidalPentagon.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20c47fe8902bbcd474c6791fd6d81b1fb9e44ae5616ef246489c6f7d7591a9b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function waveRectangle (cyclomatic 17, cognitive 18): waveRectangle has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/waveRectangle.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ded05a4e9a33e481aefffc11a7d08dfb4036ffd8421c75ef4301229b2781a5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function imageSquare (cyclomatic 17, cognitive 17): imageSquare has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/imageSquare.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27744463e9bde9a138cdc29e4bddbc48ad94e17b33d9cc301b5b9b4b9b6dc6c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 16): (anonymous) has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac53e64ae85d21a7fddc98493963bb9294670338ca52039d623fc152154cde3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveItemPlacement (cyclomatic 17, cognitive 15): resolveItemPlacement has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"8407f57294eeb4efd63609058b197d017f9533f81d81a41b078924c38a2d9c44"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildPairedPortal (cyclomatic 17, cognitive 15): buildPairedPortal has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"7619c11a35cdc2713c4fd8dad01a5e8613964bf7857679248cb3d22e8391273d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rect_left_inv_arrow (cyclomatic 17, cognitive 15): rect_left_inv_arrow has cyclomatic complexity 17 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/rectLeftInvArrow.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9862503dbca64f352199ed1cec32727fd05c55c42f599be2b2c165fb32af4e46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addEdge (cyclomatic 17, cognitive 12): addEdge has cyclomatic complexity 17 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureDb.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d10d54a8d76b81c267b437d55e25642fbcfb2251a79797bb2d3d294c636d0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 11): (anonymous) has cyclomatic complexity 17 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"192ce5be2e190bf4eb955476685cdc2197b7c5e596513d697dab57a94def7373"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 10): (anonymous) has cyclomatic complexity 17 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/testMatrix.ddlt.spec.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a27d9f819cd336d6debdd57fd5dfda96160d4d98403e92109f86caf90567d89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nudgeSharedInteriorSubpaths (cyclomatic 16, cognitive 43): nudgeSharedInteriorSubpaths has cyclomatic complexity 16 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/sharedTrackNudging.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be3b54b94726aa3ac0df5ddd1386effb4ef6acab0953aa57ed959212b8d00b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderDoc (cyclomatic 16, cognitive 32): renderDoc has cyclomatic complexity 16 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b7483effb9836450e4a73449d34955b04c9ccb568e83b391c413eef6f1073c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deriveGridContainerLabelGaps (cyclomatic 16, cognitive 30): deriveGridContainerLabelGaps has cyclomatic complexity 16 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/labelSpacing.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"af99059642b9904c019fd6c710b8492b2efcddc5c881af990d68cf1e694704a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shortcutRedundantOrthogonalJogs (cyclomatic 16, cognitive 30): shortcutRedundantOrthogonalJogs has cyclomatic complexity 16 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d22acaec64648244e1874260687bcde2d8998e9eef3abe894129944be5625d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizeGridPlacements (cyclomatic 16, cognitive 28): sanitizeGridPlacements has cyclomatic complexity 16 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/gridPlacement.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6803fece830d4d64481c405a524a10a6a664467eece91766b7c7d8e5d5230938"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function squareAnchoredEdges (cyclomatic 16, cognitive 26): squareAnchoredEdges has cyclomatic complexity 16 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cdcff08d82bc5402debb7d539a29883a7aa99d4d5599a1081c065c8f35ef4e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function annotateUsecaseElements (cyclomatic 16, cognitive 24): annotateUsecaseElements has cyclomatic complexity 16 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseRenderer.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"641280469cd4dc567e77b500110f6d9f9a2eddabff92c2bb9f81e69d23cd22a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectDirective (cyclomatic 16, cognitive 23): detectDirective has cyclomatic complexity 16 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c55451d971574ae8da3781acc9197c25bdc3872417eb064de8f25bf662f8a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 22): (anonymous) has cyclomatic complexity 16 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseRenderer.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2fc71b85de8e7ba9ad19035b5325046d355d8e6d498af966b046e0fd393d1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setLogLevel (cyclomatic 16, cognitive 22): setLogLevel has cyclomatic complexity 16 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/logger.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9713e9ae87236822942ded6cd3204e410a8034d36954c995ce2470ddb1f58f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractor (cyclomatic 16, cognitive 21): extractor has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99ed897bb592a9bb3eaaa90b1620e4bfbef9e8943c21b93d1aea720465e0c31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shiftLeftLaneTitleBandsLeftOfRails (cyclomatic 16, cognitive 21): shiftLeftLaneTitleBandsLeftOfRails has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf4e7990c164098f473bdc0c93e6800f66365fada037414b84005e40d48a1fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assignLayers_Gravity (cyclomatic 16, cognitive 21): assignLayers_Gravity has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.gravity.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0553bd1c48eeda97bab2932a296c5fe0255b99f121d779b7209297ec882a22"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function tiltedCylinder (cyclomatic 16, cognitive 20): tiltedCylinder has cyclomatic complexity 16 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"434304f56ccc1a78c6d6de6963157484f8b9404653cd8a456d99ff645953ab26"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function separateOppositeEdgeLabels (cyclomatic 16, cognitive 19): separateOppositeEdgeLabels has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1976c4cb302fe34ed6d689893fad3cd53a512dcf9add49f4c0de844c6e6b906b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeWithinContainer (cyclomatic 16, cognitive 19): routeWithinContainer has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60e3776701f6b6b4a934f83cb59e5fc07c480b61be0105df34103dc349c53b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 19): (anonymous) has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/classBox.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6381a2e79cce8b4baadc7a07ff5c1d65db1f9c8821f6d5d758a93106dc0b4f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 18): (anonymous) has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagram-api/regexes.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"28196643dbb7970aeb3881fdba6b3543baa90a6eceff532eebb51ca241ce55ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSearchTopology (cyclomatic 16, cognitive 18): validateSearchTopology has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6d19759c9a84df1cabc2373c794d3f10e16521a8f71182eb54f60ea599c210"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 17): (anonymous) has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/assignWithDepth.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"58206aa743709924aba89e720faa0d931b5de64da0d38afc140a7d64c3dc7430"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cylinder (cyclomatic 16, cognitive 17): cylinder has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c022b709d95c84b7cdc6664a9e85346ad424cc5136a1edf81a953b09aac85c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function x (cyclomatic 16, cognitive 17): x has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/lineWithOffset.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a928e7c20992c957ae223ce56700455958eb2d2eb6b65acb17f323515fb5be20"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function y (cyclomatic 16, cognitive 17): y has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/lineWithOffset.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d9c2b402ea47bcbde6ebd342c48b87d9f27e7421250a496ef32d2e8c26725d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function segmentsCross (cyclomatic 16, cognitive 16): segmentsCross has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/__tests__/raykov.repro_crossing.spec.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c840cfc36ef123af37756a963650fe7d278a20b4150b9f78ecc15cfba5879b69"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getStyles (cyclomatic 16, cognitive 15): getStyles has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/user-journey/styles.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38685b31505fac53d81b67abcf6a0b524706838e7e2b7605aef84a264196759"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 14): (anonymous) has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f0771e756e74e1ee0ba12020369afd3915c9286d1f903c7bd85ccbbd74fb64"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 16, cognitive 14): main has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/screenshot-sheets.ts"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"35478148fe7eda70f332a1fbf7ebc984ac80a7067364e173a05a112396bcb9b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 13): (anonymous) has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"288ae33e76dab1360aa3e633241ef810962f3e1939f23c43fdf1b51c38c6fc74"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function curlyBraceRight (cyclomatic 16, cognitive 12): curlyBraceRight has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceRight.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a86f0e7c806b560d4b49c58f6c6eb86f360959b5956361f12d7557dbe7d9be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function curlyBraces (cyclomatic 16, cognitive 12): curlyBraces has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraces.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbb29d6ea51d45c51e4c60d26f8241a95bab9881b7b60b3e254d784286c77a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawRels (cyclomatic 15, cognitive 29): drawRels has cyclomatic complexity 15 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":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bdff9fafef87dcb9b566890cc7eb5bf86b5b564377706b6177f98959ad5d05"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawNode (cyclomatic 15, cognitive 29): drawNode has cyclomatic complexity 15 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":"packages/mermaid/src/diagrams/timeline/svgDraw.js"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e8a9fa09575d87310e4398725b073472b8848b585b118f7634fa57642c8e88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reassignCrossingExternalRailChannels (cyclomatic 15, cognitive 29): reassignCrossingExternalRailChannels has cyclomatic complexity 15 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c92f8dfdaffdfb1129913ecf5f7a36a58781cb1f5d26566675c9a6b47148a06"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function snapEndpointToBoundary (cyclomatic 15, cognitive 28): snapEndpointToBoundary has cyclomatic complexity 15 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c56df738b2736f7ffbd96d2efe5ed370e41c8a81f37001b5ec5e2ec71dcf40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function intersection (cyclomatic 15, cognitive 28): intersection has cyclomatic complexity 15 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7a515c6963e63479545cf23523b3030975b4fc528407152357bec0ac68e622"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 27): (anonymous) has cyclomatic complexity 15 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/sharedTrackNudging.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"23df12ff53342fd5714998744bdfe791163383659ba6bb4d9bf4650e2b0cbc3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addContainer (cyclomatic 15, cognitive 26): addContainer has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ed635096ebd9458db247784c8f26a77ba56be6180176713a76e23916470aac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addComponent (cyclomatic 15, cognitive 26): addComponent has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3b7a09c7f57150f66e219037989bf919ec1f53de6ddbbd10d2d31c94d075c6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addDeploymentNode (cyclomatic 15, cognitive 26): addDeploymentNode has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"873b09a795575da2f4480586eb70dc9532d24f29cd79ed3fdddd48fa16a2ca81"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function positionEdgeLabel (cyclomatic 15, cognitive 26): positionEdgeLabel has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb334017c716ae86a354839ec30b7fab6d0ba5db2e339d17fbe0b026d83b96e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createContainerGroup (cyclomatic 15, cognitive 25): createContainerGroup has cyclomatic complexity 15 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"c117b33ecaf85696dd42541322d5ecbbabc1495c0990763a336af998b84f14c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function matchSemanticAssertions (cyclomatic 15, cognitive 24): matchSemanticAssertions has cyclomatic complexity 15 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":"packages/mermaid/src/diagrams/agentflow/conformance/runner.ts"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"6040ea1d9f6c31208102033e2f4ff04565358755f5d6145230e88c97f8ca74f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawExcludeDays (cyclomatic 15, cognitive 23): drawExcludeDays has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67e7a0cca9e483fc009db518c4bdccbb9d6b8c8db1590a03e0e958a0e6fee0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addState (cyclomatic 15, cognitive 23): addState has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"db22d402f2bca6181a2d30805836aad1fe55e53f36671f687de044398994a782"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addActorRenderingData (cyclomatic 15, cognitive 22): addActorRenderingData has cyclomatic complexity 15 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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cd2b3d76de35c5f0b2f6c0f2d0c960715bef385be7486ae2d753dc3e46344a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSameContainerRoute (cyclomatic 15, cognitive 22): validateSameContainerRoute has cyclomatic complexity 15 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"508e721005f638d9561c2b324b74232d582bef4095e8c9a954c5e165d5e9898a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getStartDate (cyclomatic 15, cognitive 21): getStartDate has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ad0b19c03927d7f0624ab33e69392d61d372b818093097166c90940287844f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildGridLabelRequirements (cyclomatic 15, cognitive 21): buildGridLabelRequirements has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/labelSpacing.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"59115bf423dabd6fcf229bb1638395afb8a0c881b40a401f65892d03e8300af6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveAmbiguousEndpointSides (cyclomatic 15, cognitive 20): resolveAmbiguousEndpointSides has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb65c7bd35eb6580ed69310f0e818490ee4d9dd939c898c4a7242b7cf4338a1b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function liftTopLaneTitleBandsAboveRails (cyclomatic 15, cognitive 20): liftTopLaneTitleBandsAboveRails has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a01d1f46027e8ecefb9c9f768883114bca940b06209387e919c5cf3685e838a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function entityName (cyclomatic 15, cognitive 19): entityName has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c097236ea35862324d83c8626721606b775684889384fed8564c5a5c9bb915c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function minimumBends (cyclomatic 15, cognitive 19): minimumBends has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"02de0614a83b158fda520e0a708fdd3e72cd18959ec1c7e494b59df23a475f8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 15, cognitive 18): draw has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/timelineRendererVertical.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbe06a4dcc043c2a4b0bc66f7e157fdf64e2192e102c9b094e3df894c041ccc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 17): (anonymous) has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseRenderer.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"137f2f4ffa28dac7e475fc5a70e734e389439b4677976fee6155f42bb163be0b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function captureNodeSizes (cyclomatic 15, cognitive 17): captureNodeSizes has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/ddlt/sizeCapture.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d071de71c58c4ad5650028e9bc6852d74dd94dbc0bb7cd484bb023caf7987796"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cutter2 (cyclomatic 15, cognitive 17): cutter2 has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2973}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfaea7489ed8dcceec2ff45e3d785a01ae7e89128c02d11e5bccbd214150c60"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 16): (anonymous) has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"825b115fbd6dacb18b5a2ea8c94a2a6e651be0129d50425ec77c06413b81d6e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function visit (cyclomatic 15, cognitive 16): visit has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/driving-tree.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3936db59c5c331bb7d5eaa35687e8431509879377ec6debe8e1e23121ee515"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hexagon (cyclomatic 15, cognitive 16): hexagon has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/hexagon.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7638d051d1ce1ed535d2f18aae59e1a60dd6d79e5af5ec8ca3b3883b548e1b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rectWithTitle (cyclomatic 15, cognitive 16): rectWithTitle has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/rectWithTitle.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e722ccd393a865fede5775d3589a5bc68b944a2aea61e20e1c4081dfe12c8a76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function datastore (cyclomatic 15, cognitive 15): datastore has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/datastore.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3c65e7d10e4150fcb80a0f1071af977aa8e950ccaa4b749d4565b6fe9975ab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getStyles (cyclomatic 15, cognitive 15): getStyles has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/styles.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a4fd5dfc7de3ed9b71b67098de4b24bf60fa4f8d256f7edaacc4e2398338fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54b269957b11c7e0a290a38e2543edafe6d01ede4f983abe99ca5892be1ee4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function groupBoundaryEndpointAttachment (cyclomatic 15, cognitive 14): groupBoundaryEndpointAttachment has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf3aa57002b88651d901fec63f4589bff6602207003627165aa3e747c7930fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function postProcessSwimlaneLayout (cyclomatic 15, cognitive 14): postProcessSwimlaneLayout has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/postProcessing.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82953fa5fd72dcfeef2620fa732c45851d8d03fd5a88d314e332be296857717"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function taggedRect (cyclomatic 15, cognitive 14): taggedRect has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedRect.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7473476a6cf1a958e783b9d73a31aaa8a98ac488e91028dbf1ecdd377976bef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils.ts"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba88d608d287d71a8ef6d82ff7f53c4db59b8def5edda5c340cea57e38619eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateRelationship (cyclomatic 15, cognitive 13): validateRelationship has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"0190f32b77a2ee5e2154e8e6345eaf9bbb73ee4269010c12b6e0503f0dca0d10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shadedProcess (cyclomatic 15, cognitive 13): shadedProcess has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/shadedProcess.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"65da82460a240fc66be60dfd4198bf2aab391e9984d57a240d6d32a66d2183fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 11): (anonymous) has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/pipeline.knsv3.lr.spec.ts"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e8369169559910bc9fe67e745cac32bdf3f240f95f41717e2c3bf3b2df087d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function borderSideForSegment (cyclomatic 15, cognitive 10): borderSideForSegment has cyclomatic complexity 15 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bccb2ad5923b0067fa0501b12bd8f934a4c6783d824793cae74af05561536d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function genColor (cyclomatic 14, cognitive 39): genColor has cyclomatic complexity 14 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/styles.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f656fb82a827eb4f81b76517fbdc56164f265abc8973fd0a1335d01a9d5fe9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function alignLabels (cyclomatic 14, cognitive 39): alignLabels has cyclomatic complexity 14 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da5a211bf505063f9bf400bf566d040c3b13b3f04156395785e496537f210e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildVisibilityGraph (cyclomatic 14, cognitive 31): buildVisibilityGraph has cyclomatic complexity 14 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea2d14ce7c1b00e4e6e974c83138b2f75b391049500c7cdec400efd10c4c9e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function alignPorts (cyclomatic 14, cognitive 29): alignPorts has cyclomatic complexity 14 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbf8898154269406b07309f7be91a37255c86d39be39b9976ba48f9334164da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function polylineHasSelfConflict (cyclomatic 14, cognitive 27): polylineHasSelfConflict has cyclomatic complexity 14 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc70becd02bd284c6b0f46e735593c8e1c8afec53621548fb93c54620e831ebe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sortByBary (cyclomatic 14, cognitive 27): sortByBary has cyclomatic complexity 14 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c3ea06189cb70f5b0d4e9b34a976069bec3b4b755e5ec98824f3bff2e497ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 26): (anonymous) has cyclomatic complexity 14 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"280ab6dae258fbab594b619562e318edf0d83f9168e796d0b056dc384e31d1fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 24): (anonymous) has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c7f97c8e335cc3b095cfdad2359cb2e1c1330c063d492712aace61c644cdb8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawInsideBoundary (cyclomatic 14, cognitive 23): drawInsideBoundary has cyclomatic complexity 14 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":"packages/mermaid/src/diagrams/c4/c4Renderer.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b941d64f2183b62e84b5a64b5d02415b27781be6d99b0441462e71e2c0b570"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 23): (anonymous) has cyclomatic complexity 14 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":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c72046b0efb306d8ffd004603cf90cbdda5c27784496bfe663ad5390c06a83"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateRelStyle (cyclomatic 14, cognitive 21): updateRelStyle has cyclomatic complexity 14 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"024801e6cb43f732dc084ceb5b6ffa00f661d48c6a8ea773770632f7709d4c19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addText (cyclomatic 14, cognitive 21): addText has cyclomatic complexity 14 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/shapeUtil.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca9ff320e741167c32818a99de4e00138be4c37ba46289cff2d568c6fe5b837"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setElementModel (cyclomatic 14, cognitive 20): setElementModel has cyclomatic complexity 14 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"c217a923473363df079a571fb81cc77afaddf0c42d7ce54fb06bb4837eb9c370"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildNoteModel (cyclomatic 14, cognitive 19): buildNoteModel 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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c61a7d1d3b8729f7de4d6a7974a09b5a51f2049d272cf7b8af3d5e22626617b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function straightenEdgeTerminals (cyclomatic 14, cognitive 19): straightenEdgeTerminals 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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"1948be3b73d48a077d41891f82cec42f98a199813633724a618d2a4a8ec3a088"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeCollinear (cyclomatic 14, cognitive 19): mergeCollinear 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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e606e60f52e8cbf3ae9c143b75b3de752415762a1980ad87d1fc458fb49d4eef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mirrorAxis (cyclomatic 14, cognitive 19): mirrorAxis 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/lrTransform.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"096f726b42f10dd489b58b2a8f76ff8fed358b5d0b893c69f6e57bc2e38270be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateAndRefreshElements (cyclomatic 14, cognitive 18): validateAndRefreshElements has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"9840716e397d0a4c15edc2061eb3023d2b3398292cd01a0bbf263b170810889b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clipOrthogonalEndpointsToNodeOutlines (cyclomatic 14, cognitive 18): clipOrthogonalEndpointsToNodeOutlines has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/orthogonalEdgeClipping.js"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e236febd51aa8a64f32f486da34ed64a3878dbaaca8ba5e84d6949e0d70160e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 14, cognitive 16): run has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adfa6ba8c2faeb17e6ee23842f7eb50ab39a073df5e91d231563e490d8051b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawActorTypeControl (cyclomatic 14, cognitive 15): drawActorTypeControl has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"024118a608e1d1321af5965bb2f1dc23c707be3c903454ff31773504f214e96d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawActorTypeBoundary (cyclomatic 14, cognitive 15): drawActorTypeBoundary has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebbe57c6258a9fbaf2df6604722eff5ac17f8b396ccac74df3ce328351e2b46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addSubGraph (cyclomatic 14, cognitive 14): addSubGraph has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"210b530853dd4b4dc4b778aac93297f8b6672a5ed2c08eb71d00f961e1c3f68a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function innerEdge (cyclomatic 14, cognitive 14): innerEdge has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"846445b672accfa02f5fa163a345367be835308f0c752c78fd14e9fd13fe313f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/railroad/styles.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d012f4214ee99ca4e7789395b716cbf91c52d74fd3b6b6b256a523a8248db769"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/c4LabelHelper.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e6e9b2e784bd97397150a71117c279a5f4cf434c2e69805daad27d8590b35b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderUsecaseActor (cyclomatic 14, cognitive 13): renderUsecaseActor has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseActor.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86eeebc18f61e9ba061f61efc1bb2366ec11f4f3d171356b23f5a517cc4d332"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawNode (cyclomatic 14, cognitive 12): drawNode has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/mindmap/svgDraw.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"781475de4a39ea8776493c24a14cf61685c77670c7a31f5823e86d1c976eac10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee55e311ad81ec0601befe8be8b611447aab4499c8a21a1a1b2194612c2a784"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function note (cyclomatic 14, cognitive 12): note has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/note.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc78870fdc18ee7dbc8e91f0fde585c08a84d35c09a285c6c28510f71e2b65bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getStyles (cyclomatic 14, cognitive 10): getStyles has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/er/styles.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae58ae205485e7185c3b8a7cdefa1d5830b75d49bf0bf7783f68089843ea96d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 10): (anonymous) has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cbd0b09253ca6b3114d7bec9ca30bf2943d9e14b220e6486bda1cbcfbfa060"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 10): (anonymous) has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a8c604a41f2338475effe9226ffc1efa4e0e808cc3f33f635a36e8a9a25f94"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dividedRectangle (cyclomatic 14, cognitive 10): dividedRectangle has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/dividedRect.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40a728f4e0bc811adcedf25956a4a0428c12960b19dc7734ae50d18219664f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function taggedWaveEdgedRectangle (cyclomatic 14, cognitive 10): taggedWaveEdgedRectangle has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/taggedWaveEdgedRectangle.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b448cdb0f79cf80c56f5f88441fa527205bc22982cfe76c7b33700cdc5f193"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 9): (anonymous) has cyclomatic complexity 14 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac49e579d3266d4b7c189158ed0efb6e5ccd9abca3e5a722f43fdca711fdd14c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 27): (anonymous) has cyclomatic complexity 13 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/rendering/xychart/nightly-check/xyChart.spec.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18ef6bbc0c66a4043980ecc79169f7b394aea05bc565c06e45405b334bda493"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 24): (anonymous) has cyclomatic complexity 13 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":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"749d45b384c9e05c47d79011a2ec1817f09f701dbb0d1432da4f7a9d118f67cc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 24): (anonymous) has cyclomatic complexity 13 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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/geometry.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cd335b41fa28028c7e8b74aa1ed6762167465d797711cfb9187ae090d972b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function orient (cyclomatic 13, cognitive 22): orient 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fea52f46aedd4957efa842dad4d46a94cfac21c0bbeedff7afb7cf554f539f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 21): (anonymous) has cyclomatic complexity 13 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/siblingFaces.spec.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"683534caac07ead04e3fda8d1ed310b535d970f98c43a69944fe11538748b16a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveGridPlacements (cyclomatic 13, cognitive 20): resolveGridPlacements has cyclomatic complexity 13 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/placement.ts"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c27ed2ff51efb36f722c7c4cc6fe17e76a9c13d54095afcbfaa2c22196ca7a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 20): (anonymous) has cyclomatic complexity 13 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d7733c9abe7ef93ad4380e1f0fae0d82ae6a1c5257306579ce532470165b89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 13, cognitive 19): draw 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":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"20676b83113878eb04dd2e83334f98145eab695c3e605316e41484a564e8b1fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function populate (cyclomatic 13, cognitive 19): populate 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":"packages/mermaid/src/diagrams/packet/parser.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"814e36cf8dfd0cb4c60ebdbe026ea0aee4ca76cde7f58611dba8c47f86930c5e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function check (cyclomatic 13, cognitive 19): check 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce05ebb62827994de3c485e25a0928e455b84317638afc851ade520883992a45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createIntervalIndex (cyclomatic 13, cognitive 18): createIntervalIndex has cyclomatic complexity 13 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ebdc1cc01c6c82bd44ea35d896a650fd52a5aabcd2fa1a56b18a8133a7a474"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runKnsv3SwimlanesLR (cyclomatic 13, cognitive 17): runKnsv3SwimlanesLR has cyclomatic complexity 13 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/pipeline.knsv3.lr.spec.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"104d67def2defb13ea9e04125db2cbac1336ae037f5a11701095a90551c0c328"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshBoundaries (cyclomatic 13, cognitive 16): refreshBoundaries has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cf12180446a81f7a7df9ee58c0a186095de6f4b6d5849b519f85383793bf89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function nearEndpointBandDistance (cyclomatic 13, cognitive 16): nearEndpointBandDistance has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a0e5f9a5af902acaa34408a597d2b0f749eaa79871dfe3aa4125e2e87b3f2f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function usecaseSystemBoundary (cyclomatic 13, cognitive 16): usecaseSystemBoundary has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"f981545312fa0be641c70ed55ac22151780aed0dc34593a0ea80ba4c8d78d02c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function insertNode (cyclomatic 13, cognitive 16): insertNode has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/nodes.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"324c4ea8bfe3ff16faba9573f9f45567539208f5a97cd626d78cf468cf03363d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferMetadataKind (cyclomatic 13, cognitive 15): inferMetadataKind has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d4f634e156a81d921a0b034ffe4be92cdcb58f94d0d69a40973fb3bb61cdf8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 15): (anonymous) has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/usecaseAst.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"9453c82d055395ead04c7ade8f2c140434dc619bde91ff7763b40fec2a7f7a66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/venn/vennRenderer.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f33e7d41efd3ddb4d88973a293ae0ca23cc4cda14004de0bb4fe457f1a78992"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"2faee0bd7a1ca4174b89e626ced862a04682c0f6dfff11b80ee93c60d4de3ff2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function intersect (cyclomatic 13, cognitive 13): intersect has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/cylinder.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"257597465c99911ff0dda426d32b743d0306a50a30018288492814d4ef48029c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function intersect (cyclomatic 13, cognitive 13): intersect has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/document.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9864454c60e062ac1be4eaf3694c6116d69c7426f5c987153314cbbe645627"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function iconRounded (cyclomatic 13, cognitive 13): iconRounded has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/iconRounded.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9c18d1f911d7cada1a11ba3c60431445e0f9fe53aa85f23a93b5ec79075aef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function iconSquare (cyclomatic 13, cognitive 13): iconSquare has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/iconSquare.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"13916904b2bdb27821f6ecf5c533a2c86b4e6b9b5c8412ac384d89ecac3c7eff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function intersect (cyclomatic 13, cognitive 13): intersect has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/linedCylinder.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e5edd423cec2408e52eef1034f65655ccea4a5c798480f8bb9cb7846b54623"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function intersect (cyclomatic 13, cognitive 13): intersect has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/tiltedCylinder.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb536406f05fe6826aa09bf640274567f2d283a6e46babf110541b36ee5b7e15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function usecaseBusiness (cyclomatic 13, cognitive 13): usecaseBusiness has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/usecaseBusiness.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65ba47bb8e4b3a8c856ae59014954ff445289068ed9013c3743a4af68864f10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawEdge (cyclomatic 13, cognitive 12): drawEdge has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff1623eb3801ffc77b5334178ae33c481d0a358293584202322aa9e578842cc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb9cd64e236d2544c7995ec0f9d77652b7361627014dfffa97b4b1eb1e3e039"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function iconCircle (cyclomatic 13, cognitive 12): iconCircle has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/iconCircle.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fee94461454c747dc92a991172a57ff3635e7afa73293340215b2882f38a75"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extract (cyclomatic 13, cognitive 11): extract has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d3275277752afd6f8c1b323ccb74f14092df8581771c9660d1103a5eacdbe6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readAnchor (cyclomatic 13, cognitive 10): readAnchor has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b1ace06dd1ecd47d96f60a1719da616927fd166a046c2a4946cd5c3a58fa34"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function curlyBraceLeft (cyclomatic 13, cognitive 10): curlyBraceLeft has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curlyBraceLeft.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a12c945a099db7c71be444bd5b7c74b5cf271db9855e18e93a2ce6ab05503a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 9): (anonymous) has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/sharedTrackNudging.ts"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c2ce7773fda7174202bc621beb014f0449df0c5792ba261d0fc34e5b6018d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getDataStructures (cyclomatic 12, cognitive 33): getDataStructures has cyclomatic complexity 12 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/architecture/architectureDb.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad871b0233626672e6da0d9a5fe8214b9698d5e530f903d9e7cc0d71e5d40b43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 28): (anonymous) has cyclomatic complexity 12 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae62a0792f912ebed16f26b499ae23f45cbee7fdd8adc109b94bc5a5c3b3229"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function insertEdges (cyclomatic 12, cognitive 27): insertEdges has cyclomatic complexity 12 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/renderHelpers.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c395f97009e5f28aae580b6a53b08be00ea222e7efff0ac06e9432a35ab86ef3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getEndDate (cyclomatic 12, cognitive 21): getEndDate has cyclomatic complexity 12 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":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"656a32c55d1df7d398d31d67f06871dfaca909724d269db7ca85f10aa7a974fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transposeImprove (cyclomatic 12, cognitive 21): transposeImprove has cyclomatic complexity 12 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase3.ordering.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"716cf573b5c4ea89b66fc66b7f5fd5e70464736ed73ac6d13e23eebba79fcef9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawCommitLabel (cyclomatic 12, cognitive 20): drawCommitLabel has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb25433dad110f4cdd4d8431a8c2f95dc4a699468dc4cad506a3f36242dd744"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateContainerSegment (cyclomatic 12, cognitive 19): validateContainerSegment has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerConstraint.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45510e05a676b960f442c89f19dda0df47076ee1b53fbf3321ba9735960775a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addSingleLink (cyclomatic 12, cognitive 18): addSingleLink has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"987af6a8430f4b2dfc6ea70df3947b5b4aad75143edddf4911b94a009b543a53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 18): (anonymous) has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f4a665ea299d816527bf1709815caddd56a14262d5d3eeed1b49047dc976e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function docTranslator (cyclomatic 12, cognitive 17): docTranslator 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":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"160935e71fbb088ee4d7b8c93b1d0cffbecd2c0ac06d846d35ae4a49cce558cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runThrowsErrors (cyclomatic 12, cognitive 17): runThrowsErrors 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":"packages/mermaid/src/mermaid.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f408e2ce06c6a70a3253565a404ec2d8dcdcb20518f2fd6ef233ad7d8b5149d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 17): (anonymous) 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"d192f202e1495922a41c0aa2d97faed20bb1ca9384134534f835080df91bdb39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collapsedGroup (cyclomatic 12, cognitive 17): collapsedGroup 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/collapsedGroup.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0299db282d91d9ba0d34d7bf1d0d841d505bfc2534643b99289e8172f07a29a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 17): (anonymous) 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":"scripts/screenshot-sheets.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"75574ba6227a5bc1a595cb4534decb0aacd47e3702ebe260120c07cc7918ac44"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawRels (cyclomatic 12, cognitive 16): drawRels has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Renderer.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85b238cff4d46de9b0a54abc23606ce41ab31bb1838fd82cb87a8bb49531dfe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function populate (cyclomatic 12, cognitive 16): populate has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/treemap/parser.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce7ee25618ed22f95eaa6b1528d8900bda1ef2ea47c4babfe00d8d4a4fb9dc5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function orthogonalPolylineContainsPoint (cyclomatic 12, cognitive 16): orthogonalPolylineContainsPoint has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/helpers.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea4e66f0951e01b7a54e4400eff7ba4f2473c58494b53de9e735032030674bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareLayoutForSwimlanes (cyclomatic 12, cognitive 16): prepareLayoutForSwimlanes has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f2a0de457321cd80446c11db804f916031be6c9e6976ee11246a94bbd7578d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 16): (anonymous) has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossCounts.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb188dcd36e0773597957529cd291feb5f49e9cdc7e97c677c2f8c685e8bb82e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toGraphView (cyclomatic 12, cognitive 15): toGraphView has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc7f256377d38fe06d8c6eba80ee65a9b8e5780dae363a147c4ffa10f533c2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addEdgeMarker (cyclomatic 12, cognitive 15): addEdgeMarker has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edgeMarker.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3886a26b954826ef80abfe628eabb977a680ecad9241fd5d0c69cb924cec05f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromText (cyclomatic 12, cognitive 14): fromText 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":"packages/mermaid/src/Diagram.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cc0bd81d2a6545a351308f1207fd2614e01d4998d62b358f1aec138834d29d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function calculateSpaceIfDrawnHorizontally (cyclomatic 12, cognitive 14): calculateSpaceIfDrawnHorizontally 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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bf6a020d47c809a71995dcdf8896edbcee9d1fd8132458a37fc317b00df630"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateGridCoordinate (cyclomatic 12, cognitive 14): validateGridCoordinate 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":"packages/mermaid/src/utils/gridPlacement.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"74abe8b95b6be09867b591c57582b41af733165c5953c1167cf4a8c4173c7850"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function adjustClustersAndEdges (cyclomatic 12, cognitive 13): adjustClustersAndEdges has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"9160c94ff200ab1afadae2fc2d875e90166bf94944039324e4549bf2cb02f230"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/geometry.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4123f4ddd97d8666154ff36f782e23f00c19466c02ad1e31703933b0308f4c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/__tests__/raykov.router.spec.ts"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"4765c46ed2ec5a2259f59dd562a6d095df347fd3bd2b1d30755548200d2c2c78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function genReduxSections (cyclomatic 12, cognitive 12): genReduxSections has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/styles.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2338f2191a9a309324842535d5d85621975959499fa31b483a44291c5e3caa50"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runSwimlaneLayoutCore (cyclomatic 12, cognitive 12): runSwimlaneLayoutCore has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/layoutCore.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"559e69cb3e3ba82e109b4d48d4df3231a2fe6fb28de7f32a9693143e1ebf30ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function icon (cyclomatic 12, cognitive 12): icon has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/icon.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"605b19a8793d5284272c53ebd9ee45ccfb832f96df48372a367aeacc746c5751"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"2267f6dddd16cc7b6a4fc1e92ba0e0e3fe292aef536158b8cec07f6fc036406f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a14ea79400cd8c847f66a58581171793b15c0979ac765d7e433e70b4fe55c8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clipGroupEndpoint (cyclomatic 12, cognitive 10): clipGroupEndpoint has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2863}}}],"partialFingerprints":{"codehealthFindingId/v1":"776f70ecbc079c3666e04b934ca29d26c0e5ed05d25ce1f6c1e8aa306bf2ec9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compareChains (cyclomatic 12, cognitive 10): compareChains has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66cde434026b55ea8e632e752445e63bf607d165dc3c5f501086d9b8194e6fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 9): (anonymous) has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1988}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ce904d757ba36673fc1bcf877137d8b780b82bd622e39310cbf5f9ab7b623d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pinAnchoredNodes (cyclomatic 12, cognitive 9): pinAnchoredNodes has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfa18f3fea72181747831cb346e36bddb45f879065f820254d8efcf3d3ad843"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 9): (anonymous) has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee0c6a5f86d536a1bb6af2789fd264842f226377b18461e27530e3ce115c802"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 9): (anonymous) has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4dc1a65c8c602ce6c25a5819d41d167b6f67c5bfbb3f19eee32b44599fda192"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findSubgraphFeedbackEdges (cyclomatic 11, cognitive 27): findSubgraphFeedbackEdges has cyclomatic complexity 11 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/subgraphFeedbackEdges.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9b6532bffd700ceac1ecc5ef8e483b7231eef322a8ab7fe4df964315487342"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function connectLines (cyclomatic 11, cognitive 26): connectLines has cyclomatic complexity 11 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.testUtils.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de3ae44830fca2e9bdf06c43c377174e3002d0b6f7bd76f051750ab7ead3ea0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function liftObstacleHuggingSameSideRails (cyclomatic 11, cognitive 25): liftObstacleHuggingSameSideRails has cyclomatic complexity 11 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff36b8833ae7efae2b3c6a36604273f55b41709cdc4146ffb99de570b039ceb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 21): (anonymous) has cyclomatic complexity 11 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":2792}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bf80e1dbf2fd451c8fb5c651e9bea86ba3dc3bb28f953564d1eba09848a10f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function optimizeRanksByCrossings (cyclomatic 11, cognitive 21): optimizeRanksByCrossings has cyclomatic complexity 11 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossOptimization.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"348e3e091844caf3b83edb19477889aef79eb948deb8b47f7da23c63b9091309"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function placementOnExistingSegmentWithReroutes (cyclomatic 11, cognitive 19): placementOnExistingSegmentWithReroutes 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9431eaf8f11e83db54f132c54ebd4fc51a87e004a3d597558bf254d32a16f490"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createEdgeLabelContext (cyclomatic 11, cognitive 18): createEdgeLabelContext has cyclomatic complexity 11 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ff9551b9dd56ad61a59b165ecdb42b68e4e493a5900862425bff4f56bdf1d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 18): (anonymous) has cyclomatic complexity 11 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75570189ed98e333714fd6b824ffec891e5a4b889d1a75cd60bbcf8cb238131"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 17): (anonymous) has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/helpers/util.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabd9b0811d637060adef792a7d0540cff7780e986aa218ba1d57a4c83b0d60d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addPersonOrSystem (cyclomatic 11, cognitive 17): addPersonOrSystem has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67bda29d51c32774569858f98d3e4a5c7cdb63cc47053a8daa35550f2fb4dc7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addPersonOrSystemBoundary (cyclomatic 11, cognitive 17): addPersonOrSystemBoundary has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b49995f83458a112db7eed7f27fab499a79abeac32c2198b83e4cd6ae493aa8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addContainerBoundary (cyclomatic 11, cognitive 17): addContainerBoundary has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d452f61076b44d960487723dd693877a800617bc64f0aa6ce7ac588398f10cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function segmentConflictsWithAnyEdge (cyclomatic 11, cognitive 17): segmentConflictsWithAnyEdge has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f7f9d81468db72471d7cb6c2f9f74cd3330d5963be773ca3554cbab69a882a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addSingleLink (cyclomatic 11, cognitive 16): addSingleLink has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"13330e009902271680ac760a5a2d14c998fa04de50c84fb7029dc4fb6ad7c68f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function conflicts (cyclomatic 11, cognitive 16): conflicts has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerOccupancy.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0167269617f6efc682c0cc6acc64a86bee4e9acfc4dd0c896b08a7a70d203a7c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function snapAndCollapseEndpoints (cyclomatic 11, cognitive 16): snapAndCollapseEndpoints has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"1811d61bb7517f67c8ca29fe0effcae84d6b10057f9889de619e135626a90c68"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 16): (anonymous) has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/__tests__/raykov.wide_node.spec.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad9f4fc2f38d522cd04daf1a75ddbed8c85a36478c252ad3aeeb5e97a1eca89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function allocateEndpointSlots (cyclomatic 11, cognitive 15): allocateEndpointSlots 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d5445c2f0153e3a50f4ac38075e871236e0255b9b6373beec96940883c5245"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawCentralConnection (cyclomatic 11, cognitive 14): drawCentralConnection has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"153357553f658842c62bd00f25c122f8b815e01e2ab9f0aa9d565ebd434e0a4e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function matchJsonObject (cyclomatic 11, cognitive 14): matchJsonObject has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/usecase/parser/usecase.tokens.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de7e9a9adf0c0a676941d63fd9f538782a995680fe6216d1eb3ad9586198d14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transformDataWithoutCategory (cyclomatic 11, cognitive 14): transformDataWithoutCategory has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/xychartDb.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f983867035b485f5dd8cc4532053a66290d74f0315460f59b4c704e72ed5df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function terminalSideForSegment (cyclomatic 11, cognitive 14): terminalSideForSegment has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1c0b8aa025a620efcaf1df5a0cf2c2f44f5158778ec16ab37d2415a71645d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 14): (anonymous) has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.gravity.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"efddc5e3507b7b2f9c0e281f6e7f73ee74e3966acb489483739024ebecdbacaf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildContainerRoutingTopology (cyclomatic 11, cognitive 13): buildContainerRoutingTopology has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"547f90462204be6b4a5ab123facd8a792d152bfdd2c4b6e3e94da7299842f636"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function splitLineToFitWidthRecursion (cyclomatic 11, cognitive 13): splitLineToFitWidthRecursion has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/splitText.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b79083130e88bd343cc60b57be68d115848d3480c093513537006ea389d146"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawActorTypeActor (cyclomatic 11, cognitive 12): drawActorTypeActor has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"c958d3de511839a5dbaa3ced1f604bde0b570d80b4cdca27c18c14ce3b6b7c8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function alignDegenerateNodeToAnchor (cyclomatic 11, cognitive 12): alignDegenerateNodeToAnchor has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2422}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa2e1a41c0c3dda525f92761c72c087a43663bc94967f0ebafc125766000c09"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function card (cyclomatic 11, cognitive 12): card has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/card.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7721c4ffd4e43b52dd38518c4cb3c6e8080c5933c2fc1b64a36118a036373e"}},{"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":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfe9d0408029daa576e6cc832e75b6d196a0c254c62b002bd4f15d4198962aa"}},{"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":"packages/mermaid/src/diagrams/sequence/actorBandModel.spec.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2212a64e59dfa08c89b84492dc500f40470d22542ccf62321bcda9c30eee77a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function matchComment (cyclomatic 11, cognitive 11): matchComment 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":"packages/mermaid/src/diagrams/usecase/parser/usecase.tokens.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b59c64ce40ce3fe0505dae4c9c9221598f88a0cddcc779b1ee7da81a22e4bf9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sideEnds (cyclomatic 11, cognitive 11): sideEnds 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"859d8dd82b4c02b93eea0bbc0fea1d08e0d45aca869c35e7bf374415653952d9"}},{"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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/driving-tree.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d406ea5c71bf44a4fee88c9b61b74fca52cbd3f7e6dd748b2f2c1104f5e480"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function faceProjectIntersect (cyclomatic 11, cognitive 11): faceProjectIntersect 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bpmnShapeCore.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d526162df0368bffee6ea2bd4fb16a718f07358302781b88dbc0cb2ba9f5b49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c3be7a5bc370095ff49ec76ea47d7a04219ed0f22060cee8a1890b9d149ac5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function drawState (cyclomatic 11, cognitive 10): drawState 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":"packages/mermaid/src/diagrams/state/shapes.js"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b74cb71eaed123f6311872c1ffa8ae6198d3dd7f537c62597277c7e63e290d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sideInterval (cyclomatic 11, cognitive 10): sideInterval 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12e188d6428bfdefbf8b2605f2d8ec121b653eb397f8e9f229531a56a48ac9c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizePoints (cyclomatic 11, cognitive 10): normalizePoints 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d49661b3d60d34444b167e79c88778737932968f03c2e375ae412e7ebcb5590"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runHoESwimlanesLR (cyclomatic 11, cognitive 10): runHoESwimlanesLR 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/pipeline.hoe.lr.spec.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e384ece7c893cf582ae5b128e415f705801bff60eb1b5eadc2b6aeb2553b949f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7d8f9a60034b917963133f5fb3b43a85d2843f0489085bc819288044802f39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function portsForEdge (cyclomatic 11, cognitive 10): portsForEdge 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f49879249f7175b4c740ded927837380aa139d48a14fae764da424c94d82e0c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function bowTieRect (cyclomatic 11, cognitive 10): bowTieRect 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/bowTieRect.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41d5779e4fc521d56a406a279b581ab6e02e1c3b217c62c8cef366d738cef97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function browser (cyclomatic 11, cognitive 10): browser 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/browser.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f67283a8e2fa2296f477eb84e24ac208fdd9f1e66d65d9725ded7d8cf44c10d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function composite (cyclomatic 11, cognitive 10): composite 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/composite.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd84a8cffebfc0871cb73fa7036061c5e64f93e0752d2ed88cde46510ca5b847"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function curvedTrapezoid (cyclomatic 11, cognitive 10): curvedTrapezoid 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes/curvedTrapezoid.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fb74b5c05f87fd3e7cd166beff9c78ddf6f7d61819e483f61c4fc360668083"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 11, cognitive 10): main 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":"scripts/argos-upload-sheets.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd19b14233164626c6b213cfc5de7155a9fc79ae551ee4e5dfc65a1ec36a404"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clipEndpoint (cyclomatic 11, cognitive 9): clipEndpoint has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab2be58f8fa918947a672d53798f36316841a265af1256ce7788ad19332891b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts: 2818 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts has 2818 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":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf24f08284fc54b8e6f2b88dffb5ba256f2bc79acd8674d700fd0c89d84e644"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts: 2651 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts has 2651 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/materializedGeometry.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0e7614a8fe38c6f75ea6202cdb4ec63ab2b83dc26442266cfd7aa4a277d96d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts: 2490 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts has 2490 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"795075389a0cc19fd918e704322d1d2ee7178051b505a0707362a914bc3d257f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts: 2404 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts has 2404 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05d05610ffcba4d0146734babde042038cc8e1f8af12abb03312c8481865881"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts: 2312 lines of code: packages/mermaid/src/diagrams/agentflow/agentflowDb.ts has 2312 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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb813ce4b96d58f56c4dd9dd647f4500575c1171893112f25e3c15ddc1cf018d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts: 2165 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts has 2165 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f2aa757faa7e3cccbece0a2884232132968b68644741398a0ab6d578a86274"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts: 1982 lines of code: packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts has 1982 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":"packages/mermaid/src/diagrams/sequence/sequenceRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13683c64f316a75c1b07185c33083ae937a7a55d166c6beea378b971f04d908"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/sequence/svgDraw.js: 1954 lines of code: packages/mermaid/src/diagrams/sequence/svgDraw.js has 1954 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":"packages/mermaid/src/diagrams/sequence/svgDraw.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"755f395095ffc25f552c1a4b69866e3ef9f0d32531fdf24117e49a8331dface1"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts: 1381 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts has 1381 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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"856f92608c8c70b0d07da44383f579d8650e26bdc23e74df3036f39b13251eb2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/flowchart/flowDb.ts: 1375 lines of code: packages/mermaid/src/diagrams/flowchart/flowDb.ts has 1375 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":"packages/mermaid/src/diagrams/flowchart/flowDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e022e23d84058b370f6f0d5269f601e591e29f97b4a7240be71d2c652153dde"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts: 1369 lines of code: packages/mermaid/src/diagrams/git/gitGraphRenderer.ts has 1369 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":"packages/mermaid/src/diagrams/git/gitGraphRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"311e44e44c93d65a8eb318732e1780e91aed4700a7f648b6cd2687edffcd3bf9"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts: 1212 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts has 1212 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerTopology.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6df7b0dc4a013da0dc6bdb768665448acefa51f7406caa5b43b883393d26f5"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts: 1199 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts has 1199 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94efb11282d35d989d86edd3f8c5470fcc7d38829690eb5b3f93e734b0f70c14"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts: 1131 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts has 1131 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerPlanning.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fcb97938eabbba81b73e42cf90fb6fd3f7a49b0abf25941878be7e5b6987f3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/rendering-elements/edges.js: 1093 lines of code: packages/mermaid/src/rendering-util/rendering-elements/edges.js has 1093 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":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f2f57cc74f58e86fa2466702397d80fe927a30945ae0ffbb424a88b667a2f3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/rendering-elements/markers.js: 1055 lines of code: packages/mermaid/src/rendering-util/rendering-elements/markers.js has 1055 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":"packages/mermaid/src/rendering-util/rendering-elements/markers.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1705c34be7eb33a7f1af565bda0bbd3a02d8c11bf2dba7062ed291bbd63d1fe2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts: 1040 lines of code: packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts has 1040 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":"packages/mermaid/src/diagrams/usecase/parser/usecaseModelBuilder.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06483085b8618a188c0c63ac29c39c4ffc2a37801faa62c38c3f71ca2471f66"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts: 1018 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts has 1018 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3d02952a286425ced80ac606dc232fe99a74813441f76f56df462391c7e231"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts: 971 lines of code: packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts has 971 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":"packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7f0f274faa4666c38a8faf1e7d39e96a6799b889766aa86117e1bebb13f129"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts: 965 lines of code: packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts has 965 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":"packages/mermaid/src/diagrams/usecase/parser/usecase.visitor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8ba5d1ba1e492075491d404900d6e15da825d81f3c981ebb31aa2b9e415b44"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/utils.ts: 896 lines of code: packages/mermaid/src/utils.ts has 896 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":"packages/mermaid/src/utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f15f8cc80acd95be7a59e40f4c24ff8ba2df87a9a7a1cc615a9da372267cbd"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts: 886 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts has 886 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"080a189c43e81fcca5c2f62cc48933d0b78e1819f84b83070237d6055d7ca236"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js: 817 lines of code: packages/mermaid/src/diagrams/gantt/ganttRenderer.js has 817 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":"packages/mermaid/src/diagrams/gantt/ganttRenderer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2f71d33abb6e0b165b5e60480ba2a29105a914b90a05212a223552ade46a9f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/gantt/ganttDb.js: 805 lines of code: packages/mermaid/src/diagrams/gantt/ganttDb.js has 805 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":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a0670f34378be0ebcd87deadc195f1af74e8386b771ef4d16dfc89bf2366ef"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/class/classDb.ts: 796 lines of code: packages/mermaid/src/diagrams/class/classDb.ts has 796 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":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20895b1b312a2604ab43d9bb03abc9c04bed2af8f4cede5ca6e8028a9ec846a5"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js: 769 lines of code: packages/mermaid/src/rendering-util/rendering-elements/clusters.js has 769 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":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea69f249730fe7e36600f050de40b04dca14b422348496e46cf4a2934cd1183"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/c4/c4Db.ts: 755 lines of code: packages/mermaid/src/diagrams/c4/c4Db.ts has 755 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":"packages/mermaid/src/diagrams/c4/c4Db.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a3cdd7bf6333e571a750c3d6ea73ff554a3255014f13c9109bde1b276728a1"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js: 752 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js has 752 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24bb1af393086d4fd1933dd97cb5c2af766bdffd2e522e42c9e0c74cdfa6ddb"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/mermaidAPI.ts: 729 lines of code: packages/mermaid/src/mermaidAPI.ts has 729 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":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cda39fb84a7b09df724f72cebab90d694752fa5cfe696a9126de357ab43088f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/state/stateDb.ts: 713 lines of code: packages/mermaid/src/diagrams/state/stateDb.ts has 713 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":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a4b77927a724b57d4f0dd80df686b1498fede0c4fd4502870667f97dd5f8fe"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts: 713 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts has 713 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"362e1c474e57fc79a1c6ed957128c2bbcff983cf405b8098cae5ccde23305175"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts: 712 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts has 712 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSession.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e27992579b5af3c88d2c801c797564557ddb099f0d8bfa6e537443d00da02c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts: 697 lines of code: packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts has 697 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":"packages/mermaid/src/rendering-util/rendering-elements/lineJump.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4ef15f1e9b2ea69cdfff81bfa10ff277af619563f2fd75e77f3f201ccabbe5"}},{"ruleId":"R3","level":"warning","message":{"text":"scripts/screenshot-sheets.ts: 690 lines of code: scripts/screenshot-sheets.ts has 690 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":"scripts/screenshot-sheets.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"896c010ceac8e39d258d00df7f6d798986d27c343454b93d530877ca0272cc06"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts: 674 lines of code: packages/mermaid/src/diagrams/sequence/sequenceDb.ts has 674 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":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bfda4304e688b0a5406bd069b1e7d356a26945e8a8405fa1484d8b3b9b136d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts: 654 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts has 654 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"711b6936a47479041c214879b9032826e0e8e5388ce4893b5bd546059ebad8ea"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts: 646 lines of code: packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts has 646 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":"packages/mermaid/src/diagrams/usecase/parser/usecase.parser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabb039db0af3acb2f5e0b31203c18e1268601be5a78de84934a6ad315efb07f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/eventmodeling/db.ts: 616 lines of code: packages/mermaid/src/diagrams/eventmodeling/db.ts has 616 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":"packages/mermaid/src/diagrams/eventmodeling/db.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6e53a16d7bbc75bed719e29b28513aa59680f17020e06c670a6a119978775d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/rendering-elements/shapes.ts: 611 lines of code: packages/mermaid/src/rendering-util/rendering-elements/shapes.ts has 611 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":"packages/mermaid/src/rendering-util/rendering-elements/shapes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c469f8e1c720288d6ab08b4ae2e9cc6fb650ceee443a6139d3c01d54f819b04a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts: 598 lines of code: packages/mermaid/src/diagrams/architecture/architectureRenderer.ts has 598 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":"packages/mermaid/src/diagrams/architecture/architectureRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18302f74c3889d497b666cadc7b816f9441b3071c81bfa64346b9908f943066"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/c4/c4Renderer.ts: 583 lines of code: packages/mermaid/src/diagrams/c4/c4Renderer.ts has 583 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":"packages/mermaid/src/diagrams/c4/c4Renderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fee938bda6d77e2f3a191a739e32c6f7c8f62afb1d002d1a37b91bcf9a73384"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts: 571 lines of code: packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts has 571 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":"packages/mermaid/src/diagrams/quadrant-chart/quadrantBuilder.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f35eeec057a7a7592fd75bb90953b62ba0d5aa350e83bb0ecd5ffe118034f71"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid-layout-tidy-tree/src/layout.ts: 570 lines of code: packages/mermaid-layout-tidy-tree/src/layout.ts has 570 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":"packages/mermaid-layout-tidy-tree/src/layout.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4a02c593478294d454264f43d7eff619096dc04b841db7e2655655eff1d42d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/timeline/svgDraw.js: 566 lines of code: packages/mermaid/src/diagrams/timeline/svgDraw.js has 566 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":"packages/mermaid/src/diagrams/timeline/svgDraw.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d296d3a43858137911eab1ab52586fb0bd8eda3b2260c2499bd81f59356fdb6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/railroad/railroadRenderer.ts: 564 lines of code: packages/mermaid/src/diagrams/railroad/railroadRenderer.ts has 564 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":"packages/mermaid/src/diagrams/railroad/railroadRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"545d00397331826dde6db8f22ad4a449142ed73f08e4802f57f1007cfb77565b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts: 541 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts has 541 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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/scoreLayout.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"222aac191932a3371312bfa569d7d2115f8676e2e4dd464332f3e60f7e3ac6fd"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts: 533 lines of code: packages/mermaid/src/diagrams/usecase/usecaseDb.ts has 533 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":"packages/mermaid/src/diagrams/usecase/usecaseDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d48bf65d76a17f7fc1eb2462667e6271b796a90eaa702f5ebb88663a9ee252"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts: 514 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts has 514 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":"packages/mermaid/src/rendering-util/layout-algorithms/grid/layoutCore.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67080151d4dbad639bdc1330d31d7f60bdbb744d4b1e31210f48f1be98741ad7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts: 512 lines of code: packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts has 512 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":"packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c9c08021e904dce6f7de7cc3fa0b09e95704ff3f85ecc1b311c0c1a3fb4984"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/git/gitGraphAst.ts: 492 lines of code: packages/mermaid/src/diagrams/git/gitGraphAst.ts has 492 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":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69979da3fc038c680256f03994be3c3195daa954d23e1e5f3a65f939f1e230fd"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/treemap/renderer.ts: 488 lines of code: packages/mermaid/src/diagrams/treemap/renderer.ts has 488 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":"packages/mermaid/src/diagrams/treemap/renderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3de4fb9f56d192a1f8256a830c58e101efa5319ac85dc109c2649c4157dcee"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts: 471 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts has 471 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":"packages/mermaid/src/rendering-util/layout-algorithms/layered/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd31a74779f73b2ef169dbcb576af50f27e3b997234e70cb8e27d71f806f775e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts: 468 lines of code: packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts has 468 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":"packages/mermaid/src/diagrams/ishikawa/ishikawaRenderer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73321dbaa2914e7f9e32c46aa3718103eb2d625f438b964af95c5675278f9e6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/themes/theme-default.js: 467 lines of code: packages/mermaid/src/themes/theme-default.js has 467 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":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db92f63385dca7d32231bfd385ebf90f4c6a20f33212c2603fc5eceba32297f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/state/shapes.js: 461 lines of code: packages/mermaid/src/diagrams/state/shapes.js has 461 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":"packages/mermaid/src/diagrams/state/shapes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18414783465f3afa4d4e401439caa5574518c7bec96aee646c4978de55fc17b9"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/themes/theme-redux-dark-color.js: 458 lines of code: packages/mermaid/src/themes/theme-redux-dark-color.js has 458 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":"packages/mermaid/src/themes/theme-redux-dark-color.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1b6bbeddaf9204412dfd30f150b9dd5569697b2e94defaa4286ed117f43c61"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/state/dataFetcher.ts: 452 lines of code: packages/mermaid/src/diagrams/state/dataFetcher.ts has 452 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":"packages/mermaid/src/diagrams/state/dataFetcher.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07044c8d309cb0b4a52e8b620aeb50371a2d40371a12fe59b4a222b03861198e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/themes/theme-base.js: 449 lines of code: packages/mermaid/src/themes/theme-base.js has 449 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":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0976427be3797b22c8b4b11a1b7ba68161da9afafa067c5007b0244860c19af0"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/mermaid.ts: 447 lines of code: packages/mermaid/src/mermaid.ts has 447 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":"packages/mermaid/src/mermaid.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfed8a8cd0f49d55e4c27ae1473304e260c1947115764c58ae2582114257fe2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/themes/theme-redux-color.js: 441 lines of code: packages/mermaid/src/themes/theme-redux-color.js has 441 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":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f690671b83eb7f2427834db6ad4e4d2b1f6267a6214d364781f759cabae688"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/themes/theme-forest.js: 433 lines of code: packages/mermaid/src/themes/theme-forest.js has 433 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":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d027f79bd6feba3f0de5ccdb1efc56e38302436fe88287eae1faabcd4305bf25"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts: 429 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts has 429 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/labelAnchoring.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17189e54d90de53326230952bff62dd44e20f9d4f8466393fcb504386710623b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/c4/svgDraw.ts: 425 lines of code: packages/mermaid/src/diagrams/c4/svgDraw.ts has 425 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":"packages/mermaid/src/diagrams/c4/svgDraw.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bea8347534eab5a011f06def6df16877fe667964c2e7345e708f5483211d6ed"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts: 425 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts has 425 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/endpointClip.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f333f2580687873108cdfe6c01bec16dfa3dc841ff113bda9caa343ad7bc3a3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js: 424 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js has 424 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":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fdf1f423872d1cb5346058c31b9b0611b3f6c3c64e68be8acbcb8468562ebb"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts: 424 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts has 424 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/helpers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3337c387e95080d15634e63fdde845d44b14871722e0e0d5bd4134aeb7ce7d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts: 423 lines of code: packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts has 423 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":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/axis/baseAxis.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d15ee522b34519cda722633ffcb0d73c8a0abc73a4656251348d34dee3aebb"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/themes/theme-dark.js: 423 lines of code: packages/mermaid/src/themes/theme-dark.js has 423 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":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f16018d6bd730e30187abc0653b53ecf130f60412807f32dc247d1b094d3932"}},{"ruleId":"R3","level":"warning","message":{"text":"scripts/swimlanes-size.ts: 423 lines of code: scripts/swimlanes-size.ts has 423 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":"scripts/swimlanes-size.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6648b41aa6bb52a0b13efb502526d4073a876c4504e8f1a1841f6797e14cbb"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts: 421 lines of code: packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts has 421 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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d9b31809544de3ff9ba0980ef8b59efad913c2d90409863444f18edb75d0d8"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/themes/theme-neutral.js: 421 lines of code: packages/mermaid/src/themes/theme-neutral.js has 421 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":"packages/mermaid/src/themes/theme-neutral.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e18cb686092021a7ab6c0c9d2e8181fc04dd39e94a9112e0517c17e54078de3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/diagrams/er/erDb.ts: 416 lines of code: packages/mermaid/src/diagrams/er/erDb.ts has 416 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":"packages/mermaid/src/diagrams/er/erDb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1e8382fc97fcce10f24b1ac25095c3dbba9fee965c209330ccffd1c4d930f6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mermaid/src/themes/theme-redux-dark.js: 402 lines of code: packages/mermaid/src/themes/theme-redux-dark.js has 402 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":"packages/mermaid/src/themes/theme-redux-dark.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfdafd7e04054ed0adfd69f94a1653fe550003d2eec836c588a4fe1e8ebb581"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: e2e/platform/bundle-test.js:2 imports \u0027./mermaid.esm.mjs\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/platform/bundle-test.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8e21bd4f0e76a40303e0b1ae4caa791023da529f820a0126a89a6ab4436cd7"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: e2e/platform/viewer.js:1 imports \u0027./mermaid-example-diagram.esm.mjs\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either (3 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/platform/viewer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd37ac6501eba34af9d67bfd3d1b79eec9325b2c671e429b915e64ef50baa36"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/render.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3745b43bb2fb3d8c81147757479fb89ab185c9d7ddabffb50a06b14ab4ae87b3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-local-editor/static/js/renderer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b748b606946740ba85000e78d762934c5e462ca67f648cb9c957acc362bd2cb"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-local-editor/static/js/ui.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"831c5fd036afb9b6ae2a7e1463bfe1d645af96db9dfc04ed69fefe4e15c1a818"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-local-editor/static/js/navigation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"671500047ecf0bf82e2844df8f3d229aacadee113575270554d0bb429686229b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-local-editor/static/app.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1460c94fd8e9c5ff9ed449b93554d8b8d680a066206090bff5fd021504f4fd71"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/exampleDiagramRenderer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d382bd9db19bee526883a6d304fb1652da66cf809c341fa52555876abfe33bfb"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/scripts/prepack.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91444e09c2748cea03207bd974d22c9e77b844200ed294f794c5b4f820940015"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-local-editor/static/js/storage.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"876bedd94ea1c3dcf0dd797a4faf5e2ed7411186528ffac95df59654633b6f9f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/styles.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7acc65d60741c53ee1a56b9de81d0c00f893e11d15f752d3295ad58d03f347"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-local-editor/static/js/config.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"880f34618f175fdc2db9692b520f05e743028ecf562216318d01ec02355002f0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-example-diagram/src/detector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d76ef98938055a45211111c35764e7ddd4d279d97c72b02d82f8b3fa9495a0e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-zenuml/src/detector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95b701ff2c4e82d63543349f44297145f8e36adff76d10bd7c4813c37b8f1ed"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-zenuml/src/zenuml-definition.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25abd929cd83485104250aa8ee2a1685d124ec790e1b7cfcc1c22a8bdbd885ff"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layouts.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdf2c4cfbf8fecfc9979e7338bc6370dc8a47bd9fe43634fb98451886b32707"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-zenuml/src/parser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e8d036197536f5be54ed8636f0f54c3d51af0498b3c62911df974101d2d58b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vitest.workspace.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"467cb6ca4acce349a8bb430479a05d4ca3d80bee0bfd2d6c3b12e985bf93a746"}},{"ruleId":"R6","level":"warning","message":{"text":"The declared test suite includes a file that cannot be loaded: This repository declares test tooling, and the \u2713 above records that declaration \u2014 but e2e/platform/bundle-test.js and 1 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) \u2014 each one is reported with its failing import under Test Coverage \u2014 then the declared script exercises what it claims to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/platform/bundle-test.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"262f124ce08bc2cdfbff890d568139ef50f82ea7c1c3fe22f109c365be42a7de"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~3 LoC): no import path from any entry point (1004 application, 19 tooling, 455 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"vitest.workspace.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f989c8675b4b94d0ef443a3d582f3330d20eb1d7db67c2e89ccfc5a1f5dfa6d1"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027default\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/mermaid-layout-tidy-tree/src/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/mermaid-layout-tidy-tree/src/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/layouts.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac817ca3fd4ac5d06abb414865a2b09326a09f47eaee89d14001d8a92e59d271"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TidyTreeLayoutConfig\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/mermaid-layout-tidy-tree/src/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/mermaid-layout-tidy-tree/src/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid-layout-tidy-tree/src/types.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b78f8f314ca9e1795a9a236255844fba907e56e389dab9e856573bb73935bc"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027CommonTokenBuilder\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/parser/src/language/common/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/parser/src/language/common/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/common/tokenBuilder.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb86b2ac9817b3becbac98aa3585270fb39bb833d7ffbcce3eefd8f13af7ee0b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027code2\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":"e2e/platform/bundle-test.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cb912baa000139fb059d14573e3f43bc5dcdcfc571259bc33e245d9f452b57"}},{"ruleId":"R7","level":"note","message":{"text":"Unused private method \u0027escapeHtml\u0027: Nothing in its class calls or references this private method \u2014 no member access, no string key, no decorator, and no test reaches it by name. A private member cannot be called from outside its class, so this is the whole search: remove it, or call it where it was meant to be used."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"b358ba994661749890d65c3283a8d2f0f6229913651120610b9741460558dc84"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027_updateNodeDimensions\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":"packages/mermaid/src/diagrams/mindmap/mindmapRenderer.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f69151098bb5395fa025e89635253299e400098a8316de91f0910ce17f8869"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027addConf\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":"packages/mermaid/src/diagrams/sequence/sequenceDiagram.spec.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bc093d016608e8072ec2f8b4f3c57c267bf894e4411f7e6efc089af444dc94"}},{"ruleId":"R7","level":"note","message":{"text":"Unused private field \u0027chartThemeConfig\u0027: Nothing in its class reads or assigns this private field (for a constructor parameter property: it is stored and never read), and no string key or test reaches it by name. Remove it, or use it where it was meant to take effect."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/xychart/chartBuilder/components/plot/index.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b720df1d7f84edfd7958eb09f42804f06b52cba9ba3d228b7a4a4241c0afca"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027_segmentLength\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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"729f6b94953efff08d91da0720693b092ecbd555dccf851a72fd98edf84840c0"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027_polylineIsOrthogonal\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":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98ec963613263306fcb6f4c6671c98e2ca566be9c16a59d54830acccfeefb0d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027TestEdge\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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/phase0.helpers.spec.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab7841357bddcf77c9155bbb5334445bbff29743a217c9dc4698b6213c3873c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027hasEarlyReturnToStartRow\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":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/__tests__/pipeline.hoe.lr.spec.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"2565197e98d02db1ec0c5d0738d0a03ec25531f7c1a8f6e12660a67aaa2a1394"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@fontsource/noto-sans-sc\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a7d3ce9ce4b0d69dfe90a40f5fe48158f1e1b10f65a388c98df51eded567417e"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027path-browserify\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"072f2c54b934fc1137b5125df4cc602e51be58ef04dee9966c219e6d09ddf52b"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027start-server-and-test\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ca43ca8a5741bdb97ecea41078a5ae46d1c3a4e33798d8ef659bf17be4441fb7"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027wait-on\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"990405da5c21e42ea157d0bc6d2c0cc88fd353769ff1cfd64e77b8f456318a0b"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027d3\u0027: Declared in packages/mermaid-layout-elk/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":"52810b1726ab092cf1266738f3092e03217feee8e959388bade7fc5b05f48e11"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027katex\u0027: Declared in packages/mermaid-layout-elk/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":"b1e5b01d987f1734e9ad4bccfeedf52858867e5c55a5260274972887b0fa24b4"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is configured \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060netlify.toml\u0060 configures this repository\u0027s static hosting, including its response headers, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"netlify.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1fc99a2627121a3303b80ac48a36f267e6e7f5c3a740175ff6cfdd1826ad7f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!allItemsProcessed \u0026\u0026 iterationCount \u003C maxDepth\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/diagrams/gantt/ganttDb.js, packages/mermaid/src/diagrams/timeline/timelineDb.js, packages/mermaid/src/diagrams/user-journey/journeyDb.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/gantt/ganttDb.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0701e805317fc1885338a5b4b249b8fbb2b92c3a85ba49d3d84d20b29202e579"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isFinitePositiveNumber(labelNode.width) || !isFinitePositiveNumber(labelNode.height)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/labelGeometry.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13ae79ccd3adc4788af9996cffc48366db82ec45ab1292d37399e5eb5878bcd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(trimmedValue.startsWith(\u0027\u0022\u0027) \u0026\u0026 trimmedValue.endsWith(\u0027\u0022\u0027)) || (trimmedValue.startsWith(\u0022\u0027\u0022) \u0026\u0026 trimmedValue.endsWith(\u0022\u0027\u0022))\u0060 appears character-identically in 4 files \u2014 packages/parser/src/language/railroad-abnf/valueConverter.ts, packages/parser/src/language/railroad-ebnf/valueConverter.ts, packages/parser/src/language/railroad-peg/valueConverter.ts, packages/parser/src/language/railroad/valueConverter.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/railroad-abnf/valueConverter.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1378364c4c33acd074db845cfd56e629f57f72262deb4154aef64b87949c892f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Array.isArray(edge.points) \u0026\u0026 edge.points.length \u003E= 2\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/rendering-util/layout-algorithms/elk/lineHops.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/lineHops.ts, packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/adjustLayout.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/lineHops.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc05fe80da2561a7ddf16c39bd98c10dd01666e871589540505629595a93b214"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(point.x) \u0026\u0026 Number.isFinite(point.y)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts, packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"a510a2c914685df97f8d1c3b1f3c28bf66cb5edfd0273f6927412e3fca982396"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060a.left \u003C b.right \u0026\u0026 a.right \u003E b.left \u0026\u0026 a.top \u003C b.bottom \u0026\u0026 a.bottom \u003E b.top\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts, packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/edgeLabels.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae1260c04a36dbf88de090ab2da007e2a2af7354ed07a37df654cf15e89437b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060character === \u0027\\\\\u0027 \u0026\u0026 index \u002B 1 \u003C content.length\u0060 appears character-identically in 3 files \u2014 packages/parser/src/language/railroad-ebnf/valueConverter.ts, packages/parser/src/language/railroad-peg/valueConverter.ts, packages/parser/src/language/railroad/valueConverter.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/railroad-ebnf/valueConverter.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"547c24e4ad2310db6e26035a9dc6be5354a1d6c3e0bf3dc0a9049733e8208361"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060classes !== undefined \u0026\u0026 classes !== null\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d54b3022204885c8269a2cf309d90118fff41bc19594f44364aad5af3ed3947"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060current !== undefined \u0026\u0026 !seen.has(current)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1732}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d08de6172adb860dfedc8a0b98da6e3af4bd7f0891ac7972bb5c771f9e9852"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060direction === \u0027LR\u0027 || direction === \u0027RL\u0027\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts, packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase4.coordinates.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/anchoredNodes.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7561ca186cce166c3ee3717e6c4794a42a42efe913341a7df9cf53cae1f2603f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.start === edge.start \u0026\u0026 e.end === edge.end\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed09bb090c307a4f7b5e2f99064590bc187cb8912936ff8b372b5ebf4d505bfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060edge.text.startsWith(\u0027\u0022\u0027) \u0026\u0026 edge.text.endsWith(\u0027\u0022\u0027)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ab60f67b35e192aa7b8a868f58e22ed9c13b587da988dba8c50f171f0a103f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isWithoutSections \u0026\u0026 !conf.timeline?.disableMulticolor\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/timeline/timelineRenderer.ts, packages/mermaid/src/diagrams/timeline/timelineRendererVertical.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/timeline/timelineRenderer.ts"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e3401c41d7aef0ce6d1edaed31b997acd54837a46d088a1ea7070562ef1127"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.startsWith(\u0027\u0022\u0027) \u0026\u0026 item.endsWith(\u0027\u0022\u0027)\u0060 appears character-identically in 4 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/class/classDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts, packages/mermaid/src/diagrams/gantt/ganttDb.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"b525e4727a9bb18e9a784815c5dd8b5a021d467dde60a6c6a1e2688c55d8f0eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matchesHorizEndpoint \u0026\u0026 matchesVertEndpoint\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts, packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/direction/geometry.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/geometry.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"af439c1006b386ddad7518c84b70e09c6aab6cd2a6d6f6b018984e0d6022938d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060node.width \u003C 25 \u0026\u0026 nodeShadow \u0026\u0026 node.look !== \u0027handDrawn\u0027\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/rendering-util/rendering-elements/shapes/stateEnd.ts, packages/mermaid/src/rendering-util/rendering-elements/shapes/stateStart.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/shapes/stateEnd.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c139b68db2692995aaaea9e2ea7934ace0e60f2b224796fd48c211a211b478c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options[\u0027lineColor\u0027 \u002B i] || options[\u0027cScaleInv\u0027 \u002B i]\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/kanban/styles.ts, packages/mermaid/src/diagrams/mindmap/styles.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/kanban/styles.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"587a9d86675ab35adffb87f25cdd83df7a27486483e5cba1fb58f62113aa2747"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rawEdge.interpolate || this.edges.defaultInterpolate || config.flowchart?.curve\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4aa4b3915a4653d3f79d695629c0e1853c00103bea96be131a8332318f5b8d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rawEdge?.stroke === \u0027invisible\u0027 || rawEdge?.type === \u0027arrow_open\u0027\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":1854}}}],"partialFingerprints":{"codehealthFindingId/v1":"136abb19b62943971576bdf2c5b9ae27fda935567ec30ba33233f642836661ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.lexerErrors.length \u003E 0 || result.parserErrors.length \u003E 0\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/diagrams/railroad/parser/abnfParser.ts, packages/mermaid/src/diagrams/railroad/parser/ebnfParser.ts, packages/mermaid/src/diagrams/railroad/parser/pegParser.ts, packages/mermaid/src/diagrams/railroad/parser/railroadParser.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/railroad/parser/abnfParser.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d247b4bf0f90414750ffddacb3c7e85e3d785d8a7d7924119a4aaeeaae1a0e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rule.name === \u0027TITLE\u0027 \u0026\u0026 typeof value === \u0027string\u0027\u0060 appears character-identically in 4 files \u2014 packages/parser/src/language/railroad-abnf/valueConverter.ts, packages/parser/src/language/railroad-ebnf/valueConverter.ts, packages/parser/src/language/railroad-peg/valueConverter.ts, packages/parser/src/language/railroad/valueConverter.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/parser/src/language/railroad-abnf/valueConverter.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cace969ae358a34aa196fa29e1019c05fe433bdff854bbf63de9e8199c13ace"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sourceId === undefined || targetId === undefined\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.testUtils.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSparse.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerSearch.testUtils.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf4457793f74ecaceb4ac8b51486e29c29b0fee88b0c51d17e5a9f8833770ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060themeVariables.flowContainerStroke || themeVariables.secondaryBorderColor\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/rendering-util/rendering-elements/clusters.js, packages/mermaid/src/rendering-util/rendering-elements/shapes/collapsedGroup.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"400774850ab6f8a4b96ec5a27fd24fa142ae1684d44a61c9f1a3c94181b2e834"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this. actorBorder || this.primaryBorderColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84dcbe1a80482ce32101a5ea44f1d68ec225468239a7cb1882ef4c441a6cbcb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.activationBkgColor || this.secondaryColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"90419399d4d4ccaae39e2abeb09fb32ed93572462d4f1b14e9009801850d7a6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.activationBorderColor || darken(this.secondaryColor, 10)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43684a84db231e6a0c8d43ed863e5d2a7a3782c6a70bd4e4ab762715a6d7750"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.activeTaskBkgColor || lighten(primaryColor, 23)\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js, packages/mermaid/src/themes/theme-redux.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo.js"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b25b1c5a7e928da3bdbc7a3489abdbec556fb9fe3f73db51d43dfccd6c0579"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.activeTaskBkgColor || lighten(this.primaryColor, 23)\u0060 appears character-identically in 4 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-redux-dark-color.js, packages/mermaid/src/themes/theme-redux-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3e01f0a54f0beefe5932c141d64d54034ca8732f4bee84c0035f7eb06e54f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.activeTaskBorderColor || primaryColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js, packages/mermaid/src/themes/theme-redux.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1715ac4ffadd72a935e15d84f6a216d4559fa9e37c8eb52787f0a1175b9f6021"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.activeTaskBorderColor || this.primaryColor\u0060 appears character-identically in 4 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-redux-dark-color.js, packages/mermaid/src/themes/theme-redux-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea40dbfe9119f53e091186d64e853a255f8363f98d4ae08429b43e02cfa9921"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.actorBorder || this.primaryBorderColor\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/themes/theme-redux-dark-color.js, packages/mermaid/src/themes/theme-redux-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-dark-color.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9fe26eca65dca15948c54c1ca12d3c0d08c82c53d3e9fff44b86bf6cd76c05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.actorTextColor || this.primaryTextColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1b7dba944f2b1b9d8ce78b23b0a3e590b9690d7b266f26b6d93fb28017aaa1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.arrowheadColor || invert(this.background)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9000e6105c1dc1e3a81034e17d96ff6dee63f201a64350cc2080dac2a254ae4b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven\u0060 appears character-identically in 10 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neo-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"424653f637b29e30fc58ccc8e88daa7f982fba8321bbbcd2c2da05a3b81dcd8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd\u0060 appears character-identically in 10 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neo-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62512339210f5d19d08c63a60008a24d3ddb74354aa4fc52505da39c466b180"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.border2 || this.tertiaryBorderColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a1a16ae1a1ce0fc3ca0d338cc98cc9c40dc52bd2ebe4c5ff9b80310659812c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.clusterBorder || this.tertiaryBorderColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d38f5dc751d47724b3c22d5b10bbd146a2df1b51e15f8198851b915fd0446f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.commitLabelBackground || this.secondaryColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7a98215d207b729aa6e4922af1529ff830ea246db97a0e6042489108d0e0a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.commitLabelColor || this.secondaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d878032d50aa9c3284e8e68838e9f4cede17239ae9e456d5133fa7cc063668d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.compositeBackground || this.background || this.tertiaryColor\u0060 appears character-identically in 10 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"015d8a3f92858d017d31b48aef32b7389fe699293333cbc8fa9823d6f34e4965"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.compositeTitleBackground || this.mainBkg\u0060 appears character-identically in 9 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d79a0065e09b791956e91ad5d815d42674bb5d9f2d78adf60ee66f04502c6e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.cynefin?.arrowColor || this.lineColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db7517feffb908a6791852c3816d159dc6287714a447615bcdffc17c78fb8f2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.cynefin?.boundaryColor || this.lineColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3367e314ca433e460b76f27c0ad964f342d458007cf87f2f43b4e53f7b178e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.cynefin?.complicatedBg || \u0027#E3F2FD\u0027\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-neutral.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a67224fd9a67d143d455abaef6ec45ff01f73292d22f5eaad31230642f713c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.cynefin?.labelColor || this.primaryTextColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc39ab0543b9826262b933934f9fafbc522f255ee220fd3b4a13985dd02afa2c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.cynefin?.textColor || this.textColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5cdea20ab3ae0000945877dee108eecfb8692fe2f350f4235e8128e6afe145"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.emSwimlaneBackgroundOdd || \u0027rgb(250,250,250)\u0027\u0060 appears character-identically in 4 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neutral.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1708dee6c0e2a9182d3a3b8daed879c2e26d41b41782970fc9d63a738f546ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.emSwimlaneBackgroundStroke || \u0027rgb(240,240,240)\u0027\u0060 appears character-identically in 4 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neutral.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"296ab75a01d2668ce861cdbf58f735aed3f82636844dd57a489a9d52d490f806"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.errorBkgColor || this.tertiaryColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d943d2028101de92bea556d13c3c012e3ef3de50b6129272842bcb7b185d8a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.errorTextColor || this.tertiaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52f0b63c3f1d965ebbac5eecb0dec3787db35aff5548d41d2cb350aaf9d2b5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.flowContainerStroke || this.secondaryBorderColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36cac7daa30ca344005e3d328bf2018e0ccde979e15ff82703f130db574f497"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel0 || invert(this.labelTextColor)\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9012c9f17ab63d8358793c168ed813f4dd398188e382d7df9ce2fbeb09e53e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel0 || this.branchLabelColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ef72645bd42e184744d52b49173b334e40907139ff15923d4ab6a6abeccd6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel1 || this.branchLabelColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2572ce056e3190e9c66e80ea2840953d38ecce3cccef372c333f08d88c12327"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel1 || this.labelTextColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"989b9ad9c1e7f7ad79b2b1faa1fc5179b0944bdd3dd89adf011f1a0cf3a5daa5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel2 || this.branchLabelColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78f0b4ec8a48101bbadd5625beaed3b7dfb5ea0203287eacbedad5eef8e7b1d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel2 || this.labelTextColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b553d51dfe45baefd8da9a6f56800d586cd8788e9bc4792d9127294e7fa0f591"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel3 || invert(this.labelTextColor)\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"710217038df47a1518bd611835ff4087d0644f638ceeafcaccd4f33064382d1a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel3 || this.branchLabelColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e4dc2712b8ca3b3b7be324d8e3a9ee67896cef4559f2e40ee971d8370bb64f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel4 || this.branchLabelColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b64f210d6e414310a2bccc88522ac2aa22d92be48d9a53a5877b9f2c176682"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel4 || this.labelTextColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa300931e01bc8f4b680e75bdb36de431be4078b21aa8c8b8158442685eac6c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel5 || this.branchLabelColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd33f01b9f5f3a5281898c232a3c9826698453d46f3d10d5c7e51cfcf90219b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel5 || this.labelTextColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d22c981719276b345aa06ff776e2344b9209f22839264acc188079def9ccdc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel6 || this.branchLabelColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5e87ef92253da2ba6c971d868358b94306c63e29f544d9220ba64d579464f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel6 || this.labelTextColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"de15e16d98c18456ad6102e85f67cadd621f11c410edfe247de4c514ce62e682"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel7 || this.branchLabelColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"de32c368715dd3bcc9707d640aaa43a9ccc508c6b768b9443a5206e624ad65a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.gitBranchLabel7 || this.labelTextColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-dark.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"4265525cfbcfc195e92bc63dc974d9bec9546b19ff62919286fd0b526a48c12c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.labelBackgroundColor || this.stateBkg\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6839e719720f80c5b8a80374a077487a5a1c4554c33233142a94a137085fc498"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.labelBoxBorderColor || this.actorBorder\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"57546fa86d0b432c9f59d948a47ec61237b2e6e0655e6d77de78d2f71c2c350f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.labelTextColor || this.actorTextColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b60de00473735658e9d400211f61d2be4fb61efee5eccc587b17d2ad93346b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.lineColor || invert(this.background)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f741f50edc7b5c6a453f24d3f4809afb4f1e33a65a6757d9f18dacd956a78936"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.loopTextColor || this.actorTextColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0601986303ca0bfd70b84ee9a12f4a69a7e1a47df62c9b2c64dfbfec83450c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.nodeBorder || this.primaryBorderColor\u0060 appears character-identically in 4 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js, packages/mermaid/src/themes/theme-redux.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd746f3798a346a4d5af4ec9ac962e37fd1fc5cc3feb78e990c1ed2fc5ac6f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.nodeTextColor || this.primaryTextColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dff408e35bde8e66c22ecf535ca3f07477ab982aca37c5bff81cb5324c0f13"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"156a6a8b525a0317dae373b0a48e60c7e69b0fe5932dfbd7212b9e1a3c981e56"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.personBorder || this.primaryBorderColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"621470bff3a793881d4bcd2c84db31dcf185a596b23d4b0339522c88f5c5dae4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.pieLegendTextColor || this.taskTextDarkColor\u0060 appears character-identically in 10 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neo-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16d5c711cc5bcbbf3fa92f788690f0910418f61a9d4468aa15e7f3454b354b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.pieSectionTextColor || this.textColor\u0060 appears character-identically in 10 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ec0290481014e3265594d0eea6e259154c2ded75a82ae6434090c4f3496592"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.pieTitleTextColor || this.taskTextDarkColor\u0060 appears character-identically in 10 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neo-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc9bbf698f9dcb35ef692d3b1131fb71b1ca08079d41d40ae1a953777d733b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9831b5441ad861dd830781180876f6aea9a91a7486974027e5edf411309fe9e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.quadrant1TextFill || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3812c71b51a8bb3b8dd3196d2a29662264609bddaaf357fb3de359cae10c0041"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.quadrantExternalBorderStrokeFill || this.primaryBorderColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e299812893c551c67b8434b8e18795964b9528a9fd7f73812e2491baa4a2e88"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.quadrantInternalBorderStrokeFill || this.primaryBorderColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff7fcdc812db04235b8373f443f1b195f1d81de79ed72defbf4b79e1c59bc1a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.quadrantPointFill || isDark(this.quadrant1Fill)\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c010f086ed217e4316cdbd6059156c3f9e7dea1a1424134f13eb8d913af4136"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.quadrantPointTextFill || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd27f640c4f9d4a500fdaf023710e086f0d156bcebc16c848ff10b546419b751"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.quadrantTitleFill || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43888b217a32b9956bd287988787854732f0154d25e395210bed9793f5bfa6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.quadrantXAxisTextFill || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9e8787588a4c6cb763098ce9fb2827998019df806d9796bdb75c50b2a6ce9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.quadrantYAxisTextFill || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"de97dcd8d93fbacf60b7adb0546936197eb0a1b3ede1b406682cabd2874d6767"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.relationLabelBackground || this.edgeLabelBackground\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neutral.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-forest.js"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc4ab59bf8ea9a89ebfb481fc4e651ffef4f79072126a232470e7c63fca3b4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.relationLabelColor || this.actorTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63a54f3420cc57b2b1d50de8f33c8e373e8156766672d8e0ebde81f55b3e4da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.requirementBackground || primaryColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js, packages/mermaid/src/themes/theme-redux.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c6b5a62c237646c38346c250beb32488effa22818fd0412f23a0d3b5a93dc3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.requirementBackground || this.primaryColor\u0060 appears character-identically in 8 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6eb04c113d8e3242f979d8186874c5c2d1478c390281a65673298e09c65922b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.requirementBorderColor || this.primaryBorderColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb54b96995aa230b3cdb3a95fc917be182f5392b8a1a608e168227438823575"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.requirementTextColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"072dc7c77e912cd2165a5df86a8f4b68f2c19f635ded6497338f0b83d2ca6ed0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.rowEven || darken(this.mainBkg, 10)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b06762ac32e98a14976c92a7187f20c21e3662af87752cca42147a7c47f9e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.rowOdd || lighten(this.mainBkg, 75) || \u0027#ffffff\u0027\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neutral.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e216cebd761b7c177e4c3ad72147ca7f5f8f2b664e0cc3d9c0cc527a3075f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.scaleLabelColor !== \u0027calculated\u0027 \u0026\u0026 this.scaleLabelColor\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb376f335682c03b4f9c2e3f1a8b320721bd468873e194f41f29e55b5f447c4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.scaleLabelColor || this.labelTextColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbccd4c11d2e3a24e97d549332ed91a8b54f6a6c329c0492e560e8ccdca42b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"307dc5b0a8467126cb2b7ffe428b0697cc4c0d38de7ae319ccbc3b3d1d1658ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.secondaryTextColor || invert(this.secondaryColor)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b73b36476c366eb783bc1d96765f030384f83a42830ee938b67f8037a4296f6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.sectionBkgColor || this.secondaryColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-redux-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48db49d051996f75dc7b1c90e4f230535c7df5f5797eebf01a51ede50064543"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.sectionBkgColor || this.tertiaryColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-redux-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a57274bc8c218fed596f23edfc60e79cefa3a85a6f8e5b678e912c70e81639"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.sectionBkgColor2 || this.primaryColor\u0060 appears character-identically in 3 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-redux-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70cbc9eae81f142b5f3f6c5b74f85a763ab80e38b9553611db3b4122282f966"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.sequenceNumberColor || invert(this.lineColor)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"211f97b78bb9547b2b2f2ec1d18e3a203e87a910f1ef913449fb17e2c8d6a5bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.stateLabelColor || this.stateBkg || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"58668d10aac2e91f7f78bdd8589b5a5d68da5cdc5cc54323998a5983825f4cab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.tagBorder || this.primaryBorderColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af6c18d733584067e4fb425a947494f8387514aacfcd9ba25237aef13c4539d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.tagLabelBackground || this.primaryColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"011c3b4a717ffa9e5f72606e30b46daeef4a554efc0876e3b4ce9e88ae4f7ae2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.tagLabelColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"3258ce732cb9b7d3c4cba77579c4baa9c9f4cc5e95ffe5be39b6817f87f8cc83"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.taskBorderColor || this.primaryBorderColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2fa52ec62f84f0126e7b314f19cc9d875517248b4b29c3e7dfb8814272f791"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.taskTextClickableColor || \u0027#003163\u0027\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20fdcbe919e5aad84b5c441f452515c04aa2a9df446be7104e223d658d50dee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.taskTextColor || this.primaryTextColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c98c1fd685c7bec00022c989ef900bc2cc1d8b11c12ea1f20032b568a14455"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.taskTextDarkColor || this.textColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"05021a4417db93aa7a71ab33a2e7dfebbf8ebaec37dd1aa573ae35d7709b250e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.taskTextLightColor || this.textColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"52280ee5cd6041c3fb5ae2e682a46e9766bf86993f0165b2b8b3ac06d55ba4f7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.taskTextOutsideColor || this.textColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a181430c266a7f2f391aa1354c583831423b41ff744c8712945508ab5ff1b0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"64656b8b1511374086114144e187642dcc6e10c4bf677f988a1d939b7df89429"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.tertiaryTextColor || invert(this.tertiaryColor)\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8585a654fc494dc3eff394b1f4cf8200e4858e8f442a4acda9df9bb7efb8eb7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.titleColor || this.tertiaryTextColor\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba6fe773bcbdaaa14191c9a2a2580521e43be7e1da32f3ab9c6b8a1a5c477ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.transitionLabelColor || this.textColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8544bf03617b1ee28e8839d13e6b0b8e73078967b67324d400e2f2508a1711c2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.vertLineColor || this.primaryBorderColor\u0060 appears character-identically in 6 files \u2014 packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js, packages/mermaid/src/themes/theme-redux-dark-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-neo-dark.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1c211e5465fabff6a177dc3e1d46dacbea6acec03799c270dde56dabd994dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.annotationFill || this.background\u0060 appears character-identically in 4 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neutral.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85156c2025874e70bd76eb096671253b53cf1fffc06017e8c7f3cefb4a6f767"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.annotationStroke || this.lineColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd22e6f2eaca7e5c675c2a89d883c3f7eb8cfc213e4a4405c0e0e4f9f3b7d07f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.annotationTextColor || this.primaryTextColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa45a1dcb0a4981d911ed9b182d4b8bc0e3f8ca80c9d50d3054ea49bb26501b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.axisColor || this.lineColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9a2fc6bcfb72460e01d392077a39b7b36c1a9206e9c22443da5829dc02dcf8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.axisTextColor || this.primaryTextColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc8d7c5ff7af07c19aaea3a5475da51028bdba244c831b75fc07be644164d18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.backgroundColor || this.background\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2f5460b0dee98203e3b3f75726c8be103075beb8979c4e64e75ccc3a73c24c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.componentFill || this.background\u0060 appears character-identically in 4 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neutral.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fac20c7e38bb02ba38f7a3a03ac9c3d08e45b67c0ed9a40bfebc4219babb775"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.componentLabelColor || this.primaryTextColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7df72caa8a65c7dff6156621b39e0395c6f35301b8c8ed248812ca318bd9bd2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.componentStroke || this.lineColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"978f9e3739a48954adc4fe268f521197aaf1a6e83bad273094c4413847b48b51"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.evolutionStroke || this.wardleyEvolutionColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84af5313477e2cd9634bab2136375d9be0a48e7daec702553e67e1b0e0e4b01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.gridColor || this.gridColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1921bfdaaf4fadbc3980bcc46ad01418fe48e3b85d8dc52ef6ff3b1ea9cb68"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.wardley?.linkStroke || this.lineColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12a555dd2c3fda1426edff972180762b1c4cd34a0729b2ecc02a6269bbe8050"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.backgroundColor || this.background\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d61a28042373ee74bc0974cf44181d37838a92e61498472793180e7a5b9b0d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.dataLabelColor || this.primaryTextColor\u0060 appears character-identically in 5 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff239710b458d3ec6337fd86224a678c63c2b808a71f00cb4cc049fa522057ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.legendTextColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f44f57a6ebbf1c1b45e29f46b30eb786020304150d3d7895e98727b41896e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.plotColorPalette || \u0027#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0\u0027\u0060 appears character-identically in 7 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-redux-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dbebe97381aa7f6878cefb91337650931fd5cc674a40705e8d5e910f106046"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.titleColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbb0caa309e2f8534adf531cbb1bc7b1a45cfaaa414788463fff893c25ddccc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.xAxisLabelColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a04f03a2daa5297759b7402b8ddd2a344315dcae2dd753f5a46be4df5e49b34"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.xAxisLineColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd16502772330020a495083710cf36381eedfd278cbd84ff6c0b2ac02658cee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.xAxisTickColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62e45221f20076a856c2455a56e5a75a82eeddf660f36d510bb8c460ebd1f78"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.xAxisTitleColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ea7049fed322910f98f5c21429108647197e7958b2994d4049bc3b8b717836"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.yAxisLabelColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"e400d2acb8bcb3d6dcaed3f37ea99dd69bf37448a5388afe7a4561f2e7bf5084"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.yAxisLineColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"0396be432371a008ecac3020adb0b7a70bddea3e5ac0d3e123e96fff1a8a2f47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.yAxisTickColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a6c9cd6797446dadfd6771b72fb3209e7e2f96e374431730745d38604358cc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.xyChart?.yAxisTitleColor || this.primaryTextColor\u0060 appears character-identically in 11 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9390787ebce91482d2d890491c5bfc26747ae2953b221e8bc74b80607490b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this[\u0027cScaleInv\u0027 \u002B i] || invert(this[\u0027cScale\u0027 \u002B i])\u0060 appears character-identically in 9 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0552d19f02b298b4bd59ca6e83e97cead52e099545be603b0dd836fb0232dad0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this[\u0027cScaleLabel\u0027 \u002B i] || this.scaleLabelColor\u0060 appears character-identically in 9 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-forest.js, packages/mermaid/src/themes/theme-neo-dark.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1bf3d96018d18d779197dc254f82993dd225ff87f04f03b07ae767771ac30a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this[\u0027cScalePeer\u0027 \u002B 1] || darken(this.secondaryColor, 45)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ae1cf419314a0a84227c1ca23dfb11a81c18d6fe60b7c1ce51185b31f81779"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this[\u0027cScalePeer\u0027 \u002B 2] || darken(this.tertiaryColor, 40)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee88a2c1db3381ec2c2e968b3035c593200ff288da2deb47cefd8e95f919a4cc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this[\u0027cScalePeer\u0027 \u002B i] || darken(this[\u0027cScale\u0027 \u002B i], 10)\u0060 appears character-identically in 8 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js, packages/mermaid/src/themes/theme-neutral.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7b093b98858a412a3d5a31809dfc1589342f9931e9f57b0e15bd4a8afc1b7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this[\u0027cScalePeer\u0027 \u002B i] || darken(this[\u0027cScale\u0027 \u002B i], 25)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/themes/theme-default.js, packages/mermaid/src/themes/theme-forest.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-default.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"41846bf5c96e6a59b5cde683eb23d0d6ca0b5cc537dc0cbe2273c5daca068ffe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this[\u0027cScalePeer\u0027 \u002B i] || lighten(this[\u0027cScale\u0027 \u002B i], 10)\u0060 appears character-identically in 9 files \u2014 packages/mermaid/src/themes/theme-base.js, packages/mermaid/src/themes/theme-dark.js, packages/mermaid/src/themes/theme-neo-dark.js, packages/mermaid/src/themes/theme-neo.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-base.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5eeee86097b1e280eda93a535e182f5bd2fac7fd65282a2c51ebec6b54c12a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this[\u0027pie\u0027 \u002B (i \u002B 1)] || this[\u0027cScale\u0027 \u002B i]\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/themes/theme-redux-color.js, packages/mermaid/src/themes/theme-redux-dark-color.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/themes/theme-redux-color.js"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f662c99948bb750d24a2a91893ca2beff899968942512589eeaf9b2405fbaf1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060txt.startsWith(\u0027\u0022\u0027) \u0026\u0026 txt.endsWith(\u0027\u0022\u0027)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be1832870a659014e15b472ce464ae834101b0ec54566f0417b7e6bd31bc120"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof pos === \u0027number\u0027 \u0026\u0026 pos \u003E= this.edges.length\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2786b2d47a2af6f0f0b7acdd2c0bc54c83bec676cf686246aafde1bd2cfcc11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0027number\u0027 \u0026\u0026 Number.isFinite(value) \u0026\u0026 value \u003E 0\u0060 appears character-identically in 4 files \u2014 packages/mermaid/src/rendering-util/edgeStep.ts, packages/mermaid/src/rendering-util/layout-algorithms/grid/types.ts, packages/mermaid/src/rendering-util/layout-algorithms/layered/layoutData.ts, packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/orthogonalRouter/router.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/edgeStep.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0fe738497efd376ff03932ed7c4ec984df31d9f136e6f60b04675635e66b14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060upperSet.has(e.src) \u0026\u0026 lowerSet.has(e.dst)\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossOptimization.ts, packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase3.ordering.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/swimlanes/phase2.crossOptimization.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57bf4bc603f3b1ea61ec5f471637377f3f790597347df4c1a78227cda378e97"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value !== null \u0026\u0026 typeof value === \u0027object\u0027 \u0026\u0026 \u0027id\u0027 in value \u0026\u0026 typeof (value as LinkData).id === \u0027string\u0027\u0060 appears character-identically in 2 files \u2014 packages/mermaid/src/diagrams/agentflow/agentflowDb.ts, packages/mermaid/src/diagrams/flowchart/flowDb.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93d3d5621eef5f06c126dc215a9ff35c8829d08a462c451577dd214d5a384ee"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060sanitize\u0060 is exported and takes \u0060options: any\u0060 from its caller, and it calls itself at line 267 (\u0060sanitize\u0060) with a piece of \u0060options\u0060 \u2014 and nowhere in \u0060sanitize\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060sanitize\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/config.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76ff2cca28d794915573cd17b902edeb94649ef32ba46dd63dc9ad28f9a4700"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060sanitizeDirective\u0060 is exported, takes a document from its caller (line 108) and hands it to \u0060sanitizeDirectiveValue\u0060, which calls itself at line 49 (\u0060sanitizeDirectiveValue\u0060) with a piece of \u0060args\u0060 (and at line 78) \u2014 and nowhere in \u0060sanitizeDirectiveValue\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060sanitizeDirectiveValue\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/utils/sanitizeDirective.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e510b357e38e310cc8eb569437d4d3870b555c4c3db559e063b7e8f9a48e3bc1"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060collectDescendantIds\u0060 is exported and takes \u0060elkNode: any\u0060 from its caller, and it calls itself at line 1394 (\u0060collectDescendantIds\u0060) with a piece of \u0060elkNode\u0060 \u2014 and nowhere in \u0060collectDescendantIds\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060collectDescendantIds\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8129c84f641a5e88f9c08af880c77d9d313ac48e0183a1479448acd45dc3ecd"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060docTranslator\u0060 is exported and takes \u0060node: Stmt\u0060 from its caller, and it calls itself at line 333 (\u0060this.docTranslator\u0060) with a piece of \u0060node\u0060 (and at line 334, line 378) \u2014 and nowhere in \u0060docTranslator\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060docTranslator\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateDb.ts"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f15ab3206fa9e0fdf31daae890afc94d6b3a0b6b6f16facf1f2547a365bff63"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060flattenNodes\u0060 is exported and takes \u0060node: MindmapNode\u0060 from its caller, and it calls itself at line 302 (\u0060this.flattenNodes\u0060) with a piece of \u0060node\u0060 \u2014 and nowhere in \u0060flattenNodes\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060flattenNodes\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/mindmap/mindmapDb.ts"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0fcc59a03db9af41136e8e1a7281d7541aa0e17d65055f305c714121535073"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060generateEdges\u0060 is exported and takes \u0060node: MindmapNode\u0060 from its caller, and it calls itself at line 347 (\u0060this.generateEdges\u0060) with a piece of \u0060node\u0060 \u2014 and nowhere in \u0060generateEdges\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060generateEdges\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/mindmap/mindmapDb.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2674260dd7bd1098ed1d21783e6eef182c9212deb31a1ba0dc5c5d68e8bbaa1"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 0/2 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: download: \u0060download\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/docs/.vitepress/scripts/fetch-avatars.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e59b26c7d0705981120a57776387d9208673b5ecdd05fbeb860c50176fd2b9"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchContributors: \u0060fetchContributors\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/docs/.vitepress/scripts/fetch-contributors.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"72571bfec3a54753a1a2c6aeef157343142186bb4e31c9f98d12e8488520c9c0"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060trace\u0060 at line 74 is called with an argument built by \u0060JSON.stringify(node)\u0060 (line 74), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because trace is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e984fa9941fa1cab497ffa24a2840b23d71c12f66872bd59735cb251936b93a"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060trace\u0060 at line 357 is called with an argument built by \u0060JSON.stringify(node)\u0060 (line 357), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because trace is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3d065ec81cd782a7199d19d6c8a72b705b5753c540dee7c7451e8ffed2050d"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 496 is called with an argument built by \u0060JSON.stringify(outsidePoint)\u0060 (line 497), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"8613631870426444bb22f51773d233a706686097b257475a1f5fee8471b31b29"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 812 is called with an argument built by \u0060JSON.stringify(points, null, 2)\u0060 (line 815), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edges.js"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"347e298853646abc5773b09dd4759ba2d5c083e5f76d2bcd68277e0df22a93da"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060trace\u0060 at line 231 is called with an argument built by \u0060JSON.stringify(node)\u0060 (line 231), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because trace is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/clusters/swimlane.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb888bdd102ab0dbd0e74804aae7de221004dbd3f01e627143d207648042f7e5"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 1471 is called with an argument built by \u0060JSON.stringify(issues.slice(0, 50))\u0060 (line 1477), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/layout-utils/validateLayout.ts"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fbdabc417e3373391f709ce8b6b4a3e3db3cda611d3655e70c201ade2c2a9b"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 2512 is called with an argument built by \u0060JSON.stringify(points)\u0060 (line 2514), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0a8ccc94588098d41afb20cd6d6c55e1a89440270a6a273152395538a67f08"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 2577 is called with an argument built by \u0060JSON.stringify(clippedPoints)\u0060 (line 2577), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/elk/render.ts"},"region":{"startLine":2577}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde169a327279f5cec4c9628106661fc70cadcbcda7061c67e1e66fa9a1bed93"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 269 is called with an argument built by \u0060JSON.stringify(e)\u0060 (line 269), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c372444f19f1e051e1110187af22c871f2386426f1ab8d6fc43753f6c2c4e1e"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 270 is called with an argument built by \u0060JSON.stringify(graph.edge(e))\u0060 (line 270), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/dagre/mermaid-graphlib.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd27b997b00a64fb3799d261b0f1a8baabfc77b03e98f59af944570348e5174c"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 265 is called with an argument built by \u0060JSON.stringify(graph.node(v))\u0060 (line 265), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer.js"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c1a2e03917a65e47ef4d9c79ff79e301406084eefe59b218caa957057a0453"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 273 is called with an argument built by \u0060JSON.stringify(graph.edge(e))\u0060 (line 273), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/state/stateRenderer.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b9ccbea98ddb3216d76d3ae4299d47b25827f267e40c4999f8e630e5b419a2"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 387 is called with an argument built by \u0060JSON.stringify(message)\u0060 (line 387), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/sequence/sequenceDb.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3ba765ac9df2e27b1e3d69e614b073d1295cc132b0734f43b415979cb834e4"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 427 is called with an argument built by \u0060label.join(\u0027 \u0027)\u0060 (line 427), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/git/gitGraphAst.ts"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ea0ada50e458851a259bcee2994e44f43c9ed6d2d6fc89b9d348f89c42f10b"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 210 is called with an argument built by \u0060JSON.stringify(classRelation)\u0060 (line 210), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classDb.ts"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0964525df37421efcaa6aee48571780638353e133ea1c96713234cd1031a9870"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 211 is called with an argument built by \u0060JSON.stringify(note)\u0060 (line 211), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classRenderer.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c40df9821ad93047b39c8e39518cabb8f099a836030a3092564b58e391cb87"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 242 is called with an argument built by \u0060JSON.stringify(g.node(v))\u0060 (line 242), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classRenderer.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fa7bee363155ffe328412b245cb285e04866630db1c5f635301353faf07f65"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 258 is called with an argument built by \u0060JSON.stringify(g.edge(e))\u0060 (line 258), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/classRenderer.js"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"724c76d8aa79baabf9daadf2c61e9ec16346912381ab44110e966dc8ddd4b993"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 89 is called with an argument built by \u0060JSON.stringify(cardinality_1_point)\u0060 (line 89), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e3943afa878f86e47543fc1885dc929009f614429069f303c1d6b88239f6cf"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 90 is called with an argument built by \u0060JSON.stringify(cardinality_2_point)\u0060 (line 90), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/class/svgDraw.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"429b684a1d51a321124b4bd2a831539ac474f45017acdd87ae5de145a282eb7c"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 578 is called with an argument built by \u0060JSON.stringify(conf, null, 2)\u0060 (line 578), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/c4/c4Renderer.ts"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"be07f96e6b3b10e73634de17b591e8f91f00524937dc13a1079c1df8cea9f1a7"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 112 is called with an argument built by \u0060JSON.stringify(child.size)\u0060 (line 113), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/layout.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"079e470a477515ddada8bbc2cd5ab232ecd3bf045cd5bbf2e29089c1a1efd13f"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 362 is called with an argument built by \u0060JSON.stringify(root, null, 2)\u0060 (line 362), whose cost grows with the collection it walks. JavaScript evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLevelEnabled\u0060/\u0060isDebugEnabled\u0060 test, no debug flag, no \u0060NODE_ENV\u0060 build switch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/diagrams/block/layout.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a404e357b3bcb36b2bf261aa9c785d8f459ff216029c1e2ca270e3dae8555ab"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060result.innerSvg\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":"packages/mermaid-zenuml/src/zenumlRenderer.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c5ede61abdcd362748b37ec39df6f51121b75267a28e05b0d1ce5ea7589f70"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060svg\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":"packages/mermaid/src/mermaid.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb7e5b111d3db05901f9fa385c34417052a15f2330ec3fa0215848feeb9ae67"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060rules\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":"packages/mermaid/src/mermaidAPI.ts"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec4bbc048287d6e8693764be0a4f9f84a7d0d8ffca24d57a039c689a560fdb7"}},{"ruleId":"X29","level":"warning","message":{"text":"Per-element action decided by a fixed element: This loop runs once per element of \u0060points\u0060, and the statement it guards acts on the element it is on \u2014 \u0060point\u0060. The test deciding whether that statement runs does not: \u0060vertical\u0060 reads \u0060points[index]\u0060, a subscript that does not move, so whatever it answers for that one element it answers for ALL of them. One \u0060if\u0060 names the same collection at two different subscripts \u2014 the fixed one at line 94, which is the contradiction: either the test was meant to be per-element, in which case every element that differs from the fixed one is handled wrongly and all in the same direction, or it really is one answer for the whole collection, in which case it is being re-asked on every pass and belongs above the loop. The \u0060if\u0060 is in the wrong place under both readings. Give the test the loop variable, or hoist it out."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/layout-algorithms/grid/routerCompatibility.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6ac1d1fcc6bf2a128e2208e89559411cdb7a22caa14b669eb754a7e70a44f9"}},{"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":"packages/mermaid/src/profiler.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4a68aa8500128b6e6ca7ae42f25f91b0a20a65d1f4d499ba12322aab24193b"}},{"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":"packages/mermaid/src/profiler.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"a760b3776e6d7ac4418b7fa5c8a585a4302b372113dc6b6455aaef0dd436ae42"}},{"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":"packages/mermaid/src/diagrams/agentflow/agentflowDb.ts"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27bef4b5a25e2bb2c5cf118b3fe3e581a79ebe6aef3c0feb1457b6b26dfd43b"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: 9/13 of this repository\u0027s type-checking configuration(s) turn on strict null checking (\u0060\u0022strict\u0022: true\u0060, or \u0060\u0022strictNullChecks\u0022: true\u0060). A configuration that states neither is counted as OFF, because off is tsc\u0027s own default; a solution-style one whose \u0060\u0022files\u0022\u0060 is empty and whose \u0060\u0022references\u0022\u0060 point at other projects is in neither number, because it checks no source itself. Where it is off, \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060: passing a value that is null compiles silently and throws on the first property access."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~17.2 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 1889 assertion(s) across the 109611 source line(s) of the 611 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: packages/mermaid/src/rendering-util/layout-algorithms/layered/layered.ts (1075), packages/mermaid/src/rendering-util/layout-algorithms/layered/compound.ts (313), packages/mermaid/src/diagrams/wardley/wardleyRenderer.ts (66). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readPoints\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mermaid/src/rendering-util/rendering-elements/edgeStepAnimation.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca02f74ba137e9d1e932bb00e2fa084289ea1088f43e9baad4d21525f4b10d9d"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-209","guid":"da28ecd2-f5c1-7852-ac41-a93b2d668c73","name":"Generation of Error Message Containing Sensitive Information","shortDescription":{"text":"Generation of Error Message Containing Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/209.html"},{"id":"CWE-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)","shortDescription":{"text":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-755","guid":"ac8136dd-f77c-1c5e-bdcc-3905bbad9bd9","name":"Improper Handling of Exceptional Conditions","shortDescription":{"text":"Improper Handling of Exceptional Conditions"},"helpUri":"https://cwe.mitre.org/data/definitions/755.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":110,"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."]}]}