{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ZmqWatcher.watching (cyclomatic 58): ZmqWatcher.watching has cyclomatic complexity 58 (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":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/ZmqWatcher.scala"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8cac2ebf88f1cd82b767d0765bc4665dac293cd0ab2f15915aac919ca3e532"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveTxBuilder.validateTx (cyclomatic 46): InteractiveTxBuilder.validateTx has cyclomatic complexity 46 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e47bcc2df7104d8b6d09f0d753e6d6ee7a6f83447c3d57d6bbbcde404c4fac"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiPartHandler.handle (cyclomatic 39): MultiPartHandler.handle has cyclomatic complexity 39 (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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/receive/MultiPartHandler.scala"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a24678dddded793d26553432df9f84b0689f72221d6aaa97908d257ad9c469"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentLifecycle.handleRemoteFail (cyclomatic 34): PaymentLifecycle.handleRemoteFail has cyclomatic complexity 34 (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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec214fe2beb7f9ce81f6b9fb3097f7dc2f0ee5122dd028014b12e7e07ecf985a"}},{"ruleId":"D1","level":"warning","message":{"text":"Validation.handleChannelUpdate (cyclomatic 33): Validation.handleChannelUpdate has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0c38bca8d7aaf41125f2416d9651fbf2626da74a52d3dc3993fe852bc88316"}},{"ruleId":"D1","level":"warning","message":{"text":"Setup.bootstrap (cyclomatic 31): Setup.bootstrap 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":"eclair-core/src/main/scala/fr/acinq/eclair/Setup.scala"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a8fbd081595ff944341684e03a1fb47d390bb214fa397e9963a2c05cd1adaa"}},{"ruleId":"D1","level":"warning","message":{"text":"IncomingPaymentPacket.decrypt (cyclomatic 29): IncomingPaymentPacket.decrypt has cyclomatic complexity 29 (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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb38632f8933ee5a0f38b837764a0ff2d9b381deb321856dafec77091c00f52"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeParams.makeNodeParams (cyclomatic 27): NodeParams.makeNodeParams has cyclomatic complexity 27 (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":"eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00dbbf6273b9e66a0847b736dd059e1ee204d8d32d2bc3316f90452b8fdbed6"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentInitiator.main (cyclomatic 26): PaymentInitiator.main has cyclomatic complexity 26 (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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentInitiator.scala"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"195d6cc0b33a81f4022ef84e153432481894f7b9d4f1dddcca00ceaeada108e9"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentLifecycle.myStop (cyclomatic 26): PaymentLifecycle.myStop has cyclomatic complexity 26 (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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0db1ad3541fd4bf3b6ed997baee8777f99d5da6867c2a9e019436ce4a04413"}},{"ruleId":"D1","level":"warning","message":{"text":"Helpers.validateParamsSingleFundedFundee (cyclomatic 25): Helpers.validateParamsSingleFundedFundee has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8468822cabaeebbc9aad56f730f74ff37073467089b4afc3767dff18ae12fe5b"}},{"ruleId":"D1","level":"warning","message":{"text":"Register.main (cyclomatic 25): Register.main has cyclomatic complexity 25 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Register.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bca465d6e708e22829a9bf140ff62da84ca9de9c4d62878d0f235fec0fe53af"}},{"ruleId":"D1","level":"warning","message":{"text":"TxPublisher.run (cyclomatic 25): TxPublisher.run has cyclomatic complexity 25 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/TxPublisher.scala"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"339085d0edfc53aae78d2f3eeb9a295c869e01638340e4c67f28e42f60ad4add"}},{"ruleId":"D1","level":"warning","message":{"text":"DbEventHandler.receive (cyclomatic 25): DbEventHandler.receive has cyclomatic complexity 25 (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":"eclair-core/src/main/scala/fr/acinq/eclair/db/DbEventHandler.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"67db4bed4468a81a8315f2aa8133dd4a47e668efb18df18e9e3c5ad83418f56d"}},{"ruleId":"D1","level":"warning","message":{"text":"RouteCalculation.finalizeRoute (cyclomatic 24): RouteCalculation.finalizeRoute has cyclomatic complexity 24 (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":"eclair-core/src/main/scala/fr/acinq/eclair/router/RouteCalculation.scala"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc63bc2e2c186f85250edf25382a23724542742c8a24e761f75b8411e092159"}},{"ruleId":"D1","level":"warning","message":{"text":"PeerScorer.fundChannelsIfNeeded (cyclomatic 23): PeerScorer.fundChannelsIfNeeded 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":"eclair-core/src/main/scala/fr/acinq/eclair/profit/PeerScorer.scala"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0574e4ec1c1062c38b3b9cbbdffaea6ead2f896fdf02fb46aa48f98df15429"}},{"ruleId":"D1","level":"warning","message":{"text":"MutualClose.signSimpleClosingTx (cyclomatic 22): MutualClose.signSimpleClosingTx has cyclomatic complexity 22 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfe7a5ffab5667d24ba44b75598cebe30f5a3dacad49294e34d73daa201304a"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveTxFunder.filterInputs (cyclomatic 22): InteractiveTxFunder.filterInputs has cyclomatic complexity 22 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxFunder.scala"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e961ec6bb7df3e9ce7e365573f0255ce0f2a2b46c6b548ab767547896dea53f0"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplaceableTxPrePublisher.checkLocalCommitAnchorPreconditions (cyclomatic 22): ReplaceableTxPrePublisher.checkLocalCommitAnchorPreconditions has cyclomatic complexity 22 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7f912341c2779c3e95f23a6bc4d25a7aa0f58e4697a7975bbf8a39f1e33041"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplaceableTxPublisher.wait (cyclomatic 22): ReplaceableTxPublisher.wait has cyclomatic complexity 22 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8231979db4caa0c23e61b0b06bbcd0f8f51961ce1083ae249e67ed4cfa21e0"}},{"ruleId":"D1","level":"warning","message":{"text":"Switchboard.normal (cyclomatic 22): Switchboard.normal has cyclomatic complexity 22 (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":"eclair-core/src/main/scala/fr/acinq/eclair/io/Switchboard.scala"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2793b33417f70781ff497dc9f442f0012860ef95173cb610916ccf46aa2dde02"}},{"ruleId":"D1","level":"warning","message":{"text":"PostRestartHtlcCleaner.getHtlcsRelayedOut (cyclomatic 22): PostRestartHtlcCleaner.getHtlcsRelayedOut has cyclomatic complexity 22 (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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/PostRestartHtlcCleaner.scala"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6d8edb13f9b77ae003e437fa259b7ac5ddbdd19af01c56e6047df809d8099e"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentLifecycle.handleUpdate (cyclomatic 20): PaymentLifecycle.handleUpdate has cyclomatic complexity 20 (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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1700fa51a032281aae4fef4889229907658af3063e5754142ae1305bdd8228"}},{"ruleId":"D1","level":"warning","message":{"text":"Syncing.checkSync (cyclomatic 19): Syncing.checkSync 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5989ee6dfb94776099feb7a10383d765b14f5f6e825c5d1c7b63048e9ec7e1c"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveTxBuilder.receive (cyclomatic 19): InteractiveTxBuilder.receive 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"615c98a18522d7c771bad4bc82d471eafd8ee86e3128b1d5a40aad6959658485"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveTxSigningSession.addRemoteSigs (cyclomatic 19): InteractiveTxSigningSession.addRemoteSigs 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"687c2d1a8a120a4b0ef1ed55340773cedf1eb52945729335816d15ef56e9fdac"}},{"ruleId":"D1","level":"warning","message":{"text":"DustExposure.reduceForDustExposure (cyclomatic 18): DustExposure.reduceForDustExposure 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/DustExposure.scala"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc51ae932900377f277e72214f008a5e9bc82a44f1df25d5342ec06693f5280"}},{"ruleId":"D1","level":"warning","message":{"text":"Helpers.validateParamsDualFundedNonInitiator (cyclomatic 18): Helpers.validateParamsDualFundedNonInitiator 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6eba466bda2768ef743778f8a635007b8aded091ce26b4ce4c872304e2bfb8"}},{"ruleId":"D1","level":"warning","message":{"text":"MempoolTxMonitor.waitForConfirmation (cyclomatic 18): MempoolTxMonitor.waitForConfirmation 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/MempoolTxMonitor.scala"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e41f300c36655c9769c59957036e0dcfc30ecb5bd5bae06c087b56c11501347"}},{"ruleId":"D1","level":"warning","message":{"text":"Graph.dijkstraShortestPath (cyclomatic 18): Graph.dijkstraShortestPath 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":"eclair-core/src/main/scala/fr/acinq/eclair/router/Graph.scala"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7601437a6047dc182368390da21ef084dde11c82d9647e4ec7ca99b11cdd50e"}},{"ruleId":"D1","level":"warning","message":{"text":"ErrorHandlers.handleLocalError (cyclomatic 17): ErrorHandlers.handleLocalError has cyclomatic complexity 17 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa05b9536c930ca935765f8c1d819993c255e35be66f8f166ea723c30b0d18e"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveTxBuilder.receiveInput (cyclomatic 17): InteractiveTxBuilder.receiveInput has cyclomatic complexity 17 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d874944c5c4ad3019f37a219ef64f6c9435e1e8a1fefd5edecfd9a6784104b"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplaceableTxPrePublisher.check2ndStageTxPreconditions (cyclomatic 17): ReplaceableTxPrePublisher.check2ndStageTxPreconditions has cyclomatic complexity 17 (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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b81390723e051a72a26ddfea015b013ad70b38197b213455fd36179fd7cd9f7"}},{"ruleId":"D1","level":"warning","message":{"text":"PostRestartHtlcCleaner.main (cyclomatic 17): PostRestartHtlcCleaner.main has cyclomatic complexity 17 (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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/PostRestartHtlcCleaner.scala"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea0ec70220d46db041623c9bdcbb7c8d99a8f712ce3b0bd5952c50c1ca45410"}},{"ruleId":"D1","level":"warning","message":{"text":"Sync.handleReplyChannelRange (cyclomatic 17): Sync.handleReplyChannelRange 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":"eclair-core/src/main/scala/fr/acinq/eclair/router/Sync.scala"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29662f6be8ce6f062ae7b8e1470feca50d0692f2bea3289b31b324a0c290870"}},{"ruleId":"D1","level":"warning","message":{"text":"Validation.handleChannelValidationResponse (cyclomatic 17): Validation.handleChannelValidationResponse has cyclomatic complexity 17 (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":"eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fe763f4358479df03587c9e03a452720dd717b11c12f2718cc30b4a255db88"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplaceableTxFunder.signWalletInputs (cyclomatic 16): ReplaceableTxFunder.signWalletInputs has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxFunder.scala"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb8038374ac16cdca737e3fc15df07f2dace6173376e276996d6ce2c697ae6e"}},{"ruleId":"D1","level":"warning","message":{"text":"Relayer.receive (cyclomatic 16): Relayer.receive has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/Relayer.scala"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"262fce1262039f00848c88ab6a489323178bc792c7d8baabaa3beb5558fa8f93"}},{"ruleId":"D1","level":"warning","message":{"text":"MultiPartPaymentLifecycle.myStop (cyclomatic 16): MultiPartPaymentLifecycle.myStop has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/MultiPartPaymentLifecycle.scala"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"364eb85e21531545f6dc7b25b88a96875e81232ab856c6179c68cc49f08bc802"}},{"ruleId":"D2","level":"warning","message":{"text":"Setup.bootstrap (cognitive 158): Setup.bootstrap has cognitive complexity 158 (threshold 15). Drivers by points: if/else 23 (76 pts), loops 12 (70 pts), match/switch 3 (12 pts) (nesting depth added 120). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Setup.scala"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a20aa5f1c8e75f54718284bddebcd0a23675d9ec83ac7b336a88ba8a6a84ba4"}},{"ruleId":"D2","level":"warning","message":{"text":"Validation.handleChannelUpdate (cognitive 62): Validation.handleChannelUpdate has cognitive complexity 62 (threshold 15). Drivers by points: if/else 25 (37 pts), match/switch 8 (23 pts), boolean chains 2 (nesting depth added 27). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"55595a62b2b3c0253a4a3fe45dbb7980fad2c8036852b7a9f416a18e88770a53"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiPartHandler.handle (cognitive 52): MultiPartHandler.handle has cognitive complexity 52 (threshold 15). Drivers by points: match/switch 15 (35 pts), if/else 8 (17 pts) (nesting depth added 29). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/receive/MultiPartHandler.scala"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f7d1e4b4615eebec7d084f40fcdfbfcb4b9710e249f90ba7e6d06c975710fa"}},{"ruleId":"D2","level":"warning","message":{"text":"BitcoinCoreFeeProvider.getFeerates (cognitive 50): BitcoinCoreFeeProvider.getFeerates has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (35 pts), loops 5 (15 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/fee/BitcoinCoreFeeProvider.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f14d97a045589b6c2ebd77c2c17d3c12500eb2aad457738e22ba791c7c955c"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveTxBuilder.validateTx (cognitive 50): InteractiveTxBuilder.validateTx has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (27 pts), match/switch 16 (19 pts), boolean chains 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"2211648d152642b8273742402b200688eaa8f4ae56baafe22d56958138c59ebe"}},{"ruleId":"D2","level":"warning","message":{"text":"ZmqWatcher.watching (cognitive 47): ZmqWatcher.watching has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 16 (34 pts), if/else 8 (11 pts), boolean chains 2 (nesting depth added 21). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/ZmqWatcher.scala"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30bac4170809b273816d06dfd6151144cd788345492b9965aa10a1a2ef626c6"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentLifecycle.handleRemoteFail (cognitive 46): PaymentLifecycle.handleRemoteFail has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 12 (27 pts), if/else 10 (17 pts), boolean chains 2 (nesting depth added 22). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f7da949e2ad319aae0930db553b6372402ecc5fcc2edef6ce64a5d621ea1bb"}},{"ruleId":"D2","level":"warning","message":{"text":"IncomingPaymentPacket.decrypt (cognitive 43): IncomingPaymentPacket.decrypt has cognitive complexity 43 (threshold 15). Drivers by points: match/switch 10 (27 pts), if/else 6 (14 pts), boolean chains 2 (nesting depth added 25). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7af890a349a41748b5eec9b447130bf46988fc69cafb22b1097ca6542be8d6"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentLifecycle.myStop (cognitive 39): PaymentLifecycle.myStop has cognitive complexity 39 (threshold 15). Drivers by points: match/switch 10 (25 pts), if/else 10 (14 pts) (nesting depth added 19). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc54cf698f48d92c5a190dfd041b7191e90f5607fd1dffc5cdab940a88552f48"}},{"ruleId":"D2","level":"warning","message":{"text":"PeerScorer.fundChannelsIfNeeded (cognitive 38): PeerScorer.fundChannelsIfNeeded has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (19 pts), match/switch 7 (15 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":"eclair-core/src/main/scala/fr/acinq/eclair/profit/PeerScorer.scala"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"9598425455cccb11efad384935687ccf8ddf6f29a56db95ecd010b85e68f9352"}},{"ruleId":"D2","level":"warning","message":{"text":"FrontSetup.bootstrap (cognitive 36): FrontSetup.bootstrap has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (36 pts) (nesting depth added 28). 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":"eclair-front/src/main/scala/fr/acinq/eclair/FrontSetup.scala"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37bb3c9f42a3b9e4e6f2baa5199efc391fc70ef1f854246e1d629940e564612"}},{"ruleId":"D2","level":"warning","message":{"text":"MutualClose.signSimpleClosingTx (cognitive 35): MutualClose.signSimpleClosingTx has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 7 (17 pts), loops 2 (9 pts), if/else 5 (7 pts), boolean chains 2 (nesting depth added 19). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e55319c2d3b99e0a5c37ff8ce0a0f05a0967e36b920b03d66448711e4e70d6"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveTxFunder.filterInputs (cognitive 35): InteractiveTxFunder.filterInputs has cognitive complexity 35 (threshold 15). Drivers by points: match/switch 8 (19 pts), if/else 11 (14 pts), boolean chains 2 (nesting depth added 14). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxFunder.scala"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6522c324a783d149e5e55944bfcf8e012d009f9b843318bae1d03c1c2bd7694e"}},{"ruleId":"D2","level":"warning","message":{"text":"Sync.handleReplyChannelRange (cognitive 35): Sync.handleReplyChannelRange has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (28 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/Sync.scala"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ac944eb939d04cca50709b4b1dc73dcee87fd929b29089d17db8357d321b72"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplaceableTxPublisher.wait (cognitive 34): ReplaceableTxPublisher.wait has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 7 (19 pts), if/else 9 (15 pts) (nesting depth added 18). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"49460db7561d257d039d9646a35ffba56509126de851c9d36a329944d1b34598"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentInitiator.main (cognitive 33): PaymentInitiator.main has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 7 (16 pts) (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentInitiator.scala"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18a9c92ce583d018194808f5d8141423c60ec488e8310f6a6787d0539b1a31f"}},{"ruleId":"D2","level":"warning","message":{"text":"Graph.dijkstraShortestPath (cognitive 33): Graph.dijkstraShortestPath has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 7, loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/Graph.scala"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbda0ec15b8cc55db01e65d6f6a03c0c59b2292395024e4494bdf7d8a24e21fb"}},{"ruleId":"D2","level":"warning","message":{"text":"RouteCalculation.finalizeRoute (cognitive 33): RouteCalculation.finalizeRoute has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 11 (23 pts), if/else 6 (7 pts), boolean chains 3 (nesting depth added 13). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/RouteCalculation.scala"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"097a70dd69e11f7ff1a8109261d0a99c29140995a742931b46e22670e05c2f6d"}},{"ruleId":"D2","level":"warning","message":{"text":"TxPublisher.run (cognitive 30): TxPublisher.run has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 6 (15 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/TxPublisher.scala"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6e69fd4048fdfcd1a7c34e8638dcab5fda4f20f1137e8ee131047fe39be413"}},{"ruleId":"D2","level":"warning","message":{"text":"PostRestartHtlcCleaner.handleDownstreamFulfill (cognitive 29): PostRestartHtlcCleaner.handleDownstreamFulfill has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 5 (15 pts), if/else 5 (14 pts) (nesting depth added 19). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/PostRestartHtlcCleaner.scala"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34f6d491b8e772b50800faa2c243e7859d48433230bb5d7785b1c7a2f16a224"}},{"ruleId":"D2","level":"warning","message":{"text":"PostRestartHtlcCleaner.handleDownstreamFailure (cognitive 29): PostRestartHtlcCleaner.handleDownstreamFailure has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 5 (17 pts), if/else 5 (12 pts) (nesting depth added 19). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/PostRestartHtlcCleaner.scala"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8b3812bc4f7e8e8e0125c5df3060c7db6fb07f74d9edbd1e4b7b14d73e3b1c"}},{"ruleId":"D2","level":"warning","message":{"text":"Channel.resumeSpliceSigningSessionIfNeeded (cognitive 28): Channel.resumeSpliceSigningSessionIfNeeded has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 5 (15 pts), if/else 7 (12 pts), boolean chains 1 (nesting depth added 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":3723}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6340c57c29da959379eb2607842211e1ae43577063a5d936fd4e840e3cee524"}},{"ruleId":"D2","level":"warning","message":{"text":"PostRestartHtlcCleaner.main (cognitive 27): PostRestartHtlcCleaner.main has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 4 (11 pts), boolean chains 2 (nesting depth added 14). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/PostRestartHtlcCleaner.scala"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58ecd373756ad4999ffef930616021f32221303d1bb8b5b4014f44f2f92b1d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplaceableTxFunder.bump (cognitive 26): ReplaceableTxFunder.bump has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 5 (8 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxFunder.scala"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c3f0ce3d6e8b04937059834934e44ed1119d408a2a6d0369d8914e5be44143"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeParams.makeNodeParams (cognitive 25): NodeParams.makeNodeParams has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11, match/switch 9 (10 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad7ba9cbd894efd1737d0b6024b2585ee13b661564922331f71754e335cfa84"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiPartPaymentLifecycle.myStop (cognitive 25): MultiPartPaymentLifecycle.myStop has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 6 (14 pts), if/else 7 (11 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/MultiPartPaymentLifecycle.scala"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8203dfaad46b15ac3b54bb7e0fcef578768ac8b622e1da6573d5fa41d3c0be"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentLifecycle.handleUpdate (cognitive 25): PaymentLifecycle.handleUpdate has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 6 (15 pts), if/else 3 (6 pts), boolean chains 4 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf69043e2e4e37c4cc2327112c5618dc82d483bd6069c3fc128bd7390fd44dc7"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveTxBuilder.receive (cognitive 24): InteractiveTxBuilder.receive has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 7 (19 pts), if/else 3 (5 pts) (nesting depth added 14). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"b469dea699742a9cd5bf39278b938a211d58820f0321d5058346e3fad22ff13f"}},{"ruleId":"D2","level":"warning","message":{"text":"PeerScorer.updateRelayFeesIfNeeded (cognitive 24): PeerScorer.updateRelayFeesIfNeeded has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), match/switch 5 (8 pts), boolean chains 4 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/profit/PeerScorer.scala"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e93c651a09decb64714b21b5f591669c4af12f1d8890ada3d507ae772f833fd"}},{"ruleId":"D2","level":"warning","message":{"text":"Graph.yenKshortestPaths (cognitive 24): Graph.yenKshortestPaths has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 3 (11 pts), if/else 3 (7 pts), loops 2 (6 pts) (nesting depth added 16). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/Graph.scala"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"803fe46e095576f1f025405478f0c4febc099936d46bb5604db544481fcd4fea"}},{"ruleId":"D2","level":"warning","message":{"text":"BitcoinCoreClient.cpfp (cognitive 23): BitcoinCoreClient.cpfp has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 5 (17 pts), if/else 3 (6 pts) (nesting depth added 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BitcoinCoreClient.scala"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9acb896f29df06263a771ccd197d2505cb1dd04d625fb8ccbe2b3baad4979f6"}},{"ruleId":"D2","level":"warning","message":{"text":"Helpers.validateParamsSingleFundedFundee (cognitive 23): Helpers.validateParamsSingleFundedFundee has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 2, match/switch 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9376a0ab5b83835c148f430491e90847e6079e939c62999644e7bf9bed5bf40d"}},{"ruleId":"D2","level":"warning","message":{"text":"BitcoinCoreClient.validate (cognitive 22): BitcoinCoreClient.validate has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 2 (6 pts), match/switch 1 (nesting depth added 14). 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":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BitcoinCoreClient.scala"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cc1a7b652f4871f5a74951107cf74e1b76a5dda81bf323499bb871db4f9b6b"}},{"ruleId":"D2","level":"warning","message":{"text":"Channel.handleNewBlock (cognitive 22): Channel.handleNewBlock has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 3 (8 pts) (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":3654}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eddae1f9e7a62570f55f4dbc94d3e0a7d50a7a8b9e0624387366ba60df2888c"}},{"ruleId":"D2","level":"warning","message":{"text":"Register.main (cognitive 21): Register.main has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 6 (11 pts), if/else 7 (10 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Register.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f76e7356ab4f4c0170cfd3fb08b78b5cd36babbb8aa721b1b7df9cbe5ae08ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ZmqWatcher.checkSpent (cognitive 20): ZmqWatcher.checkSpent has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 6 (18 pts), boolean chains 1, if/else 1 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/ZmqWatcher.scala"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba1dd70d6e0e9193d5b0f53ff3032095163aa7590c68c6a1e005d3378ee74d1"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplaceableTxFunder.signWalletInputs (cognitive 20): ReplaceableTxFunder.signWalletInputs has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 7 (15 pts), if/else 2 (5 pts) (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxFunder.scala"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"21499d90788250fc86f5e86ba11a8d649c9a3743761d0ee7162ad8d3697b5126"}},{"ruleId":"D2","level":"warning","message":{"text":"Validation.handleChannelValidationResponse (cognitive 20): Validation.handleChannelValidationResponse has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 7 (11 pts), if/else 5 (7 pts), boolean chains 2 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ffcaeb00b12d0a57e0d264a99762fe0e1ee22ddb40d4a8b938e342f3f7c6fd"}},{"ruleId":"D2","level":"warning","message":{"text":"BitcoinCoreClient.signPsbt (cognitive 19): BitcoinCoreClient.signPsbt has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (14 pts), match/switch 2 (5 pts) (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BitcoinCoreClient.scala"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1c5a65867cdd3151b30081b4b028370b1ae40c664fb4ef697c97ef44594452"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveTxSigningSession.addRemoteSigs (cognitive 19): InteractiveTxSigningSession.addRemoteSigs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, match/switch 5 (7 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"799b10a7f77bff62c7480cffb52f1a0661a7647322590840722bbf8ccac26662"}},{"ruleId":"D2","level":"warning","message":{"text":"Sync.split (cognitive 19): Sync.split has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (19 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":"eclair-core/src/main/scala/fr/acinq/eclair/router/Sync.scala"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"c358dcec0d0c6d05ae28e90efc2e985a554dd92fbe829729325dc906e03c027a"}},{"ruleId":"D2","level":"warning","message":{"text":"BalanceActor.apply (cognitive 18): BalanceActor.apply has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (9 pts), if/else 3 (8 pts), boolean chains 1 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/balance/BalanceActor.scala"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde0a1eb2d7b37141e37db0dfe28465a08db823685d6c2456c6e1f2e3010d71d"}},{"ruleId":"D2","level":"warning","message":{"text":"Commitment.canSendAdd (cognitive 18): Commitment.canSendAdd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f032846248179484e92590253d700c5557820bc82f1d0e6b9ff399f55ec35c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplaceableTxPrePublisher.checkLocalCommitAnchorPreconditions (cognitive 18): ReplaceableTxPrePublisher.checkLocalCommitAnchorPreconditions has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 7 (17 pts), if/else 1 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade0af6593a32b0685cc5be5b89f43ff3e0bc05e4e335d2bab0846361a897158"}},{"ruleId":"D2","level":"warning","message":{"text":"Helpers.validateParamsDualFundedNonInitiator (cognitive 17): Helpers.validateParamsDualFundedNonInitiator has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 2 (3 pts), boolean chains 1, match/switch 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8696e5301efb46de84e9788fb55ccfc474b83220ee3edd139d337da8b75b21"}},{"ruleId":"D2","level":"warning","message":{"text":"MutualClose.receiveSimpleClosingSig (cognitive 17): MutualClose.receiveSimpleClosingSig has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (9 pts), loops 2 (7 pts), if/else 1 (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f513578ac40b30de211d3d2f5bf392284b5ec7be3baea037e696a756ada41a6"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorHandlers.handleLocalError (cognitive 17): ErrorHandlers.handleLocalError has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (12 pts), if/else 4, boolean chains 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca17330b9fb713f86bc889183ed6e49947665e79974b2ab202f16182370b722"}},{"ruleId":"D2","level":"warning","message":{"text":"DbEventHandler.receive (cognitive 17): DbEventHandler.receive has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (12 pts), if/else 4 (5 pts) (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/DbEventHandler.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbefc9148c4d86546e059526686664cfa72b370403794eb329e58d69b67b5ecf"}},{"ruleId":"D2","level":"warning","message":{"text":"Switchboard.normal (cognitive 17): Switchboard.normal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), match/switch 4 (7 pts), boolean chains 2 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/io/Switchboard.scala"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d03b26b5e44cf124a49decc298ed596176d7cbf8f1b78ccc9fe19d07794fa68"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentFailure.updateIgnored (cognitive 17): PaymentFailure.updateIgnored has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 4 (8 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentEvents.scala"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54bbf3545f9597bdefda78276c7a421ea84d3be1671b87c329079195a8240c4"}},{"ruleId":"D2","level":"warning","message":{"text":"Transactions.isWitnessStandard (cognitive 17): Transactions.isWitnessStandard has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f78fcfb87f7f0eed867087b5579519e38f5bba0e0dd2e89532f29454ffa7bf"}},{"ruleId":"D2","level":"warning","message":{"text":"MainAndHtlcBalance.addRevokedClose (cognitive 16): MainAndHtlcBalance.addRevokedClose has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (7 pts), if/else 4 (6 pts), boolean chains 3 (nesting depth added 4). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/balance/CheckBalance.scala"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8a11eec71a97b97d439b1c9a1169e667144a77fc7f003a8a948bd3634a791d"}},{"ruleId":"D2","level":"warning","message":{"text":"Relayer.receive (cognitive 16): Relayer.receive has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 4 (6 pts) (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/Relayer.scala"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae27ecfa892709095ed1348ac70503c3b4d37d37a8b7e5f9685d8ed6dc5b03d"}},{"ruleId":"D2","level":"warning","message":{"text":"BlindedPathsResolver.resolveBlindedPaths (cognitive 16): BlindedPathsResolver.resolveBlindedPaths has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (15 pts), boolean chains 1 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/BlindedPathsResolver.scala"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"360c5146815bdbf38c748b3c5c6125ff7479d13b27becaef9f61e11daae2e2e9"}},{"ruleId":"D2","level":"warning","message":{"text":"PartHandler.waitForSettlement (cognitive 16): PartHandler.waitForSettlement has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 6 (15 pts), if/else 1 (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/TrampolinePaymentLifecycle.scala"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"820df7cf5f105488e84cdcfaa5916bc17e94ac47abb92a7d12266dafe7c7c48e"}},{"ruleId":"D2","level":"warning","message":{"text":"TrampolinePaymentLifecycle.waitForSettlement (cognitive 16): TrampolinePaymentLifecycle.waitForSettlement has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (3 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/TrampolinePaymentLifecycle.scala"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"881281f4325e71e479709e70dc73d557f85486c2c5f002f4b20c99295f107234"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fsm/Channel.scala: FileTooLong \u2014 2719 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: Channel (231-4021). The bar is 500 significant lines; this is 2219 over it, 5.44\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"307915d3ac4d823e975654e54ddbd130a3d759038abf5c2d7ac017cef18598f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transactions/Transactions.scala: FileTooLong \u2014 1031 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 531 over it, 2.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":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8575f7753bf8c001b2980a636a04dd19a225686687cce74de9163054e75f855a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: channel/Helpers.scala: FileTooLong \u2014 979 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 479 over it, 1.96\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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd3685363e6936a79f027978e0e0ed1f7e5ba3a3d8a877d6637bda2ca15c595"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fund/InteractiveTxBuilder.scala: FileTooLong \u2014 882 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 382 over it, 1.76\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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c6daf1b2253cc6f0b4a4afcb76ebbce6c795c2b9aeb09d3df2bbc465d8b38c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: io/Peer.scala: FileTooLong \u2014 876 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: Peer (62-1130). The bar is 500 significant lines; this is 376 over it, 1.75\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":"eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b76663102aa0ea8aea111f2ead7fcdb2bd6e2b25d22564b2d26cf636e4e198"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: channel/Commitments.scala: FileTooLong \u2014 844 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 344 over it, 1.69\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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2810ad68aeb8c2d2c5c3e789afe86c2e4d5507ed15263d78ee9d0a5c0583df12"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BitcoinCoreClient: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\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":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BitcoinCoreClient.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"361d24727a016e8f992549ba4ac4addf15649b06cdf60bd283fe67ac8a40a906"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fsm/ChannelOpenDualFunded.scala: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ChannelOpenDualFunded.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb7452db4b0e1fbd81c2e9f7130e82fa95b2a0df6b23bb9fa4d72b867d4d14b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: protocol/LightningMessageTypes.scala: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 120 over it, 1.24\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":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LightningMessageTypes.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d26a158f1715c67e1937c779010e7dfe3e19f88b6ce25351bc88fd0b05dfc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: json/JsonSerializers.scala: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 67 over it, 1.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":"eclair-core/src/main/scala/fr/acinq/eclair/json/JsonSerializers.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c252b42ee6b02de73d5e971347763df5a15cf0c143baf83fdd5413421f3b1290"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: router/Router.scala: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 63 over it, 1.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":"eclair-core/src/main/scala/fr/acinq/eclair/router/Router.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4593794a58705a0b901d0061d29055a7d969c117c5dd3ac68e5c0ddff5a4571"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: io/PeerConnection.scala: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: PeerConnection (59-675). The bar is 500 significant lines; this is 60 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":"eclair-core/src/main/scala/fr/acinq/eclair/io/PeerConnection.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26e129bb6a731305626a6e57b3d235820d684b7b0eddfeed885bbe9fa51716f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eclair/Eclair.scala: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: EclairImpl (223-878). The bar is 500 significant lines; this is 55 over it, 1.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d0b733498371ef66ccc7d1fe54821706e7aa7aacb1c1d0fe3f995664b8ff4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eclair/NodeParams.scala: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0670c2c552ab10e7be2b0682dadb3d50c83ec42c96e6187d7cf644e44b62b89"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EclairImpl: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 32 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"53709452a55819d614e724b20fc6288386b81743cfea6189b283e7f1f0e558b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: channel/ChannelData.scala: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 28 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/ChannelData.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"671b5af51da09863d8a3205069b85b8f520267a8447c805103f257920bf37920"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Channel: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"748b52820acdd9d41e708e901f70d63e766d126439cbf127b38544c1a626668e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rpc/BitcoinCoreClient.scala: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: BitcoinCoreClient (54-826). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BitcoinCoreClient.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efcb630d59247ef72463289588b621166fe890c4754ec3263bcf388581e09cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pg/PgAuditDb.scala: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: PgAuditDb (43-658). The bar is 500 significant lines; this is 1 over it, 1.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad55a33cd65a0ea2c33e264de9aea85825226d4a57da9056464c1042d709b64d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (26 shared lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:626-657 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:593-625 \u2014 These two members are variants of one another: 26 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec7b30b8809d56e47d557be1dd13b2a96f5742ca54d0bd2a1fafddc2d1043be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:343-363 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:339-357 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"52280e7b1c3fa79e7166f38461468a36208a56f0145c45f5a5ba8b5aa6232fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/MempoolTxMonitor.scala:97-135 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/MempoolTxMonitor.scala:137-193 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/MempoolTxMonitor.scala"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"43711f38941f658a4abbb591b6af97a30df924b0a1cdf9b70220fe30c23d21ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:464-480 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:482-500 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:502-519 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:446-460 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:462-478 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:480-495 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"95273b26d3a24110a5e40e1c203ce84444acfde0e04ecc47081a24c60b99919f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:165-212 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:131-176 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4877308c040f0f95376519705a328f2e71e2e44d86e6febcd33229f3ca620ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala:99-169 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala:176-229 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64d2b85530d5b497e387359f3bb45b5bdc7ceab926325939d94133124af57a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala:326-345 | eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala:347-369 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9e17ff65f1d0c9aeed565902f5e73cf7b2e23d5053a397ade229e3e9900d00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:305-341 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:303-337 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b5cb7649fa740735a9d7272e190d9fa65e65e97424b87710551a360b0ade05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:568-601 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:540-571 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"243d609a9a64d29d2fa6a859c7686266f143b313b323d80b67d238b70ed3e387"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:1101-1140 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:1294-1335 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9b8a4f5dd4241683cb94ccfb97790ce38957c21e7efc3ab591eb435decf08a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:590-619 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:621-656 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c2a8eec623844afdb7563c686c38cf86d1fb55f153314a6258f476a5a7e0db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:263-293 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:227-256 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac94da7fb7a67894af30d223a7176bc8c80791288843ec8e8559e2276aa5d57c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:71-93 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:65-85 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0711834f91b4d2767b63a97f126ef77ab99ce0ea5def0ae6d8121fe6e099b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:113-137 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:145-166 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b127eb70fc6188d765f38f0467ea56e7b6952a418558b60b11ff639523966e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:721-731 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala:73-83 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11fe2526744afe08dac1c099793b29a79c62baeb433ebe4bc291d0dfd3c08c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:106-128 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:96-116 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0494a30cddfde33a3c1ad0a616475f2cc3b92a277984e840a60e11ffcffbe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:181-206 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:164-187 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60271cda67f06470631a55eabf14fbda9b63342d183a69554e17e18976ba560"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:674-688 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:698-713 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb16c0e94e8bd9776e60788d31821f14acfbcd1973c7cafc0c6615a536d17434"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:1088-1119 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:1144-1167 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:1192-1215 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd64528b9e06106e401229ac8964fbb5be62bd6e5b943da51747ff023ccdc3b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:604-623 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:574-591 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"51111e493f9659b5dc80840bbe15e4225efa0b54dac8e10423fc41ed0cd80053"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:1572-1592 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:1601-1623 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98241eed204944a4d8c3c827aa2e919444ef9a601ef71868aac8e5db3e824b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:266-287 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:268-287 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"5201aadb7965cb7d0c9de87939da13cfacc441cb46d7ef0ecca3058b87a59ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:224-252 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:192-218 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c3741de1dfb3d2451f03279518fd86552e0cfe649dbc940d875be26044120c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:130-148 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:118-135 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2c2b6ce51e08ce95f4022383f2bb592d4868f894c1c5942296cb2d7b46f517"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:166-188 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:191-213 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59de00a18f1f9f404c6ba33537041c41f7311c9cbd29bd742695841bd7de989"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:300-316 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:313-329 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"09887a37ad4b3f6144b98afd87aae9dd60b4391000c3ee2db7ab02a04e7c233f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala:219-227 | eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala:237-246 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc414393e25c351deea052ee64ed57293ef632d354de7708d9c62d02e42ed8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:521-542 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:497-516 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd7e03ce1042043190710cf8b431ae83e4ad3c6df374794d44f57e93848624f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala:197-223 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala:258-286 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4fdc4270879b7d3edeb461556a47f1850c49b725aadb40be7e6fe97d5aa654"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/crypto/ChaCha20Poly1305.scala:52-67 | eclair-core/src/main/scala/fr/acinq/eclair/crypto/ChaCha20Poly1305.scala:69-84 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/ChaCha20Poly1305.scala"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe38a91dd72e7cc3aad24df1b85d3ec2728adbf42ad263bbab3df3fb7d8aedcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:160-179 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:145-162 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80708cbd624e4dfb269ed4750d48ebe55e74f343edd53f6b46cc573bb60b08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:959-974 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:997-1011 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6022f7ae481b51575957e5c755ee1f41758ca482cbb0b41b6c1ea9bd91d85e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/crypto/Noise.scala:423-436 | eclair-core/src/main/scala/fr/acinq/eclair/crypto/Noise.scala:438-451 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/Noise.scala"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d541aef75f6a1c546138f71503f91833a4146f0d674a270a4fea6a71391ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:139-153 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:168-180 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8bbc84022d4c767a1031e72fb9cda2c4e79af38476b6a58accf76dbee7c987"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:379-393 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:371-383 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"57395d909a1c085d6cfecbbd7c16e81a2a1ab303a9df8fef3378bf7c093768b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala:397-406 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/RouteBlinding.scala:87-95 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/RouteBlinding.scala:117-125 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"35deed7d92b7d5b2234b7ad2881f913dd5c569435d48267a18ae5a405904b7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:90-112 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:114-133 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6cfc88a87a93726f094f3f223afa3bd731994554d05c9126bfd03d5f2b3177"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:249-264 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:253-266 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4910f6e4b96933662089028b8effc111bd2f0c4bc09d0bc10ebf3e824961c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:262-279 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:246-261 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"851e037d863c5375bcfbc1fa9cc6e82af8b0ecab73f86c68b4539d9bbc3e9fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:1178-1190 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:1378-1391 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb221641e1a397255cdabd971a01f97d7333407c07020b193ac38b74e8b14d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:424-441 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:410-425 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d2e3ef207925287dcdaab6cd586c752f5a7859b2e36d9c8bbef71d6f5fe8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:753-766 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:812-826 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:872-886 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:1127-1140 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:1175-1188 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"0562681e07e1e5396ae3d8580595ad9706b431790f9e659511d73ac82548a436"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/MessageOnion.scala:82-91 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala:434-442 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/MessageOnion.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8506da305ec759ac3c13770344a7e76d986f6d1c148576fa9dff8e42e1d430f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/message/OnionMessages.scala:167-177 | eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala:73-84 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/message/OnionMessages.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"620af629ea36b1fb02613522bee540a5cdf95c5a25dde4e42db3572bc7d5a017"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:850-864 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:909-923 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"3667fa8447ac24670a5a8fdfe843a7f3be1192b9e6a30c2508171176813af634"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:1065-1072 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:1074-1088 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ecbbbd2ee5d7da93ff51d0267b8a77475482b8b4c519f319ee28369060d83f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala:265-274 | eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala:276-284 | eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala:286-294 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"9134fb91042714f44f538fee4e37ad6a11232cf3e5bc6734d421b904537e5cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferTypes.scala:285-295 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferTypes.scala:303-313 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferTypes.scala"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"811f09cb3ef020cde45d48ab0b15b03cbaa223202ea2a7addbc5ab9526680f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/crypto/TransportHandler.scala:383-394 | eclair-core/src/main/scala/fr/acinq/eclair/crypto/TransportHandler.scala:396-407 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/TransportHandler.scala"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb4c03be17fe185264098af585c4f4e1a62dac951e4e43e1b4313c0fe95da42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:395-411 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:385-397 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"72eea4d3296a49c8db5889fb584f335def3f1ae37f19139407152cd6df904d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:215-222 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:137-144 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"74dc25863864fe9e1aae0af3dd17ada910ea9360e2f95289c1fafaf04fdfcff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:365-377 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:359-369 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df07344e9197ab877982b320e931a38d9bfa655b668c245f05acd2e54f802f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala:395-424 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala:434-463 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f539d0333f4696b1f704f49e0ed8a3b3f974b5509abc5a9cbe701cfc8c8a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/ChannelRelay.scala:186-199 | eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/NodeRelay.scala:314-328 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/ChannelRelay.scala"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f17c04d74f531f605673564a49a4ce5253da9f5d1a8ae567f3fba4717ff3da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:289-303 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:289-301 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f7108ca8721d441654817a58009c4eea0e148b24e0677e59dad66ebb656b36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:57-68 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:74-83 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb5467e849d4f0270f56e0935ac169d160ea9542cfab5a321e6b7bcb466ebde5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/payment/Bolt12Invoice.scala:141-153 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferTypes.scala:338-350 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferTypes.scala:440-452 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/Bolt12Invoice.scala"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"512abcd4ee79f4fafdc6d3323653ae53c9138d7e6eacacf3ed835ab361c621f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala:636-643 | eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala:646-656 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3a528c952ed6836f9e51cae5a2ff4d878a112035f3ef667d77b2fd40a8999a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:157-168 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:170-182 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:137-146 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:148-157 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba813b1e1edc00760216f102e8b8df4eb6ff000d82cfc2a029be47f6051e413"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala:284-291 | eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala:293-300 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a86bf136bd386ca01ebe8a0231c8b08b9544d105c0a38f5363494572a95f1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgOffersDb.scala:59-73 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteOffersDb.scala:53-65 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgOffersDb.scala"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66e56b552fd4fdd0001cd3076e9d5a73d0bb75679feec0e6c99335057bd0d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:85-101 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:103-116 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:159-173 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:186-200 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85909239d30464f913686f642ea45117251c103db02e5eb1fbe82cf4860c20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:672-682 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:726-736 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca55038d1aa9fbf4936d4043ae18392c1ee2f4e3c6c6d924d3ce7bda4d856016"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:339-355 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:346-360 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adf04a5c84a01fc3bda515329004daf227a0c0a8644fa7bda51338632b967fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:245-265 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:163-177 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e65f77ef296b055cd1304f69d3e3741768409394fed2d01273ffa13627141f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:257-269 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:283-298 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:270-280 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fe36ec399719cd40da67b38330ef0fef378a85c4bacb83b22f6d40947722d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:155-164 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:182-189 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80c2fa1e4a28bbcc65782c1df3dd82a713dc4c351f0f0922f92f4e7a99834cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/io/MessageRelay.scala:200-212 | eclair-core/src/main/scala/fr/acinq/eclair/io/MessageRelay.scala:214-226 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/io/MessageRelay.scala"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ad3c7c0b80a71ff7546619f76292140147cbdd9f6f16b7d75ea42434efc79a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:646-657 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:700-711 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"594a6e7b37984840926f5d6512e37e8f67d13b14007df6c54b6b7ac2d4be2842"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:208-220 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:189-199 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a975b88f8f5964c25689e5c57a98d290a887bee73cfd6f480ad28261f07926cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:1686-1698 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:1710-1721 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala:1733-1746 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2445d13128f619c9a1f0000ecc9b6b4d70ec11eb9b67f4fb0f88a9402d6765"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala:663-666 | eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala:668-671 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"05baad305e9ea30231401c072d9b0635bf83e91a9ae709f0a5326302676e986a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala:232-236 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala:249-253 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"555ebd7e48e3a9388687bd4c620bd873ea0f1245405aacd7e4d832c4cba1a0b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:750-755 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:765-770 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79f4e051a3e12e9658575639744092f19863685077701c6c8d4e2be32b64584"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:188-200 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:118-126 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da032f774b038eab0ba0a8545b09128b70ed8b6a7bd9fa0fd1ab60a1665b586"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/payment/receive/MultiPartHandler.scala:483-490 | eclair-core/src/main/scala/fr/acinq/eclair/payment/receive/MultiPartHandler.scala:492-501 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/receive/MultiPartHandler.scala"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c91dc3225b7a44f7555f0ec7c4127184d6cc890cd01839512449a3a8cab800"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/io/MessageRelay.scala:174-185 | eclair-core/src/main/scala/fr/acinq/eclair/io/MessageRelay.scala:187-198 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/io/MessageRelay.scala"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b604d7c233022544a46dbe452138f3a55682154dab6c4e3da1014e8ca4115b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/OnTheFlyFunding.scala:311-317 | eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/OnTheFlyFunding.scala:426-432 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/OnTheFlyFunding.scala"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6fc51160ad640b55790da2ca22f2bbdd648884aab7867965ed3623495a63b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LightningMessageTypes.scala:426-434 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LightningMessageTypes.scala:464-473 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LightningMessageTypes.scala"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e47f3c204dc90622a8457e0da3fbc8f81f14eb2c18fca099ab233a5c26a4d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala:270-275 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala:471-477 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2c476070364d14eb510156e7e5b1e800afad3acec01a17bd7abca25474bc7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:98-115 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:117-132 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe3e7309b3611df23b70de1a2ea3a4352f2bb17c7b9312e6c8fa70b93abc542"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:202-213 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:128-135 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"59099e810a11b1d2dbe260ba929d8b58bb5e14a85fec85c23521ed2df6d2e374"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/crypto/ChaCha20Poly1305.scala:110-115 | eclair-core/src/main/scala/fr/acinq/eclair/crypto/ChaCha20Poly1305.scala:125-131 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/ChaCha20Poly1305.scala"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5818506862e50bef19dda70f20ef218e42aad90f1e3a29fbdc0f37ccffb1ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/profit/PeerStatsTracker.scala:150-158 | eclair-core/src/main/scala/fr/acinq/eclair/profit/PeerStatsTracker.scala:160-168 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/profit/PeerStatsTracker.scala"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b00f7f1406e8c5b6d294ffb0e4778392d80791ff63dfd8d0263cb2b9113b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LightningMessageTypes.scala:350-360 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LightningMessageTypes.scala:374-384 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LightningMessageTypes.scala"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"585492a6cc58f60dd50289fd56082dfda4e14d7e11af3b60f52e34557e51ebfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgOffersDb.scala:94-106 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteOffersDb.scala:84-94 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgOffersDb.scala"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f802936e4f3b8cd68f0e787b88c729a67d3afd1dc03fcd761b1452839d069b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:134-146 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:214-229 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb96b5309e28f7f40dd6c911546837381fddcd4f876404323962aa30bed53df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala:336-343 | eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala:345-352 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"2817086cbea396184efcb878801865b3aaa56564828f202e2c41c1bb670c66c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:242-251 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:253-260 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"438dc68742b8147fd70b3d58ba758677500ad3bcb5b58619bc302f4c32e52a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:134-144 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:146-156 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd93a753db7766232e661a6e2bda8acdd0151953507ae9d0795738cc0fc92ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:233-243 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:153-161 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0b39f70d12daff9db96d188ac66e7fd607fb5d07b303c4fa2595dfb5037ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:201-212 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:175-184 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"871c14766dee6031fa5dc3fb9c583f2b4a7ce466efd122f68bc1b7df530fc796"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:295-305 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPendingCommandsDb.scala:75-84 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e67366d85bec5ddde284a7e134c69487dffdc4e24d84c5154c139d646879ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/crypto/Mac.scala:50-57 | eclair-core/src/main/scala/fr/acinq/eclair/crypto/Noise.scala:154-161 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/Mac.scala"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"673efd3f498a67f50879dcc04f8ff0401f1b36cc5f33732cc0a12e94527434a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:155-163 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:121-129 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"81555cf8995371d01624b0652ab6de68850e28ce1b016c341a43ac76fd21c542"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPendingCommandsDb.scala:106-114 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePendingCommandsDb.scala:83-89 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPendingCommandsDb.scala"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"809117dfbc1c3c9100e7a4855d804ba952925f9a6af1b3fbf3cdce3263937809"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala:350-359 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala:423-432 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala:501-510 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/PaymentOnion.scala"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecc96bf1c02649d72f30d9d81ca8196c55d8a91229c7c5581f10cd3e779d481"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:271-281 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:282-290 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab408c44511b57022116cd997c19a21f3486edd3f61b5da91eb9169df7eb90e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:258-266 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePendingCommandsDb.scala:58-65 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e561c28613c0daf165e776730b34fd27542f44e1f9bfdea596664d167cf70a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/ChannelKeyManager.scala:58-66 | eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/LocalChannelKeyManager.scala:53-59 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/ChannelKeyManager.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"537d3daf144389f9bbde71af89f22c084f84a280d646a58b894219bf6b9961a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:231-240 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:202-209 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6246f7cf9e5fd3d1f687434ab5f0ac1f773a146197b625f957fe0f81b68c659f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/ZmqWatcher.scala:191-199 | eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/ZmqWatcher.scala:201-210 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/ZmqWatcher.scala"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f01c220a3356b5f256922c4044d4d8ba53181c5ff8eea454aec19694f336b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/FinalTxPublisher.scala:52-63 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/MempoolTxMonitor.scala:72-82 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala:63-74 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/TxTimeLocksMonitor.scala:53-63 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/FinalTxPublisher.scala"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b69bdc1f6c1cf88f4172a12705561268ae63e80e2ca953cb7ff47677c595d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:145-153 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:95-104 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ef35bf1b96ec68e62f7fb32428cd3c63c0c84cb200b25d50c99c1fbe6fa0c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:214-222 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPendingCommandsDb.scala:86-94 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"d857a7601fbb38fc9ef672aa7f05d3283d0280d91139c185f8b8a46fed6aa8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:233-240 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:227-234 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfae879be067da1700516fbbcdbf360336c7c25ad487362a340450645444abdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:184-199 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:158-167 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a66050a4ea33772e40683c3b4aa3d02a8b633118ee7e409ab03962b9193ea32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:135-142 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPendingCommandsDb.scala:96-104 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2aff5fc75ff4f93fa88425263e5c245c4f8e5f5ebd40d3a1c4fe16f00d03f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:87-94 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteOffersDb.scala:67-73 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f8d446437700f9269c2b36f24eacd01bc0eb3a0747383c51990982c404a937"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-front/src/main/scala/fr/acinq/eclair/Boot.scala:58-63 | eclair-node/src/main/scala/fr/acinq/eclair/Boot.scala:94-100 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-front/src/main/scala/fr/acinq/eclair/Boot.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ee7004ba1bfefb69e61e398d9acb059e4852a5d1549dd75480e7f367bc6edb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:239-244 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:95-102 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"994a07d839d92cc4b026b7bd67e0aaabd36290c68f3c544ca91f9efbf2e9902a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:224-231 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:146-151 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a66cf3920fe61fb5e3e4ac9b020efcec341ffa89f7177b3fe7a607d1220338"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgOffersDb.scala:75-83 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:148-155 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgOffersDb.scala"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eede738f4af1e2ad4dd16a89829cf494e22dc52087accb8a7b0bcff75eabcf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:209-216 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:234-239 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b9a1175681be298e0491a89be56f43d8824ef3d9b5b68e2ffb491b0a0a7e18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:218-225 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:241-246 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33795a13baf6859bdec64c5c0c2a2a74c039df613f9407e686c017f6ec9bb5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:210-215 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:248-253 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"624318a165471220cbef0016a7c1b51b4787286780f2a342635bed1844ffb140"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/ChannelRelay.scala:489-492 | eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/NodeRelay.scala:535-538 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/ChannelRelay.scala"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"954e772b0ad67130d390c7025be7c7f2bd219686f1e7bd4adcfe9ac36505af54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:103-108 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePendingCommandsDb.scala:75-81 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d3dacb889321e25b6bcec4328a56176de148bc351111d4d4d414fc82c75e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:179-186 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:111-116 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2f103b764b1ac1692e3a6fd0c1384f76f3bf7bc5c31222769d5c657e599355"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:254-261 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:220-225 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe17b448ec9fd88620f856b55c5c50627772acd9f813eb4dcdbc0b07bfe8ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala:132-158 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala:196-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce55e69bb94935c0fef82ad86b84c98fd840da5a76450fdc24d99e41106d2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:270-292 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:234-256 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:270\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c973a09f32da6c567b787f3d5b972978ebe1e304f7dd075af4e8c46a5a2af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:92-106 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:115-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060data\u0060 to \u0060PersistentChannelData): Option[Throwable] = withMetrics(\u0022channels/add-channel\u0022\u0060 in one and \u0060PersistentChannelData): Unit = withMetrics(\u0022channels/add-or-update-channel\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca0b8f348d1b68db3e951c5b14d88b2748e3117a382c8b8e0c0af012efc077d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:183-199 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:148-164 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec534b3df5946cf9a432623ba20dedcb1594e39a4742f079a4df001d6aaa35d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:191-207 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:216-232 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d340fcf9a4a298f7f3d6cb83560e52128d6cb6ede7e40ab94c6e57959a37727"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/MempoolTxMonitor.scala:120-135 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/MempoolTxMonitor.scala:178-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/MempoolTxMonitor.scala:120\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/MempoolTxMonitor.scala"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b945f9374993aba526d479346308714480d72a14f138aad314d32194a7f0a08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:486-500 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:505-519 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:486\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060paginated_opt\u0060 to \u0060Option[Paginated]): Seq[ConfirmedTransaction] = withMetrics(\u0022audit/list-confirmed-by-node-id\u0022\u0060 in one and \u0060Option[Paginated]): Seq[ConfirmedTransaction] = withMetrics(\u0022audit/list-confirmed\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:485\u0060 calls \u0060setString\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:504\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"41cb68845facd818e3a99342b882eff0449029683e195b7c929edbbf003f585f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/payment/send/MultiPartPaymentLifecycle.scala:231-245 | eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala:402-416 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/payment/send/MultiPartPaymentLifecycle.scala:231\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/MultiPartPaymentLifecycle.scala"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69a6a11c1753ca94139bae17af39645cdaa83e11d6b813bf94629c3a22db474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:586-600 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:557-571 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:586\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd263846a58cb3cbf8e81901f54eb3b0a2d71f16614bd0183b39daae47c1bc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:192-205 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:174-187 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:192\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e0ef91890232a49c21967eddf4183f448046cbf34ace6ff8f098676070d3f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:251-264 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:166-177 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:251\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"670a9edd698a5765450c14699fde3de48ef136299e39aa2e32d69cb2170472f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:465-478 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:482-495 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:465\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060paginated_opt\u0060 to \u0060Option[Paginated]): Seq[ConfirmedTransaction] = withMetrics(\u0022audit/list-confirmed-by-node-id\u0022\u0060 in one and \u0060Option[Paginated]): Seq[ConfirmedTransaction] = withMetrics(\u0022audit/list-confirmed\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd95cbf41e709ac38a731a7a250529feab00530a724584f9d524167efe39eaf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:646-657 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:614-625 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:646\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c8c7a5f619040d60b8cb990809446990c48263ab019682bf5db0d415d90be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:431-441 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:452-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:431\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"0501ec1622137be710642124383682d503c507408970b8dcb52c3692f63402ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:532-542 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:555-565 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:532\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"021114ff36f853c480779245f3abff7bb66089dcbb4e34f5cd4667852ebc37de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:113-127 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:102-116 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:113\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5905dddf338a3c23e096678023d1b4f1d80b2900efe0b5268172f2ab50c4544e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala:198-208 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala:259-269 \u2014 both copies are in the same file, so extract the block 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":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"99eac60d7c49ba7a2fa9a30cfe40f9d15438c2167fd6c39308a20b2e1aef3acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:348-356 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:395-404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:348\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"87617c0822375355a556a2c3f9856bc54414d9406a9c154efaac48685c2d7245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:165-174 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:186-195 \u2014 both copies are in the same file, so extract the block 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":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2c8ba2148088f53aa06fd70fb79f75fff2e5effc602753c517f27960509fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:377-386 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:388-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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060paginated_opt\u0060 to \u0060Option[Paginated]): Seq[IncomingPayment] = withMetrics(\u0022payments/list-incoming-pending\u0022\u0060 in one and \u0060Option[Paginated]): Seq[IncomingPayment] = withMetrics(\u0022payments/list-incoming-expired\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"317a63851af41e78ad76b59308ef184681238dc9aaa160f398173816a2c4d3d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:416-425 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:435-444 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:416\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3d068d5572ad19c28b224a8b572be4712155393966b60598fb23a083417782"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:507-516 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:528-537 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:507\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68e713c3da5f6ab40829f3c6284a54833c3ecef87dad3988bc85f02cf058b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:149-158 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:168-177 \u2014 both copies are in the same file, so extract the block 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":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d1f976fcb9f133f344ad617dc78a98a7b1256b75edc126ebee9235fdee00e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:414-422 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:400-408 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"9086d51dbbc156b81bd29d6a78a695acc9c6a99ff734bcd71356d31c0674c5b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:527-535 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:502-510 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:527\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"df86711793722cce3377aabfd6369645e31ec66c4858e71aab02d7c233ce445f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:550-558 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:523-531 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:550\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"88075a397cc0e2b66183a3a5d4e3b52292b49527da9a350f9d8c9a35c7192cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:357-365 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:367-375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060paginated_opt\u0060 to \u0060Option[Paginated]): Seq[IncomingPayment] = withMetrics(\u0022payments/list-incoming\u0022\u0060 in one and \u0060Option[Paginated]): Seq[IncomingPayment] = withMetrics(\u0022payments/list-incoming-received\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbfb33b11dee53892f07d21f4004d17ff22f3c2ca8304e97e7eadfdd874211d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 6): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:468-475 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:489-495 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:508-514 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:449-456 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:468-474 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:485-491 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:468\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8c9ae5911b471b5160fc39afacf652bd9fb65821f15aace3de4bd1ffde936f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:428-435 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:449-456 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:413-420 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:432-439 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:428\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:447\u0060 calls \u0060setTimestamp\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:427\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0140f78770779229cba0d934028fc043716fc9d07210eb424804bba401aa599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala:399-406 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala:443-450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala:399\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"9805460869347940473d9e0ec0ffa81ab22bebbdb6d4950d8bf6534a93acb15c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/crypto/ChaCha20Poly1305.scala:56-63 | eclair-core/src/main/scala/fr/acinq/eclair/crypto/ChaCha20Poly1305.scala:73-80 \u2014 both copies are in the same file, so extract the block 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":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/ChaCha20Poly1305.scala"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8a6860053035978dad6bd2072f5554f2557ef53c7ae46075e70652b3cadf17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:252-259 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:255-262 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac0d27d0b7bc2e90592ac1db0beb5920c70122e3caae57b5f14a5838ffba20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:269-276 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:270-277 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:269\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5396114de14d3d2b0aef2469c6e0559b891f55f2582d9735551334ef567d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:630-637 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:597-604 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:630\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23aa5030544a58f9b2c86c59263af7d46afddd8c72381c8b18fb2e5b9b30a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala:156-163 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:122-129 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"41eb2fdac94b3d4f714920493998b4dcf6873db3f005f96db8cc2f775db30e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/payment/Bolt12Invoice.scala:141-148 | eclair-core/src/main/scala/fr/acinq/eclair/payment/Bolt12Invoice.scala:204-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/payment/Bolt12Invoice.scala:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/Bolt12Invoice.scala"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea260f862e24e0d8a98b11d5227c42253ec4af2a1ab4d6bd1342fa5b60c49b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala:105-111 | eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala:183-190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala:105\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPrePublisher.scala"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e17588db6e29a6498267bb1660ce40571e90ccc884e0888162272a187d125d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/LocalOnChainKeyManager.scala:157-163 | eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/LocalOnChainKeyManager.scala:170-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/LocalOnChainKeyManager.scala:157\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/LocalOnChainKeyManager.scala"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f92e6fb68a6b67a5d3610883b0a47df8d8644fc46421b7e87f100a11e4817c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:443-449 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:544-550 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:443\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060to\u0060 to \u0060TimestampMilli): Seq[PublishedTransaction] = withMetrics(\u0022audit/list-published-by-node-id\u0022\u0060 in one and \u0060TimestampMilli): Seq[ChannelEvent] = withMetrics(\u0022audit/list-channel-events-by-node-id\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c97ec75a02b20f4439235e678e9efe8a2186ddb610ba432677b07a4f782042e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:572-580 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:543-551 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:572\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcb2e65580264049b6ed53638375b30431298d1f94c7a822a4b29015ccc5ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:608-614 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:577-583 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:608\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f6d9eff69fdb9838c328c7d47832052ee17f5ada71a4437bfb25fab6e2377f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:616-622 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:585-591 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:616\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a1bad34aa706cc2aab63f295e749baa1f8ca5658a473529e5b65428e5c43b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:260-265 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:286-292 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:286\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060invoice\u0060 to \u0060Bolt11Invoice\u0060 in one and \u0060MinimalBolt12Invoice\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:293\u0060 calls \u0060setLong\u0060, \u0060setTimestamp\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:266\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e3aac27eb8be1b4c8d8011e9c6aa4d08dd2ecfe4766409bb35ea635b31c712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:362-368 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:370-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060paginated_opt\u0060 to \u0060Option[Paginated]): Seq[IncomingPayment] = withMetrics(\u0022payments/list-incoming\u0022\u0060 in one and \u0060Option[Paginated]): Seq[IncomingPayment] = withMetrics(\u0022payments/list-incoming-received\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7bd0b35a18f1a4b48a7a31dd4e564ba8f6a98a370349150679d2d35a3715d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:960-966 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:998-1004 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:960\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7f4975f846a2663175c5a67943b462378323bb45b665e53d05708cd0dec4ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:531-536 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:554-559 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:506-511 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:527-532 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c061ec42a53640d141ee57a225e0be83afb5584b1eacbea12e633984b882f2eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:321-326 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:318-323 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ae013f7390b08b466d7d9831c4092ea35b697f766d367563e3bd4fb712f36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:331-336 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:328-333 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a80f38b45638e6dfbbc7895deb8cfccdedec5154a934572268e6031e6dce6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:343-348 | eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:365-370 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:343\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060e\u0060 to \u0060TransactionPublished): Unit = withMetrics(\u0022audit/add-transaction-published\u0022\u0060 in one and \u0060TransactionConfirmed): Unit = withMetrics(\u0022audit/add-transaction-confirmed\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc06d15d87863f56fecfe518d53ea9ed1075f83ecea45ffee3b6629f4d18e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:639-644 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:606-612 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:639\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05e58dac6a5972d74765711480b0cfea5cad4765bb680e6f65d4bf737c60ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:145-152 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:173-180 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:145\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66523acb3ac47ded8a312c573ba71c5aa74321cd86793e03fcd821048f8fbb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:427-432 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:518-523 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:427\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060to\u0060 to \u0060TimestampMilli): Seq[PublishedTransaction] = withMetrics(\u0022audit/list-published-by-node-id\u0022\u0060 in one and \u0060TimestampMilli): Seq[ChannelEvent] = withMetrics(\u0022audit/list-channel-events-by-node-id\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3ff655389d98e8f847b3252f2933257bf4fb37dcd518d00a0f4934826a8af3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:73-79 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:92-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060data\u0060 to \u0060PersistentChannelData): Option[Throwable] = withMetrics(\u0022channels/add-channel\u0022\u0060 in one and \u0060PersistentChannelData): Unit = withMetrics(\u0022channels/add-or-update-channel\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:82\u0060 calls \u0060Some\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala:99\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"270ff4b99948126e127007e2952cdd457fe95d32c232f78ff0f1d2346c93834c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:378-385 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:387-394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060paginated_opt\u0060 to \u0060Option[Paginated]): Seq[IncomingPayment] = withMetrics(\u0022payments/list-incoming-pending\u0022\u0060 in one and \u0060Option[Paginated]): Seq[IncomingPayment] = withMetrics(\u0022payments/list-incoming-expired\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fb38d4dbf201c9fd28864940d00a1bd827f932376adf0e61fc0c87e598d08a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:673-678 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:727-732 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:673\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c2dd1080d008cca665157f1c040f358bbd9d2c7fb106e9b8c7dc542f015af3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:754-759 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:1128-1133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:754\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"60709416d5a0733880ab1676061242377e6db5e126e6980b6f2b54361d75a97e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:1176-1181 | eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:1301-1306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala:1176\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/transactions/Transactions.scala"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eee9df84e170103cde98fed73a4af6273743cf58aff5c693abc72fb66d818f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:612-617 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:648-653 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:612\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b53e1e150f2d1f80c83aa480517e3718fe122dce0b75afb15a4c411c71c270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:1065-1072 | eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala:1079-1086 \u2014 both copies are in the same file, so extract the block 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaf9686ce36085b875658d5c64e9917967a1006242578dda37776fafed1c975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala:330-334 | eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala:353-357 \u2014 both copies are in the same file, so extract the block 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ace74e662a9e064d94f5ea6dcf174fc3ef700832fc777c7b64a565755029de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:292-296 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:291-295 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:292\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bff945495c7c148bbeba9f549935568c2e6f8d640eeb896f079a84d7e95d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:346-358 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:341-353 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"902178230c77e345ea036c97400964278e44af0012e7b6da6d002d3c343e5534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:161-167 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:140-146 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"252005d31592274a299d69f639715b44fa8a0ca76abccc2fc01980f9a4894578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:176-181 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:152-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala:176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPeersDb.scala"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cf9e55885eda4f0a6d66ea1d00367880eb868225a02f3e7ea9ccc70f956159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:272-277 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:294-299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060invoice\u0060 to \u0060Bolt11Invoice\u0060 in one and \u0060MinimalBolt12Invoice\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64313560bb3711fbf976f146c5565d13cf3768fa717ea76d11a524a194da882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:90-94 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:106-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePeersDb.scala"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a353d69ac78915d387b303e3624cf06a2723e06a24cb3a2c5d1270860d09531d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala:285-289 | eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala:303-307 \u2014 both copies are in the same file, so extract the block 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":"eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbba7b660ae789b0b6e9789a1adb3f9e477f3eaa12416b3a74b08b56353997b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala:419-423 | eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala:460-464 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala:419\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060pc\u0060 to \u0060PublicChannel) =\u003E // related channel is already known (note: this means no related channel_update is in the stash) val publicChannel = true if (d.rebroadcast.updates.contains(u)\u0060 in one and \u0060PrivateChannel) =\u003E val publicChannel = false if (StaleChannels.isStale(u)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddd348264f3d37c90833a20879072fa6e0769147b66a9c85228b711d41e1dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala:318-324 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqlitePaymentsDb.scala:331-337 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgPaymentsDb.scala"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc1e24cc47e1eb93c62ec92f7e6431d5fef3824cbc7734f7b5ba5665a54cafa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/payment/send/MultiPartPaymentLifecycle.scala:285-293 | eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala:460-468 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/MultiPartPaymentLifecycle.scala"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bb3a2d3fda4b8626265a56d44c9521e2ae4ff559b9225324894a79aa4064d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala:517-523 | eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala:548-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala:517\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"3840e85be18a944abd86a4200db653c7e785e2a72474da3d5bcbd96b88fa841a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BitcoinCoreClient.scala:749-753 | eclair-core/src/main/scala/fr/acinq/eclair/blockchain/fee/BitcoinCoreFeeProvider.scala:43-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BitcoinCoreClient.scala"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"44111c5c4b0b0091be56b50988dabd8c8a527dbb085b432b8ac38a472a7275c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala:92-96 | eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala:152-156 \u2014 both copies are in the same file, so extract the block 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fa5d6572d136dd82847f67c384f0dc020ab41fe6269bba0c37a6e9be249365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala:382-388 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala:373-379 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5996890f28ce70add7fec9342e293797f84753450fccc83fc729c2c6f2e2ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala:77-88 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:70-81 \u2014 before extracting anything, compare \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgLiquidityDb.scala"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d91f94bb3f0f3a47c0e175edfe71d49a695c69673ec7b31d128239b6167bf4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala:216-222 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala:138-144 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0a1adadf6768946775616f2bd67338156a07a50067250a9db5f62d7e8ed53b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:217-221 | eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:246-250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala:217\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteLiquidityDb.scala"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d50e30981db8fcc0ee7496dcd74e668ca6914cf921c9f97a53a11b08f183c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala:134-138 | eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala:156-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala:134\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentPacket.scala"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61a476cd1c085b198bbe1530a4ce0e1dabc754d4e5e131c633809d733a2c6ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala:405-410 | eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala:453-458 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala:405\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060pc\u0060 to \u0060PublicChannel) =\u003E // related channel is already known (note: this means no related channel_update is in the stash) val publicChannel = true if (d.rebroadcast.updates.contains(u)\u0060 in one and \u0060PrivateChannel) =\u003E val publicChannel = false if (StaleChannels.isStale(u)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/Validation.scala"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d321c62b8c0f14b18a453848af3bedbf4a4f47916b2fd136fb07a528802f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferTypes.scala:286-291 | eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferTypes.scala:304-309 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferTypes.scala:286\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferTypes.scala"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f07a2f14ace3a2c3e54b9dc3750f05f77432ebfa9c6b923da898526eeac283"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Channel (LCOM4 8): Channel\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef514ad2d5b854baf740339e029f01ae7b79925070508e9e46148fae0d830377"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Peer (LCOM4 4): Peer\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d700a6ca00b26e132d0112c4f50913517d4ec952224ca279a2729794f8b277"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TorProtocolHandler (LCOM4 4): TorProtocolHandler\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/tor/TorProtocolHandler.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5b36709138c8fa49a771bc39b7bc213985988429cd9db87d0c3ce7f167c40a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala: eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in InteractiveTxBuilder.validateTx at line 823. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:34:20 \u002B01:00\u0027 --until=\u00272026-10-28 10:34:20 \u002B01:00\u0027 --full-history --no-merges -- eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala\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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"abae96ba48f3682c5f6cfdb04c22b5dfbd0bd2390d9f6b69661d84382acfef72"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala: eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in NodeParams.makeNodeParams at line 296. 3 of those changes were fix/bug commits, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:34:20 \u002B01:00\u0027 --until=\u00272026-10-28 10:34:20 \u002B01:00\u0027 --full-history --no-merges -- eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala\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":"eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"79648c021ca6d9bf64dd3d8a84181d64c86ea1ef240bffc8707cb89b66e494b7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala: eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in PaymentLifecycle.handleRemoteFail at line 191. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:34:20 \u002B01:00\u0027 --until=\u00272026-10-28 10:34:20 \u002B01:00\u0027 --full-history --no-merges -- eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala\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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/PaymentLifecycle.scala"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0466ae564e7324c1892044859ee3901d6b43fd6de54563301015eee137d6a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala: eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Helpers.validateParamsSingleFundedFundee at line 102. 2 of those changes were fix/bug commits, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:34:20 \u002B01:00\u0027 --until=\u00272026-10-28 10:34:20 \u002B01:00\u0027 --full-history --no-merges -- eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala\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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2446757ce8f19e141f718445a119c604d4c0d552f873784ef588bef387187a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/PostRestartHtlcCleaner.scala: eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/PostRestartHtlcCleaner.scala changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in PostRestartHtlcCleaner.main at line 112. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:34:20 \u002B01:00\u0027 --until=\u00272026-10-28 10:34:20 \u002B01:00\u0027 --full-history --no-merges -- eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/PostRestartHtlcCleaner.scala\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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/PostRestartHtlcCleaner.scala"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f99d2c91f39bd672c047fdaf798d4de83ba5e4f382285f994cf9f9f13c40ed9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/TxPublisher.scala: eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/TxPublisher.scala changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in TxPublisher.run at line 214. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:34:20 \u002B01:00\u0027 --until=\u00272026-10-28 10:34:20 \u002B01:00\u0027 --full-history --no-merges -- eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/TxPublisher.scala\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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/TxPublisher.scala"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97c598a281e394e66dc3ace7aa49c87e31a836feda6af9aea3a8335d47335d5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxFunder.scala: eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxFunder.scala changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in InteractiveTxFunder.filterInputs at line 263. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-30..2026-10-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-30 10:34:20 \u002B01:00\u0027 --until=\u00272026-10-28 10:34:20 \u002B01:00\u0027 --full-history --no-merges -- eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxFunder.scala\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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxFunder.scala"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f827ab952a0fee8ccdb08ac90520317101084ca35d19c3f967a05568589a32"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 19 significant file(s) lose their only recent owner: eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/ZmqWatcher.scala, eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala, eclair-core/src/main/scala/fr/acinq/eclair/profit/PeerStatsTracker.scala, eclair-core/src/main/scala/fr/acinq/eclair/balance/CheckBalance.scala, eclair-core/src/main/scala/fr/acinq/eclair/io/OpenChannelInterceptor.scala, eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LiquidityAds.scala, eclair-core/src/main/scala/fr/acinq/eclair/db/Databases.scala, eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala (\u002B11 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"24737acd8fb918e397ea6a5ff001ac45e2ec754e61a8fb0ba4b2950038372096"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 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 (21 single-owned of 195 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; 195 of the 258 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala, eclair-core/src/main/scala/fr/acinq/eclair/reputation/Reputation.scala."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace those test vectors with the commented ones below when we remove support for the legacy splicing protocol. \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":"eclair-core/src/test/scala/fr/acinq/eclair/wire/protocol/LightningMessageCodecsSpec.scala"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a3f933d9d8dc09b4889f117ad3418a2b065797248679477a3e726dba780538"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we\u0027re not currently pruning nodes without channels from the graph, but we should! \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":"eclair-core/src/test/scala/fr/acinq/eclair/router/ChannelRouterIntegrationSpec.scala"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"1426658b7c26898d2c4960f5e53043f5a441571cfdc64b0a186074351fff03bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we should be able to send payments with the real scid in the routing hint, but this currently doesn\u0027t work, \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":"eclair-core/src/test/scala/fr/acinq/eclair/integration/basic/zeroconf/ZeroConfAliasIntegrationSpec.scala"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3cfa6659c3f88e33716e48bda8c38b9bc1c6230ad45c76ce09555ffeed01b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we should exchange tx_signatures before returning RES_SPLICE, see issue #3093"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/test/scala/fr/acinq/eclair/channel/states/e/NormalSplicesStateSpec.scala"},"region":{"startLine":2262}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca42e239d68dd902bdd4dba4194cefa6ab1e68935d1ac62cfe4bd26c2f3b3361"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: @t-bast: update feature bits once spec-ed (currently reserved here: https://github.com/lightningnetwork/lightning-rfc/issues/605)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Features.scala"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"f984d72a600d8386045cede8b034a49169718d5fba286f0fc3828b52e10f59d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: @remyers update feature bits once spec-ed (currently reserved here: https://github.com/lightning/bolts/pull/989)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Features.scala"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacff75c7c626edb282ba687d37f54f4d65f20764d6f859eb97d04b3e3e47aaa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: @pm47 custom splices implementation for phoenix, to be replaced once splices is spec-ed (currently reserved here: https://github.com/lightning/bolts/issues/605)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Features.scala"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98c07fc917a3016bc1aeb44b713799b9f980d85aee3e3e838c6cee848fc1ce8"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/Features.scala"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1348234dd830ed11ccaabf37a3b41baf055bdd0396a8411fefb86995a51282"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace with the commented line below when removing support for the legacy splicing protocol. \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":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/ChannelTlv.scala"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a3ad1180307747132295acc0a3c5d4bad75296a14486453975f80894bdf888"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: @t-bast: once fully spec-ed, these should probably include a NodeUpdate and use a different 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":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/FailureMessage.scala"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e462fb9b2999f07855442181f05f28b8f9d4c8fe867ad02543afe3d96d8c0bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when do we want to create a private channel? Maybe if we already have a bigger public channel? \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":"eclair-core/src/main/scala/fr/acinq/eclair/profit/PeerScorer.scala"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"c330c43199583f9154f18ac7ff447d9641307b3572e11dd6f4890e179ab36d1e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: could be optimized by preallocating the resulting buffer \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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/Bolt11Invoice.scala"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cac34dbd9596bfed423beb8ecbab7ba74ee7ab70d9c652902b6ff4c1eba0c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Once everyone supports attributable errors, we should only exclude two nodes: the last for which we have attribution data and the next 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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/PaymentEvents.scala"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"3371cdc48aa270b59c62fe43e17ae7325698314059f292b85da2c7e1e6379106"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this doesn\u0027t actually disconnect the peer, once we introduce peer banning we should actively disconnect \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":"eclair-core/src/main/scala/fr/acinq/eclair/io/PeerConnection.scala"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3714a4d7a1e54071cfd2ba4f19e65ef0457f69dad42e5a26707e4c719c078d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this doesn\u0027t actually disconnect the peer, once we introduce peer banning we should actively disconnect \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":"eclair-core/src/main/scala/fr/acinq/eclair/io/PeerConnection.scala"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"98510555bfae2df69d743460935208d8c9ad97ab35fa4cf4c386e0ae0826e9aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: improve that (do INSERT/UPDATE\u002BSELECT?) \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":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgUtils.scala"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f468a1d4626402d97bbb77f5b717eb59806cb8a2375d46aa9ebea8544f6f334"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we keep supporting the legacy splicing protocol for non-upgraded Phoenix users. \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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"926dca0efd50922d46558021cd55f1bece9a166c7d5d4bbce65ca9cd48297df2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we can remove that once we stop supporting the legacy splicing protocol \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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c261f95fb8cd37660067101c3ab6528654b1d8ae0eaba7c2f270a8542a386b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: once we allow changing the commitment format or to_self_delay during a splice, those values may be 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ba7a735166e3b6677689518751e7231988ec140c1489e0b42372cab4c3d7ab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: once we allow changing the commitment format or to_self_delay during a splice, those values may be 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7069671a7715b8cddfe6b6486cca0c560ae4ebb3ca3a6372e6259aba4f71430"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: once we allow changing the commitment format or to_self_delay during a splice, those values may be 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":2403}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd856af664221d018e590894384222747f35a0535cb228154bb047d259af0af4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: once we allow changing the commitment format or to_self_delay during a splice, those values may be 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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c0561c3f4bd4eafdfa6aadaf4ada11c17b30f138cf19802ae422a2439e52ed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace by d1.commitments.localCommitIndex \u002B 1 when removing support for the legacy splice protocol. \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":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"357e1aa4a6214d3b26da5079e79e56e22e4b8f236ecbc0e315c29b382d7e82f3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should we try to mitigate the herd effect and not check all watches immediately? \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":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/ZmqWatcher.scala"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"0724f14d0c171cb59aeb4d8b6d0b1b16e8aacd1d3183c994fb79a28e1d7590eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we should check that mempoolMinFee is not dangerously high \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":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BitcoinCoreClient.scala"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"383dfa28a4a5ce81d5230050d70c01d783d30c429f3462d7d8a8322d9254aa25"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060eclair-front/modules/awseb/Procfile\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-front/modules/awseb/Procfile"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6152647409c14d37b9e19492159e56c469a8d99c21b67615b8955d31f33124da"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 3.3/10. The most over is \u0060eclair-core\u0060 (56133 LoC, 2677 module-visible types across 37 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":"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":"607e31176fd8c05ec416643dd5377c74c4e36b1f1531d12b5fde3bc175890198"},"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":"a2d7c31be1fa4f74c77a07fb2dea48e0856965a9757a9384020b108946928567"},"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":"f88ae021ad4b9948a4ce8b66ff50c301b637cdced4851487894fa9681288c36c"},"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":"2c53d6ecb4138073953dedd3259ff7be31aac29eec880863634f2e0d46a52c7f"},"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":"ea828037a86f5423b37e87eefa34e7696460e9c3e891f8be39e33af58b9814df"},"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":"fdf198c5abefc4beb42852a49dadf7f806d4e3ae2ec26ec17852bcafbf36738f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","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":"5e7a1ba23ee6dbeba136dbb7949e1fa0e5f23091faf8a7234ae8339fbb67e793"},"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":"6f5e3400cad9220fa20129e983911da17056f12ed5785db07496825ac447fec9"},"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":"2d4a941906ee01744df019fe1d5043e939414ca3b5beab0554d05fa10425b158"},"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":"61c3a4688be7f0912d8705bf6428a530f4d75f85d0b9cb606d0c23c83189117e"},"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":"e211d496b8f49265b8377f38cc63cfb1327198d3dd588006ec08773b3d06bce7"},"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":"de47cf718f283cd9f983713d841c1542e3cf18fdd9f9a47dfe9a2afb00ea3d07"},"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":"0657803900776fca559e887d46d5f849fede33572bb9f1bf7991822d7089bdd5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c3784c75603571a54b53a42d6662d5d857fc7076fb573edd66b61dea29f67e6"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6d61ecb4bb8a6e34a3a36a450355185630a6eefc86011afbd5e64cbe4aabee8c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"92c0bd558c4bbd4a5090df892d6a42827ec5bd9a979d9f75adcf8abae3d99339"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a63ca2a91f63e6aec4d3f911410badbfbcc832c2db56302e58548334d7b17432"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9cf9f41e4a461373aeedd827e5d2ee88f092eca8f3723096a546bd0c14326e69"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16a39a91df522c386afb22ceed2523dea1b0e17cebcea7f65dedf12fd494e223"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3b745fd2472391a67086662c8881318eb911306d1a44d8eb89cb68a8ee1c279"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"72d31ca9a6a3355b02feeb6e3ee8bd2791b86eca9e20a5f877cf05e8eabc6270"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"3468d3b41831c9a44a100aaaa42f1eec7e145af5518a95c81cbe78c95a455049"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"50020c4e33954e03f83cab6a98376779709fa7ac7a75931ba8d9676b6168cc67"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"45349f6239e2400cb362ee004dcad31b5c521c173147d133f03693899a2d262c"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"79c36456d7a31111e76f64495779a1ba3d5e366325052e89b251404b5ca30096"},"properties":{"dependency":{"package":"io.netty:netty-handler","version":"4.1.94.Final","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":"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":"23cecef331c4363e5e22d6d19525d93977245c84babc7c2725079d93403e764f"},"properties":{"dependency":{"package":"io.netty:netty-handler-ssl-ocsp","version":"4.1.94.Final","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":"e6f53e0090a3224dc94631006dced1bae1a307382e25bc5caeb5be049510c2c5"},"properties":{"dependency":{"package":"io.netty:netty-transport-sctp","version":"4.1.94.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b0dac9698f17dba76b2febdf90e60a885b7fbd5a96d504ef36658152d4d54694"},"properties":{"dependency":{"package":"io.netty:netty-codec-redis","version":"4.1.94.Final","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":"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":"b4e21c1495ecca7f111f388c4fabe5564d8f6292a803dd30275ba932ba4e7076"},"properties":{"dependency":{"package":"io.netty:netty-codec-xml","version":"4.1.94.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"38c019a91a49160b5a17d6cfc93a7f68e9887e42464664a73b91742d2785bcd1"},"properties":{"dependency":{"package":"io.netty:netty-codec","version":"4.1.94.Final","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":"afa7198b2a95df4f6a3edab3c5d0245a7a354add8dc26322bec3e46d7beb2dbc"},"properties":{"dependency":{"package":"io.netty:netty-codec-http","version":"4.1.94.Final","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]","[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":"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":"d7f2f48a6b387a47aef2642bae992dc6b18a57b0c98beeb4f05e735b87f29347"},"properties":{"dependency":{"package":"io.netty:netty-resolver-dns","version":"4.1.94.Final","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":"de81f2d6dc7fa7dd8bbce2b13e7c7127a5a949574ca1b05fa8daf6bb07e24f68"},"properties":{"dependency":{"package":"com.fasterxml.jackson.core:jackson-core","version":"2.12.7","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":"75a1b17c6097bceae91a41e1b1f3ccd40d6726409ced035a302b6b607e689bde"},"properties":{"dependency":{"package":"io.netty:netty-codec-http2","version":"4.1.94.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[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":"41d0a438a25b5a425d0575724022adae25d4c3063203803ecf86987a3729038b"},"properties":{"dependency":{"package":"io.netty:netty-codec-haproxy","version":"4.1.94.Final","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":"d27be61d535e200783c1d91e3d7c0974a0d4b9c038a894c3ded23d73954ca337"},"properties":{"dependency":{"package":"io.netty:netty-codec-dns","version":"4.1.94.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4b762d2c3e8eeece83ee37912168e218d494060302bc4a8885d851430847f95"},"properties":{"dependency":{"package":"com.fasterxml.jackson.core:jackson-databind","version":"2.12.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cbfc1012e0ef53c3825141fe970ae32d488d14a9eae37dacd79d1a3a7e701c6d"},"properties":{"dependency":{"package":"io.netty:netty-codec-smtp","version":"4.1.94.Final","advisory":"[GHSA redacted]","aliases":["[CVE 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":"4c3f881fe8ae2b8273bebd4e7aec5cb99bfe6dfb0c229b73d82b4afcb487d9fd"},"properties":{"dependency":{"package":"io.netty:netty-codec-stomp","version":"4.1.94.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7e5563e0a662b76bc756c857d20efddf68f3520a5b16b126639d7c43597cfbbb"},"properties":{"dependency":{"package":"com.google.guava:guava","version":"32.1.1-jre","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":"a467a7a19abc27c548e1bdae5ff51724cf43d87fee2f25f874d62cdd38b8f12f"},"properties":{"dependency":{"package":"ch.qos.logback:logback-core","version":"1.5.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"87ad1e9bede8b72853113adce3bfaf435ba8bff4b2c9df86e514bbdc1d9db3c0"},"properties":{"dependency":{"package":"io.netty:netty-common","version":"4.1.94.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"06997cd8998db33ca1a7b78ada9ff719e130972cea9c4fd32e1cb59747c173ad"},"properties":{"dependency":{"package":"org.bouncycastle:bcprov-jdk15on","version":"1.70","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8751229590dcff1149a72186fd1524618208d90483fcf6ff88b197635db2f36e"},"properties":{"dependency":{"package":"io.netty:netty-codec-mqtt","version":"4.1.94.Final","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":"5566414c903ee712ecc2d3baf28072b6b41efc49f97c9e9801623e87a56d9826"},"properties":{"dependency":{"package":"com.squareup.okio:okio-jvm","version":"3.0.0","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":"9e29687582696f7d0f686a1b586c4a115925a08c0f4a2cd4341814d4b4c10877"},"properties":{"dependency":{"package":"io.netty:netty-transport-native-epoll","version":"4.1.94.Final","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":"30a78fe94462cabf204d6e5725387f917d95cc1c00d0f65f561a77d69c6830a0"},"properties":{"dependency":{"package":"io.netty:netty-transport-native-kqueue","version":"4.1.94.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9984b7f5aa5b529f8d0c8d35e28d52723db1cecf86c9f04fd36c50436d76dfc"},"properties":{"dependency":{"package":"io.netty:netty-handler-proxy","version":"4.1.94.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"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":"6c9bd328f1425e4185802e2cb388fc5dec17b2da92bc5227fa43622d89e747d7"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e222331e3925647a786ea4c3c3b1adc3d5bb00aa079f4140193c3c9f741b2cb8"},"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":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0dbc1834571afb4bf6ec7211fa74b6bf38eaa62b6fc89e706e041d39d6cf089e"},"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":"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":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/Noise.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb030173e0f42e9229da935709858f57e7faf3cdd9f94a0ecbb2d1d3deedf27"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 20 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: eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala, eclair-core/src/main/scala/fr/acinq/eclair/payment/send/BlindedPathsResolver.scala, eclair-core/src/main/scala/fr/acinq/eclair/io/PendingChannelsRateLimiter.scala, eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferCodecs.scala, eclair-core/src/main/scala/fr/acinq/eclair/payment/Bolt12Invoice.scala, eclair-core/src/main/scala/fr/acinq/eclair/payment/send/OfferPayment.scala, eclair-core/src/main/scala/fr/acinq/eclair/reputation/Reputation.scala, eclair-core/src/main/scala/fr/acinq/eclair/router/BlindedRouteCreation.scala (and 12 more) (21 orphaned of 196 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; 196 of the 258 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":"eclair-core/src/main/scala/fr/acinq/eclair/router/BalanceEstimate.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"525d902350e41f92b343066c39713cb0767b065b8dd475543116b498470bcbe2"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/BlindedPathsResolver.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8948f1bc7eb1056dae381bb101687e8189803b3912a76dbb638cd9400a323511"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/io/PendingChannelsRateLimiter.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"375268d6eec2bddb7b702242cf786f4240a4de174325b43b1331b39869d20c47"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/OfferCodecs.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbab8299aab314670dc4e8de5993d42bcc91d88f2b255bd4578a2d5a5f26883"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/Bolt12Invoice.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c377f948306e5b4b73a7b2caa270397e0bfffd60f293a0b307d4298b2ac84df"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/OfferPayment.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abaca9bb4cd23ca13de81f65fe8c6b200431b3c78ea5a0dd14c26bb5717c49d"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/reputation/Reputation.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b9212f3d10cc0cb3ae0008a74b211075843b512ae25105d6b1adf2cfd17bb6"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/router/BlindedRouteCreation.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"450686e1a5c12a8c6a1fcc5be865e6afda94494f91a6224c4aa2494184c87125"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/AsyncPaymentTriggerer.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd4c8f2dec75b2adb7bc0944f47a3f39d847677aee8c9cfb3cad59faf3a5e05"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/OfferCreator.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf67ec63f4c6f28d59922ef8de66f1b5ce189c4da9bbab4f8d585e42de39606b"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/offer/OfferPaymentMetadata.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f06307b534d66939445a4df27dd66a29d411d080cf16d4f358a6028c4c00c0b"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/reputation/ReputationRecorder.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3275b7a2df0a8c42399869c2151687944769a2406fe5f3fdd3bb46c6436c00e8"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgOffersDb.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7904e92b4254ca79407bfef4a096ce8be8f0dde36d7edee4d94449edfe4f1a13"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteOffersDb.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"838e84baae439224f18e052edf44dab9233dbaba8ea3abba1fb88cf5e06e12cb"}},{"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":"eclair-node/src/main/scala/fr/acinq/eclair/api/handlers/WebSocket.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60192ba6a50f20ffd9ae45aa68d0c383145297bf35ae1c10e83dd7d65670ac9d"}},{"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":"eclair-node/src/main/scala/fr/acinq/eclair/api/handlers/Invoice.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c67a0659c1c52c6db8bc86f8f3214930876e4d480d3a99c76d57e5f68e0856"}},{"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":"eclair-node/src/main/scala/fr/acinq/eclair/api/handlers/Message.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"627209a7c8513e9884e2c891707517ade30aa0ae3ce7cc395990b1f8f0f2403d"}},{"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":"eclair-node/src/main/scala/fr/acinq/eclair/api/handlers/Node.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfb30117b5945d523f29a74088853b25c113ffc9e8b432fac72af35475759b9"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/payment/receive/InvoicePurger.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3875b04459b4722620bda3b38967bfbbfba37d4f12e1742b0d0563548c3ab9"}},{"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":"eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/LocalNodeKeyManager.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfc0e5b9dc20ffbf5f1190cb7c8e3d0c8b21f887e22f5473425ca41f5f45d14"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: Eclair.scala \u2194 FormParamExtractors.scala: \u0060eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala\u0060 (context eclair-core) and \u0060eclair-node/src/main/scala/fr/acinq/eclair/api/serde/FormParamExtractors.scala\u0060 (context eclair-node) sit in DIFFERENT parts of the tree yet change together 71% of the time (12 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00603b2bc570\u0060 Add \u0060maxCltvExpiryDelta\u0060 parameter to \u0060findRoute*\u0060 APIs (#3234); \u006038dc4072\u0060 Add API methods to spend funds sent to taproot channel addresses (#3220); \u00604729876c\u0060 Add advanced api control methods (#3024) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4a8be5fdde0ed6790921f7a5e66c0eadcd4fd8d2c05cbce887eaf49f9c36b0"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: Eclair.scala \u2194 Channel.scala: \u0060eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala\u0060 (context eclair-core) and \u0060eclair-node/src/main/scala/fr/acinq/eclair/api/handlers/Channel.scala\u0060 (context eclair-node) sit in DIFFERENT parts of the tree yet change together 64% of the time (9 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060890ccb37\u0060 Improve data stored in \u0060AuditDb\u0060 (#3245); \u006070a2e297\u0060 Use helpers for feerates conversions (#3156); \u0060d48dd214\u0060 Allow overriding \u0060max-closing-feerate\u0060 with \u0060forceclose\u0060 API (#3142) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b12cf00cf2c7d4a29b9af9e85522a26ecdf61f76c636f41279515007d3ab03"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: OnChainFeeConf.scala \u2194 Channel.scala: \u0060eclair-core/src/main/scala/fr/acinq/eclair/blockchain/fee/OnChainFeeConf.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala\u0060 change together 65% of the time (13 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 13 shared commits counted here, the most recent 3 are \u00603b690131\u0060 Stop sending \u0060update_fee\u0060 for mobile wallets (#3186); \u0060d48dd214\u0060 Allow overriding \u0060max-closing-feerate\u0060 with \u0060forceclose\u0060 API (#3142); \u006052b7652b\u0060 Remove non-final transactions from \u0060XxxCommitPublished\u0060 (#3097) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/fee/OnChainFeeConf.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb283753238215f092b58edaf987243312a8ad8106d0e32ae9062c7a9f9aa783"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PgChannelsDb.scala \u2194 SqliteChannelsDb.scala: \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteChannelsDb.scala\u0060 change together 63% of the time (12 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 \u006045ea9fbf\u0060 Prevent \u0060channel_id\u0060 collisions (#3337); \u006026d03507\u0060 Require closed channels migration before starting (#3198); \u00609830aa60\u0060 Eclair v0.13.1 release (#3196) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61201e8b2f9d469c1f464d57531150077a22729fdb4d52ffbb4c456c1f16a03e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Channel.scala \u2194 Scripts.scala: \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/transactions/Scripts.scala\u0060 change together 58% of the time (19 of the 33 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 19 shared commits counted here, the most recent 3 are \u0060b7ebefdb\u0060 Force-close on invalid HTLC \u0060cltv_expiry\u0060 (#3367); \u0060383d1413\u0060 Remove support for claiming remote anchor output (#3062); \u0060fbc7004e\u0060 Add more force-close tests for HTLC settlement (#3040) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1289780c29cfe4ce6d0c1513b5103e9a323d9609cd99c7709c6ab99ec93bbc7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ChannelOpenDualFunded.scala \u2194 ChannelOpenSingleFunded.scala: \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ChannelOpenDualFunded.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ChannelOpenSingleFunded.scala\u0060 change together 52% of the time (16 of the 31 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are \u006014d40937\u0060 Emit \u0060ChannelPersisted\u0060 event at channel creation (#3361); \u006045ea9fbf\u0060 Prevent \u0060channel_id\u0060 collisions (#3337); \u0060656e5039\u0060 Add \u0060ChannelFundingCreated\u0060 event (#3256) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/ChannelOpenDualFunded.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaca5495459cc24be16b97c14c9bd4dd25fc5e3154e82df90d581c80e1b1a04"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: InteractiveTxBuilder.scala \u2194 ChannelTlv.scala: \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/ChannelTlv.scala\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 5 shared commits counted here, the most recent 3 are \u006068b0096a\u0060 Add support for the official splicing protocol (#2887); \u0060129df369\u0060 Add backwards-compatible parts of the official splicing protocol (#3261); \u0060f11f922c\u0060 Add support for \u0060funding_fee_credit\u0060 (#2875) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22484381b938cd13eeb979a988667496c34b463ba66ebdbbb5c15015c8c18a4a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Helpers.scala \u2194 ChannelKeyManager.scala: \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/ChannelKeyManager.scala\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 5 shared commits counted here, the most recent 3 are \u0060650681f7\u0060 ChannelKeyManager: add optional list of spent outputs to sign() metho\u2026; \u00603d4e00fe\u0060 Activate anchor output in channels (#1491) (at that commit the file was still \u0060eclair-core/src/main/scala/fr/acinq/eclair/crypto/KeyManager.scala\u0060); \u0060e07a8ecf\u0060 Static key refactoring (#1463) (at that commit the file was still \u0060eclair-core/src/main/scala/fr/acinq/eclair/crypto/KeyManager.scala\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"114f0629b478c627da7db1d09e8765f792a496ce694982cb1483463dd599976a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Commitments.scala \u2194 ChannelKeyManager.scala: \u0060eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala\u0060 and \u0060eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/ChannelKeyManager.scala\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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 5 shared commits counted here, the most recent 3 are \u0060650681f7\u0060 ChannelKeyManager: add optional list of spent outputs to sign() metho\u2026; \u00603d4e00fe\u0060 Activate anchor output in channels (#1491) (at that commit the file was still \u0060eclair-core/src/main/scala/fr/acinq/eclair/crypto/KeyManager.scala\u0060); \u0060e07a8ecf\u0060 Static key refactoring (#1463) (at that commit the file was still \u0060eclair-core/src/main/scala/fr/acinq/eclair/crypto/KeyManager.scala\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5276afa7c5fc2cce1b5fcf5984831d97a767b33148d8761493cf883c4425b3"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","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":"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":"adf6fa1ac17f17b4a80a9d3dc51ae240452bb16aed797179d9129b3d88008572"},"taxa":[{"id":"CICD-SEC-6","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":"76302cd13f20580a528f72d66fbf2e2e8b7cc5f2ffff7e9573267c9cdab0864e"},"taxa":[{"id":"CICD-SEC-4","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":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Eclair (64 abstract members): \u0060Eclair\u0060 declares 64 abstract members: \u0060connect\u0060, \u0060disconnect\u0060, \u0060open\u0060, \u0060rbfOpen\u0060, \u0060spliceIn\u0060, \u0060spliceOut\u0060, \u0060rbfSplice\u0060, \u0060close\u0060, \u0060forceClose\u0060, \u0060forceCloseResetFundingIndex\u0060, \u0060bumpForceCloseFee\u0060, \u0060updateRelayFee\u0060, \u0060channelsInfo\u0060, \u0060channelInfo\u0060, \u0060closedChannels\u0060, \u0060peers\u0060, \u0060node\u0060, \u0060nodes\u0060, \u0060receive\u0060, \u0060createOffer\u0060, \u0060disableOffer\u0060, \u0060listOffers\u0060, \u0060newAddress\u0060, \u0060receivedInfo\u0060, \u0060receivedPayments\u0060, \u0060send\u0060, \u0060sendBlocking\u0060, \u0060sendWithPreimage\u0060, \u0060sentInfo\u0060, \u0060sendOnChain\u0060, \u0060cpfpBumpFees\u0060, \u0060findRoute\u0060, \u0060findRouteBetween\u0060, \u0060sendToRoute\u0060, \u0060audit\u0060, \u0060relayStats\u0060, \u0060relayStats\u0060, \u0060getInvoice\u0060, \u0060pendingInvoices\u0060, \u0060allInvoices\u0060, and 24 more. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. Those 64 declarations carry 63 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 63 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. 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":"eclair-core/src/main/scala/fr/acinq/eclair/Eclair.scala"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"475d1e011afbaa9b4c9599dc606043b4441fcb9aef1188f4b1f1de4b64e4d540"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AuditDb (18 abstract members): \u0060AuditDb\u0060 declares 18 abstract members under just 9 distinct name(s): \u0060add\u0060, \u0060add\u0060, \u0060add\u0060, \u0060add\u0060, \u0060add\u0060, \u0060add\u0060, \u0060addChannelUpdate\u0060, \u0060addPathFindingExperimentMetrics\u0060, \u0060listPublished\u0060, \u0060listPublished\u0060, \u0060listConfirmed\u0060, \u0060listConfirmed\u0060, \u0060listConfirmed\u0060, \u0060listChannelEvents\u0060, \u0060listChannelEvents\u0060, \u0060listSent\u0060, \u0060listReceived\u0060, \u0060listRelayed\u0060. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 18 separate responsibilities: a caller binds to 9 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller\u0027s side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER\u0027s \u2014 all 18 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/db/AuditDb.scala"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fe5e8988651e4ee721900b25d64e5a149763d55f3a8a01b6f6df743ef2b46a"}},{"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":"eclair-core/src/test/scala/fr/acinq/eclair/balance/CheckBalanceSpec.scala"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"847286a685b8dfe661767e04330129e7e44e4da157ea51efdf3b3d27ba78027f"}},{"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":"eclair-core/src/test/scala/fr/acinq/eclair/integration/PerformanceIntegrationSpec.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1086fbfb73edc963672e873a8aa8a9557161d471c2405139be0d47a7ce4ed0a1"}},{"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":"eclair-core/src/test/scala/fr/acinq/eclair/router/AnnouncementsBatchValidationSpec.scala"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"68749ecc90b78c770d94eb5721927142bdadf767037c34fd6a2a309064eb17ae"}},{"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":"eclair-core/src/test/scala/fr/acinq/eclair/tor/TorProtocolHandlerSpec.scala"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad51138ac6da19ff02cf3ab13383da3ddb641df86bff62ae377334b53543b1e0"}},{"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":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add scalafix or scapegoat (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/main.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository runs an HTTP server and nothing in its Scala source or committed configuration secures the transport: no HTTPS served (akka/pekko-http \u0060ConnectionContext.httpsServer\u0060/\u0060enableHttps\u0060, an http4s builder\u0027s \u0060withTLS\u0060, Jetty\u0027s \u0060SslContextFactory\u0060, zio-http\u0027s \u0060SSLConfig\u0060, Play\u0027s \u0060https.port\u0060), no \u0060Strict-Transport-Security\u0060 header, HSTS middleware or Play \u0060RedirectHttpsFilter\u0060, no \u0060X-Forwarded-Proto\u0060 read or Play \u0060play.http.forwarded.trustedProxies\u0060 for a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: eclair-node/src/main/scala/fr/acinq/eclair/Boot.scala:86 \u2014 \u0060newServerAt\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"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 set on a response this repository\u0027s Scala server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: eclair-node/src/main/scala/fr/acinq/eclair/Boot.scala:86 \u2014 \u0060newServerAt\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060validChannelUpdate1 \u0026\u0026 validChannelUpdate2\u0060 appears character-identically in 2 files \u2014 eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala, eclair-core/src/main/scala/fr/acinq/eclair/db/sqlite/SqliteNetworkDb.scala. 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":"eclair-core/src/main/scala/fr/acinq/eclair/db/pg/PgNetworkDb.scala"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d9b018b8d4b6d90172553851c19846ed4e89fe63c9c6d518faa91d8436a6c4"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 197 is called with an argument built by \u0060d.graphWithBalances.graph.getEdgesBetween(r.source, targetNodeId).map(e =\u003E \u0022\u2026\u0022 e.desc.shortChannelId e.balance_opt e....\u0060 (line 197), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/router/RouteCalculation.scala"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dd2fe3c0acb32707b26e6ca06f9d57bd9e5ca4c3de678c57679d63d14fed06"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 91 is called with an argument built by \u0060d.ignore.channels.map(_.shortChannelId).mkString(\u0022\u2026\u0022)\u0060 (line 91), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/send/MultiPartPaymentLifecycle.scala"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a005403b7717cb4d0610a3bdc28acee790a71a3bd9590f84de1a6abaed0eb63"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 86 is called with an argument built by \u0060nextChannels.keys.mkString(\u0022\u2026\u0022)\u0060 (line 86), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/ChannelRelayer.scala"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab841f65a97ec7f23b6853c7d495a93aa49207c1d0fa5a7b009a6a91710543a"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 105 is called with an argument built by \u0060mappings.keys.mkString(\u0022\u2026\u0022)\u0060 (line 105), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/payment/relay/ChannelRelayer.scala"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"104472910dca1171922111409e2f786943633bb4c1c6cd4117ab9e2f47555021"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 191 is called with an argument built by \u0060(intermediateNodes : \u002B targetNodeId).mkString(\u0022\u2026\u0022)\u0060 (line 191), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/message/Postman.scala"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1cab4ff63a1fe962fb99527976275d5198a427357fc3c4e2b6fccfe84bd2d6"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 114 is called with an argument built by \u0060localChanges.proposed.map(msg2String(_)).mkString(\u0022\u2026\u0022)\u0060 (line 114), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"702e972521bc67bade27b3e43351e599a8f26c9afa024768d9fe5f75a87caab0"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 115 is called with an argument built by \u0060remoteChanges.proposed.map(msg2String(_)).mkString(\u0022\u2026\u0022)\u0060 (line 115), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/Commitments.scala"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2991c026136671db69d9aa206ca8d27df70ed744482e8d863dae410f52e457"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 361 is called with an argument built by \u0060toUnlock.mkString(\u0022\u2026\u0022)\u0060 (line 361), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxFunder.scala"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f8aa32545f54a1066df6fe775b7a564e674485afc281338793afdea63f892d"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 402 is called with an argument built by \u0060toUnlock.mkString(\u0022\u2026\u0022)\u0060 (line 402), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee58ef0b71b5b55c737e1e782d0d889fc1278bff783e5f9ec9874ef2c25aff2c"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 446 is called with an argument built by \u0060toUnlock.mkString(\u0022\u2026\u0022)\u0060 (line 446), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/ReplaceableTxPublisher.scala"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd59e3c5f781b256d623d57a17de7f8201014728ffe639885fcfd92aae94e41c"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 127 is called with an argument built by \u0060remainingParentTxs.keySet.mkString(\u0022\u2026\u0022)\u0060 (line 127), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/publish/TxTimeLocksMonitor.scala"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a354e77fbe9567b2fb230cbc4b6de350d9cad94dc543b5cd489b4500584f26"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 1150 is called with an argument built by \u0060toUnlock.map(o =\u003E \u0022\u2026\u0022 o.txid o.index).mkString(\u0022\u2026\u0022)\u0060 (line 1150), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8717fdeb6d54194d9c3cc9c8e683440fb4832950d35e337e8718056faa3ad292"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 396 is called with an argument built by \u0060toUnlock1.map(o =\u003E \u0022\u2026\u0022 o.txid o.index).mkString(\u0022\u2026\u0022)\u0060 (line 396), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxFunder.scala"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"9281d044780a3f9bfc2da2ea553a1da48944bcd4190d32a90299c41b8ef27289"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 68 is called with an argument built by \u0060batch.groupBy(_.request.method)\u0060 (line 68), whose cost grows with the collection it walks. Scala 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: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/bitcoind/rpc/BatchingClient.scala"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d843410cd72e223ce0e2b80294ddfde97f2721d6da2618f3a7452616409185c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 90 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eclair-core/src/main/scala/fr/acinq/eclair/blockchain/watchdogs/HeadersOverDns.scala"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ea34eaa7e78eea803763679c751cde2ed439af293544a6666b02bef6ad4a13"}},{"ruleId":"X5","level":"note","message":{"text":"Scala\u0027s null is not held to the type system everywhere: No build over this repository\u0027s 258 Scala product file(s) passes \u0060-Yexplicit-nulls\u0060, enables WartRemover\u0027s \u0060Null\u0060 wart or runs Scalafix\u0027s \u0060DisableSyntax.noNulls\u0060, so every reference type admits null and nothing reports a \u0060null\u0060 written into the code or returned from a Java API \u2014 the first one to reach a method call is a \u0060NullPointerException\u0060. \u0060Option\u0060 by convention is a habit no tool here holds the code to."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"23e7c3c6da50151f07723c64ca4f881fd5903e713d143161a7c0594ad7ba29cc"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"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-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":"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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"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-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":59,"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."]}]}