{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"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":"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":"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":"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":"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":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF2","name":"Allocation hygiene","shortDescription":{"text":"Allocation hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF2"},{"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":"Runner.run (cyclomatic 187): Runner.run has cyclomatic complexity 187 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: app/src/main/scala/fr/acinq/bitcoin/Script.scala holds 2 of the 7 methods over the threshold \u2014 including the worst \u2014 and 176 of the 210 points over it (84%), 8.8\u00D7 the next-largest file (app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala at 20). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Script.scala"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca707fa271f73e2c10166feff4da08d541a4c0fb628adcbaa7426b893b5abcfe"}},{"ruleId":"D1","level":"warning","message":{"text":"ElectrumWallet.receive (cyclomatic 35): ElectrumWallet.receive has cyclomatic complexity 35 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf656af8930b2ad9fccf2a69d45726afb0699f3f403a21adb858880d4f0f23d"}},{"ruleId":"D1","level":"warning","message":{"text":"ElectrumClient.parseJsonResponse (cyclomatic 21): ElectrumClient.parseJsonResponse has cyclomatic complexity 21 (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":"app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumClient.scala"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0710185b2b95dfc148cdac0e5a547b3034098717b660cd840512df6707ce20"}},{"ruleId":"D1","level":"warning","message":{"text":"Runner.verifyScripts (cyclomatic 19): Runner.verifyScripts has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: app/src/main/scala/fr/acinq/bitcoin/Script.scala holds 2 of the 7 methods over the threshold \u2014 including the worst \u2014 and 176 of the 210 points over it (84%), 8.8\u00D7 the next-largest file (app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala at 20). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Script.scala"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5a6e6de5cee984893c9fa39bdee58e7dfe235fc481f1daf5c524b68b024b36"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentLineViewHolder.updateDetails (cyclomatic 18): PaymentLineViewHolder.updateDetails 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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"5421462f920de850263baa318582d585b9799e1c06ed298ae285a2bf4cbb683c"}},{"ruleId":"D1","level":"warning","message":{"text":"CarouselLayoutManager.onLayoutChildren (cyclomatic 18): CarouselLayoutManager.onLayoutChildren 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":"app/src/main/scala/com/azoft/carousellayoutmanager/CarouselLayoutManager.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85fc5fc96068294256eff6761c2b399c1f8632e509b83a81df92742ecf42ef4"}},{"ruleId":"D1","level":"warning","message":{"text":"Crypto.isDERSignature (cyclomatic 17): Crypto.isDERSignature has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Crypto.scala"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3b95fec4e8d62877642a14bf097897e1fc20f8642484685abc81b4c2bd5adc"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner.run (cognitive 226): Runner.run has cognitive complexity 226 (threshold 15). Drivers by points: if/else 82 (137 pts), match/switch 36 (71 pts), boolean chains 18 (nesting depth added 90). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: app/src/main/scala/fr/acinq/bitcoin/Script.scala holds 3 of the 15 methods over the threshold \u2014 including the worst \u2014 and 229 of the 330 points over it (69%), 6.9\u00D7 the next-largest file (app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala at 33). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Script.scala"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a498a6063bb798518b1abfa9351d2c001618cfb45d6028ca3308487feaf93bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ElectrumWallet.receive (cognitive 48): ElectrumWallet.receive has cognitive complexity 48 (threshold 15). Drivers by points: loops 7 (23 pts), match/switch 5 (12 pts), if/else 5 (9 pts), boolean chains 4 (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":"app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d17f9db5fc43e0e190ffed56d0305676ff741dd5b994f01529155313fb84e31"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner.verifyScripts (cognitive 30): Runner.verifyScripts has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This file is where this pass\u0027s cognitive complexity CONCENTRATES: app/src/main/scala/fr/acinq/bitcoin/Script.scala holds 3 of the 15 methods over the threshold \u2014 including the worst \u2014 and 229 of the 330 points over it (69%), 6.9\u00D7 the next-largest file (app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala at 33). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Script.scala"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b97c46c512eebd6118f4bb3b3a5112a93446d990d29a6725519ad217a07fc09"}},{"ruleId":"D2","level":"warning","message":{"text":"UriCodec.appendDecoded (cognitive 29): UriCodec.appendDecoded has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (16 pts), error handling 1 (4 pts), loops 2 (4 pts), ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/utils/uri/UriCodec.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"085a30c6cce486282b6ccba3905c9da416758c83f8453f3929ff70c184741b50"}},{"ruleId":"D2","level":"warning","message":{"text":"ElectrumClient.parseJsonResponse (cognitive 26): ElectrumClient.parseJsonResponse has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 7 (17 pts), loops 2 (6 pts), if/else 3 (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":"app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumClient.scala"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f295622aa83b5bb5340902f2667cd0a65d5405c1d6e4267a778f7444aa09811c"}},{"ruleId":"D2","level":"warning","message":{"text":"CarouselLayoutManager.onLayoutChildren (cognitive 26): CarouselLayoutManager.onLayoutChildren has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, ternaries 2 (5 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":"app/src/main/scala/com/azoft/carousellayoutmanager/CarouselLayoutManager.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad99fa3b8bb91405e290e7812348bc43deea8407bc3548e3feb60dc55e5aa7f"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.encode (cognitive 23): Uri.encode has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 4 (7 pts), boolean chains 2, error handling 1 (2 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10269c7ca8903c17434b384d977abc206cf63cf079197541a14b46ed3b3b158"}},{"ruleId":"D2","level":"warning","message":{"text":"ChipSpan.getSize (cognitive 20): ChipSpan.getSize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 1 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/com/hootsuite/nachos/chip/ChipSpan.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e0e1732d24f6a51be0be9429bd48794f2d0422fbe38b14583ce6c027b80e4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.getQueryParameters (cognitive 20): Uri.getQueryParameters has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"519a47ea4745a2432d0a71f4d8d357208e24397d82ab044d1ac54514b93eec6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.toSafeString (cognitive 20): Uri.toSafeString has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9e41fe818a0eac02e10d14da9e0c8f2e7ba6c7e1649e02fa8db1899ef6a42e"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.getQueryParameter (cognitive 19): Uri.getQueryParameter has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46de4a4f72200ac2fb75eb72ce7d698b38801ddd332ec6381036623b6aa071f"}},{"ruleId":"D2","level":"warning","message":{"text":"Script.decodeNumber (cognitive 18): Script.decodeNumber has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: app/src/main/scala/fr/acinq/bitcoin/Script.scala holds 3 of the 15 methods over the threshold \u2014 including the worst \u2014 and 229 of the 330 points over it (69%), 6.9\u00D7 the next-largest file (app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala at 33). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Script.scala"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"acda29a11c2fe8c2ca74d041e0118e813145b25b667f2ace998dc60fe0c37968"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentLineViewHolder.updateDetails (cognitive 17): PaymentLineViewHolder.updateDetails has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), match/switch 4, boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc14c47e277e3648ad05ccf2f202f1ff0e059243e33a55b9fb6b425043ead67"}},{"ruleId":"D2","level":"warning","message":{"text":"CommonLogic.fillLines (cognitive 17): CommonLogic.fillLines has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/org/apmem/tools/layouts/logic/CommonLogic.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db6f4efe7dcd7bb19b28731b2acaa0b6a2d55fe81f39bfa164823bb5a9929a2"}},{"ruleId":"D2","level":"warning","message":{"text":"Crypto.isDERSignature (cognitive 16): Crypto.isDERSignature has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Crypto.scala"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ca6e674f2d3c5912b0c60d311fc3525fab0fb394312f7b9e6f59dd2cfc58ed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NachoTextView: TooManyMethods \u2014 71 methods. The bar is 30 methods; this is 41 over it, 2.37\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":"app/src/main/scala/com/hootsuite/nachos/NachoTextView.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8876e2dab776cb0c43003d86e974f039afaec7d0094914e2d5a0e8da4cb1dfb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Uri: ClassTooLong \u2014 838 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 438 over it, 2.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0de23086c884069bfab0800506a91e293b885880485fcefa81323c8af7707bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tacticaladvantage/MainActivity.scala: FileTooLong \u2014 932 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: MainActivity (52-1363). The bar is 500 significant lines; this is 432 over it, 1.86\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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa183070aa0561bd1327f0093597abd237d802b3db74be5bfc4b8c8abdcc04a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NoboButton: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\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":"app/src/main/scala/com/ornach/nobobutton/NoboButton.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"13928a1316e2541ddf8c31cc90d19dbdcee4bbef2dd4536bfa9d7247c5ed2345"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: uri/Uri.java: FileTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Uri (43-2126). The bar is 500 significant lines; this is 351 over it, 1.70\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24c1ccc539be404fb1061eef8dd3082c05c770e524c5f90ea074c7fb64d3dd1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CarouselLayoutManager: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/com/azoft/carousellayoutmanager/CarouselLayoutManager.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae88af89398f68f14af74e367d5c49ba72b19ababeeb0f4c4df297eeb24e477"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Uri: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba138a90cc1bab564404fdf7b7a997a8b68d41be34b7397511b9c706ea22059"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Script: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Script.scala"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cfb7a7c5a0f4387070c1e2c439b505bda8f5287741bd04f3efc2a357c53041"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Protocol: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Protocol.scala"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dfa9eefbb80845f9112feadb4097224c2f1d862d3cff0c59532353f12ffb18"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bitcoin/Script.scala: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 81 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Script.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"226e1b8fc75a6c0487b39d34f27ee57c074400492eb2254589df596f8e09f03b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CarouselLayoutManager: ClassTooLong \u2014 453 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 53 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/com/azoft/carousellayoutmanager/CarouselLayoutManager.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a820df7eac41c92becc41e6064e15182277619d36baf333fd09345e61788b5b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nachos/NachoTextView.java: 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":"app/src/main/scala/com/hootsuite/nachos/NachoTextView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b895675eb2783dff17e5e95a2edb66aa43e8b1fce31863b159278ada2c47aaa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Crypto: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Crypto.scala"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e190d75114d76691a0b39b1232536a3df770837a5d36bc1424c86e83dc60fea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StringUri: 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":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f781dfc4c8c1b0a48294a891f322de2248550e8c9242614866ef23c2617406"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (33 shared lines): app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:243-310 | app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:316-382 \u2014 These two members are variants of one another: 33 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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3f8591a953c7f3b84060546438917ce50b49517188d252fa7ab4c4bb422fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java:66-132 | app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java:59-109 \u2014 These two members are variants of one another: 29 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9c95b4d3627c889c8106858de7b5f062053ea5af5623e0d2d7c1759772b513"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:265-277 | app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:338-350 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:265\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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3dde05c28ac83589b83d7752bd3e5bb60e3e898cfb8f9c97c06d956958836a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/scala/trading/tacticaladvantage/utils/FeeRates.scala:103-114 | app/src/main/scala/trading/tacticaladvantage/utils/FeeRates.scala:134-145 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/trading/tacticaladvantage/utils/FeeRates.scala:103\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":"app/src/main/scala/trading/tacticaladvantage/utils/FeeRates.scala"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2412262bf743d01435636f308a31bb104df2fd386be7a3580c328dc4ebde38a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/scala/fr/acinq/bitcoin/Bech32.scala:126-136 | app/src/main/scala/fr/acinq/bitcoin/Bech32.scala:146-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":"app/src/main/scala/fr/acinq/bitcoin/Bech32.scala"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7e26d7395d2fcf8f5d16354e79283a7247556eea15db533a65e0b7a1f11b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:249-259 | app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:322-332 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:249\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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f0911426482c644e1901110b44f5929665d894617f9384434c7dbb0bff760b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/scala/fr/acinq/eclair/blockchain/fee/FeeProvider.scala:49-58 | app/src/main/scala/fr/acinq/eclair/blockchain/fee/FeeProvider.scala:67-76 \u2014 both copies are in the same file, so extract the block 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 \u0060block_1\u0060 to \u0060FeeratePerKB\u0060 in one and \u0060FeeratePerKw\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":"app/src/main/scala/fr/acinq/eclair/blockchain/fee/FeeProvider.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac603ed94f542054b89485265d3db79873f164655e872d0a9316adb28bfd2c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:302-310 | app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:374-382 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:302\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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6644b7e7c81042937ae9bb31e32eba4812fa1c96b81632dc01eba8810cc240a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/scala/fr/acinq/bitcoin/Protocol.scala:342-349 | app/src/main/scala/fr/acinq/bitcoin/Protocol.scala:367-374 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/fr/acinq/bitcoin/Protocol.scala:342\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/scala/fr/acinq/bitcoin/Protocol.scala:341\u0060 calls \u0060writeUInt32\u0060 and \u0060app/src/main/scala/fr/acinq/bitcoin/Protocol.scala:366\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":"app/src/main/scala/fr/acinq/bitcoin/Protocol.scala"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3b179a120b68982992341f7741b924e32b5abca51edf3f827b9e794d9dea8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:201-208 | app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:348-355 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:201\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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd6cc331cf7fbf20f69567bfe25b4681e3fd39191e38a4e2cdc17bfb4d31a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/scala/fr/acinq/bitcoin/Bech32.scala:48-53 | app/src/main/scala/fr/acinq/bitcoin/Bech32.scala:55-60 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/fr/acinq/bitcoin/Bech32.scala:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/bitcoin/Bech32.scala"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1b0d5f69e1d4e160879a39d4be9ca0ce5346ebaead0c4abbcd2348b40439c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/scala/fr/acinq/bitcoin/DeterministicWallet.scala:62-67 | app/src/main/scala/fr/acinq/bitcoin/DeterministicWallet.scala:94-99 \u2014 both copies are in the same file, so extract the block 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":"app/src/main/scala/fr/acinq/bitcoin/DeterministicWallet.scala"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"176746cefa91989f67051a24b1d67b08f552cb7331421abe97e5d1a9d5398b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/scala/fr/acinq/bitcoin/DeterministicWallet.scala:169-174 | app/src/main/scala/fr/acinq/bitcoin/DeterministicWallet.scala:194-199 \u2014 both copies are in the same file, so extract the block 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":"app/src/main/scala/fr/acinq/bitcoin/DeterministicWallet.scala"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f352c198e73fdcf2c589933843a584c995d0ec8cdc9e76a3aaf323f42f4ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/scala/fr/acinq/bitcoin/LexicographicalOrdering.scala:15-19 | app/src/main/scala/fr/acinq/bitcoin/LexicographicalOrdering.scala:24-28 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/fr/acinq/bitcoin/LexicographicalOrdering.scala:15\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":"app/src/main/scala/fr/acinq/bitcoin/LexicographicalOrdering.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3679a624467daf038cabfbffc276e57c1b9e50e0a56ec9400b66b6ea007b27c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:778-782 | app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:829-833 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/trading/tacticaladvantage/MainActivity.scala:778\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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac5c53e3a84f651f6bbb3ae31cebc4959836aab47186842ed2607d4fe8ccb4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/scala/com/hootsuite/nachos/NachoTextView.java:642-653 | app/src/main/scala/com/hootsuite/nachos/NachoTextView.java:657-668 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/scala/com/hootsuite/nachos/NachoTextView.java:654\u0060 calls \u0060getText\u0060, \u0060getSelectionStart\u0060, \u0060getSelectionEnd\u0060 and \u0060app/src/main/scala/com/hootsuite/nachos/NachoTextView.java:669\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":"app/src/main/scala/com/hootsuite/nachos/NachoTextView.java"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a73cae9ca43880880810a6cba2d2b7a009ffbd40c0e8203e5a6c10c80807a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java:99-110 | app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java:88-99 \u2014 before extracting anything, compare \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java\u0060 and \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c474605825cc5d891c9ab65cb8d689806f20c107fd4d9b42ea7956076118d646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/scala/com/ornach/nobobutton/NoboButton.java:212-222 | app/src/main/scala/com/ornach/nobobutton/NoboButton.java:243-253 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/com/ornach/nobobutton/NoboButton.java:212\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":"app/src/main/scala/com/ornach/nobobutton/NoboButton.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb5e260d0096d89dad486383d43aefd3ca993c79b008d9e01020b6a89809c4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java:81-91 | app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java:72-80 \u2014 before extracting anything, compare \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java\u0060 and \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java:81\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":"app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1721de98a689e39c71c3b9716a5b4ab02a8a042a426aa1981c2655660fbadd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java:112-119 | app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java:101-108 \u2014 before extracting anything, compare \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java\u0060 and \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"233ce811e4bef265c7332ad78561534c38826140ab0371840c6c727bb53ff78d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java:372-379 | app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java:162-169 \u2014 before extracting anything, compare \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java\u0060 and \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java:372\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":"app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b028944b796c93db2a24966f542da37e0d4af2fe8235fcf70feb3dc1f5f8fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java:1561-1568 | app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java:1617-1624 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java:1561\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":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0b2d8d2c673ee621c47206548d88b21ead693a68779027cfb6e21fd934a228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/scala/com/ornach/nobobutton/DrawableHelper.java:159-163 | app/src/main/scala/com/ornach/nobobutton/NoboButton.java:345-349 \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 \u0060app/src/main/scala/com/ornach/nobobutton/DrawableHelper.java:159\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":"app/src/main/scala/com/ornach/nobobutton/DrawableHelper.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5f2a238c0ae1255620c3bb615aef9e0f08d1b7721bdf2154810470a5570359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java:135-139 | app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java:112-116 \u2014 before extracting anything, compare \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java\u0060 and \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayoutManager.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java:135\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":"app/src/main/scala/org/apmem/tools/layouts/FlowLayout.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"96425e94f864677af30663768085c70bd72abda8291b7ab3db8c191887d2d149"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainActivity (LCOM4 8): MainActivity\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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"328ae0108591ada1b6fa3252660579addc591f7880bd916c008411c8f52524bc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WalletCardsViewHolder (LCOM4 4): WalletCardsViewHolder\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":"app/src/main/scala/trading/tacticaladvantage/MainActivity.scala"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaaf4028f479a47f3d3dfdd6f35e6c1f4c2a25eb6c0681a9125cfd91f72ffd84"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (ScalaTest, MUnit or specs2), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D9","level":"note","message":{"text":"No tests found: No test suite could be collected \u2014 no discoverable tests to count. If this repository does test, wiring the suite to a framework a runner can collect (ScalaTest, MUnit or specs2) is what makes it countable here; a pipeline step that invokes a runner is not evidence on its own, because a runner over an empty suite passes. Tests written as plain executables or shell/PowerShell harnesses are not collectible this way and are not scored here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala: app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in ElectrumWallet.receive at line 386. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:09:04 \u002B03:00\u0027 --until=\u00272026-10-10 11:09:04 \u002B03:00\u0027 --full-history --no-merges -- app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.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":"app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumWallet.scala"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"8929cb92156f8094482c2cac32c116e99d6708b61a720106e3cd317b1e24fa69"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/scala/trading/tacticaladvantage/utils/WalletEventsCatcher.scala: app/src/main/scala/trading/tacticaladvantage/utils/WalletEventsCatcher.scala changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in WalletEventsCatcher.receive at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:09:04 \u002B03:00\u0027 --until=\u00272026-10-10 11:09:04 \u002B03:00\u0027 --full-history --no-merges -- app/src/main/scala/trading/tacticaladvantage/utils/WalletEventsCatcher.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":"app/src/main/scala/trading/tacticaladvantage/utils/WalletEventsCatcher.scala"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6276d447ca6f28431ad744114c5bd99f3dae865a8d6e81ba8db2d774d89856"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If we haven\u0027t parsed all of the segments already, just \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":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d3a841a69223bb17dfa9e1930b94348479825336b62e2afcd0103c35f822a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should we reuse old PathSegments? Probably not. \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":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"550680b93ea1ab5ca01d8db9ba5e3920010683010b016209c3218eabd10e632d"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no contributor guidance: Contributing guidance is present but it says PRs are not welcome and third-party PRs will be rejected. Rephrase so contributors understand how to submit a PR (code, tests, docs) while respecting the rejection policy."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"620f29787918fa3406ae55cb63eefa1b50410845435c4e47bda852816aaea084"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Split app: A huge catch-all at 16k LoC across 20 unrelated namespaces is a sprawling grab-bag. Suggested: "},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"31354d90eb7f071639ba192ce76db15af8e7f762f00dee19e79fda38e6d40840"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d54f96fcdadb9311adb2f4926a15a982f4536948496f394ac5e15ccb9dea8be"},"properties":{"commitSha":"ccfdcf35584ab10509cb4381a6e8f50d2fd1061a"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"29405e46dc9f28f429bf29f2081c462c5755dd2e43fdd4eb217ec421f77e6c53"},"properties":{"commitSha":"ccfdcf35584ab10509cb4381a6e8f50d2fd1061a"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e2fb167226f0c17ed16a28e9af6919e2229d869646b38b8ee026eed6ba73a796"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ff2aebbf68d446381bcbac00218eb42ebc6a7a288fdd56d39845a6650429c9e"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"486f4fb77bbfcd1591be15255ea81e22fc7ce7a4adad314ce3d1e7e2958534ea"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4df44bcb7af5022655d1b20e12655f6b849602f2fe7db6d58e87d594ba0d60e"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"546836a48b473e0e4099b45a218a700736bb4a60087887a24ef68c5caa5681b7"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0cff4d105db067505c58114080c4517b20c20588e960332a3d9de6be36565798"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22862bfee88f4a8e3af04f835478dc5d91188be33193e981a5ea4b1f536223a9"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a7e8dc9244ea1c78ff29afa0b1f5b203a0050738a719e515ec6a9b2a8fe8d47"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9ccb40c578f8553de918a201b5f845ecde2735adeb7e3181ce0263f408b45fe4"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cbc7417d22c9f8c293bebc62872b0c03067446a9468b391b451268e42dd5560"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"12fcb08726937543897b25207a29bb6b4841374ef76d55f9dbd2359cc6f3fead"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a89b98b3b4eec6d3df0c6fab6a4b9d3771e82186ffaaff7f28fd35ef250b82c9"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"467a524468c090b42afc54369e24aedb9164efd29e69319179bc752bee69711a"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6c038f961febc2243a2b00c2c5f6612861e93680787b80828b70ed4e3d3625cc"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dcaf5a42f7113f9476e7f5228eb59eb24c2c76330b0806e47ffa60ce641b4747"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94116992226d3950905b47915c2e996c33da5d4a7c3bba0091aca134120c8eb2"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b3c9b0c08e0f660de771905e0f7871ad6c81e82846ea3772e713efc2cfba4b9"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"917aa6318d0fc7bad930cc9fbd7e0937f1582caa5b66668a7cafe8d89363eb42"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0dfc83a1dcd33a9f7c82c1b430d65a89c0edae1bbf8d0855dd1b6c99f8f63b04"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2effcf88b5e580088b140eda5dbdb586d64e08102cde6d8dc5377efff2c4ae87"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ca490b61f086573111690fcb1c836b483063d843f4eaab8df89a7c61c77ad86"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"954c70f89c3d482c8354be49ea18003f4fec1600156fd6eca7ffcf923e540053"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"91e0d6c8b5eec7ed90e0a88d5ce8f5a20c0c30d1095e0908d8fb4f70ffc5021c"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"74957178de6ca364f36b1b97d0097994e336f42287461119ef913c737504bff7"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"153148fab82aea70191c2f9b8022ba7f948043b4a49339a0218d40a450da7f5a"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"292c928e1782c92af11c34d4ced89983f1097457960b82466bb1c233e50a27c9"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5269b36dccb9b33188c21d23caa4076402e0882c97424d7639c02ba4e0cd095f"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"36140aedad6061975b813b3ee455dee0ad1f02f7828ef8febe033168b9f03586"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6aeb1adbb005c36da74b258c250cc16cd61d2acdb046770184d5cd9b59d86604"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"92a67ba0e1516e6517d704e08a631ae5cafbe288466f794fa5a5f4412bc13e66"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c8ca422956ecea8081a118986aafff580bec896390c7ab211a9c72f22110037"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1cef6593936ff5cd5f584d646d2293921c742b73c407f5f9fe7af043a0504746"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3f092cbdea35610ca6d80b819b19ab64a76c335f1a1dbcb66942e69370261d2b"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4762fb36d2d2fb55f027250a03b9e9c5736c3d1d60c7249bb40baf7106a62119"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3f5a3ba14e00dcec71992c2e2776b9320a1981bd8abd1024596c47af6220e6eb"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b437d12071d0c5aac1a17662a5200c8c12748eda54fc982eea9f912d17efc6a"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"03b3f272dcd6dbe9a5c1dc35204bf5284b9209123eb7c9368837adefba1fbbb2"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8888568191f19386c8607d3c26982e3ced72d8e374818fffeb044b9223236dbe"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dee35336807b8a205670423ce6482da25ab5c48feeed0bc6e53cc39d1347cbb1"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5c2f37d69177f68d9617646769f70370993b037be3203d34ecfb88117ca3478"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4b85286205b93019db07355062966dab4447cf591d17e6a203c6fecb769f4cf4"},"properties":{"commitSha":"5d03e156522472500270e99535bf3ded45f3dbcf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8a4f793728160279c5b14c8c1617fff08a112600e27a1669008732ea3be3cfc5"},"properties":{"commitSha":"fa543d4c9a44060cb39e1a36327a379601445b48"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 78 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, it found no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5fc8f78bec0b6b3daab9d9139ba49b687f61b54f8310b64c159df9616f47e38e"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README claims PRs are not welcome but evidence shows a Dockerfile \u2014 searched for: \u0060PRs\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest and configuration files (package.json and other *.json, *.csproj, *.props, *.sln/*.slnx, *.yml, *.toml, *.config, tool configs such as eslint.config.js, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"343bbbd51ceb8de7a9ff88d79f7c797abf9b5921f8727b67b4d0f4f8a22c5e49"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add scalafix or scapegoat (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"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":"error","message":{"text":"TLS certificate validation disabled: \u0060InsecureTrustManagerFactory.INSTANCE\u0060 is set on a TLS client, so every peer certificate is accepted \u2014 including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic \u2014 the connection is encrypted to the attacker, not to the intended host. Remove the override so the JVM\u0027s default trust manager and hostname check apply \u2014 that is what \u0060SSLContext.getDefault\u0060, Netty\u0027s \u0060SslContextBuilder.forClient()\u0060, sttp, Play WS and ssl-config use when nothing is set. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: load its CA into a \u0060KeyStore\u0060 and build a \u0060TrustManagerFactory\u0060 from it (ssl-config: \u0060trustManager.stores\u0060), which keeps the chain and hostname checks on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/fr/acinq/eclair/blockchain/electrum/ElectrumClient.scala"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"498558b1ba0cef38a7dc8e4fc8d630369d628c2ec3a3959c96a4368bdf068903"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060target == BigInteger.ZERO || negative || overflow\u0060 appears character-identically in 2 files \u2014 app/src/main/scala/fr/acinq/bitcoin/Block.scala, app/src/main/scala/fr/acinq/eclair/blockchain/electrum/Blockchain.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":"app/src/main/scala/fr/acinq/bitcoin/Block.scala"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3215569e6329207f8ac8f0d3ae76c35c2c6ef2e47d42e4a24e33f2d0c4bd95"}},{"ruleId":"X5","level":"note","message":{"text":"Scala\u0027s null is not held to the type system everywhere: No build over this repository\u0027s 64 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"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060parsePort\u0060 returns \u0060-1\u0060 when \u0060NumberFormatException\u0060 is thrown, with no log or throw \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/scala/trading/tacticaladvantage/utils/uri/Uri.java"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f8175f364af995bf8cf2852e68a1c2895f8d3ee402b221aa2fded35f391966"}}],"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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]}],"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":45,"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."]}]}