{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"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"}]}},"results":[{"ruleId":"D2","level":"warning","message":{"text":"FlutterSoundRecorder._startRecorder (cognitive 16): FlutterSoundRecorder._startRecorder has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_recorder.dart"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"387c82dc1adb584fa1e16420f7a2d2d8bdebc2ae96952dbc75c196b4ff558593"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlutterSoundPlayer: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.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":"lib/public/flutter_sound_player.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cbb9317ee36ee7463fe2aff58ef8db34ea1da4882e23364937a2a7a70b000f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FlutterSoundPlayer: ClassTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 400 significant lines; this is 395 over it, 1.99\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_player.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74bc2a7a23050bdac2a67625d200f319526da700932c447ad54cd999d905e7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: public/flutter_sound_player.dart: FileTooLong \u2014 827 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: FlutterSoundPlayer (99-2183). The bar is 500 significant lines; this is 327 over it, 1.65\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":"lib/public/flutter_sound_player.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd0da16ed2b69404ec18d50f71aef83bc4c0a165d205b8212a790b855b0baf9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlutterSoundRecorder: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_recorder.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"307a30f952d35808570e0c6a7507812079170b1a266638454db531bf2e1b4a8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: static-assets/highlight.pack.js: FileTooLong \u2014 775 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 275 over it, 1.55\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"doc/api/static-assets/highlight.pack.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d357341212fc4214d4beccfc9a738b171ecfd4307ad0cb0f6982f1ffc8f0de5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FlutterSoundRecorder: ClassTooLong \u2014 495 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 95 over it, 1.24\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":"lib/public/flutter_sound_recorder.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7906d53877c9d299e0c0f1f7bf55790ab5f55583d536e7941ba71205dd941ab3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlutterSoundPlayer: 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":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3363225d0a084a856cd39b8f65a0457d7213812dda91212cc13897322865defb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: public/flutter_sound_recorder.dart: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: FlutterSoundRecorder (75-1177). The bar is 500 significant lines; this is 26 over it, 1.05\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":"lib/public/flutter_sound_recorder.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c0733dc56c1a861926f66185020080188c47aae1fdca738a351036920c8227"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java:61-68 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java:71-78 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java:82-89 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java:93-100 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"309511bd2c52537016e790c6c8ca04f55d16ecb632757ceeb079b88d8c4525b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): lib/public/flutter_sound_player.dart:1917-1944 | lib/public/flutter_sound_player.dart:1974-2000 | lib/public/flutter_sound_recorder.dart:1042-1065 | lib/public/flutter_sound_recorder.dart:1094-1117 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_player.dart"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"580f4416b5ede258087ebaac00f9916ec46b7fccc2313c51e85122c1e52e81af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): lib/public/flutter_sound_player.dart:2073-2090 | lib/public/flutter_sound_player.dart:2099-2119 | lib/public/flutter_sound_player.dart:2147-2163 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_player.dart"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fe4ac3d3ca69c3ba83700a5d6c941a7945ee094b92a01716eb41a367b4f017"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/public/flutter_sound_player.dart:1806-1823 | lib/public/flutter_sound_recorder.dart:966-985 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_player.dart"},"region":{"startLine":1806}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c98da36129805ac203fe063dfd8a3fdcdbd7cd48f2540a4b53e390c3c75de6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java:249-262 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java:265-278 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java:281-294 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"f176977faaf35139a2427e240926cdccff479d6d40dd73e8dba3891fa184c46a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java:316-330 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java:333-346 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9c6feef962fbc270f030efa2c61666183821431c5553334fb78846877cf35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorder.java:163-169 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorder.java:172-178 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorder.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"343417381411019b27192add6ee60c956f6f98dd5e48f871d60b8d2e28b6b592"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): ios/Classes/TaudioPlugin.swift:5-9 | macos/Classes/TaudioPlugin.swift:5-9 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/Classes/TaudioPlugin.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6266c843fdf9b14237931ca5b9f9bae6911896fbdfcad69d9e99f22e68d73ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/public/flutter_sound_player.dart:667-675 | lib/public/flutter_sound_recorder.dart:401-409 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_player.dart"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc2d77daf5a0870c8456de29a4015f4e6f2ca87affe9484f703e25477f4f167"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): ios/Classes/TaudioPlugin.swift:11-18 | macos/Classes/TaudioPlugin.swift:11-18 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/Classes/TaudioPlugin.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd523e7ca8b4c1024d1793b1fa5b6cab6fd2137f66031ce08bf1caea8db93c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): td/taudio_buffer.dart:48-68 | td/taudio_source.dart:60-80 \u2014 before extracting anything, compare \u0060td/taudio_buffer.dart\u0060 and \u0060td/taudio_source.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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":"td/taudio_buffer.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"495c46774f173fcecedefc2055a3072ae2b21bfcbe310046f98c4e07860a9e04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): td/taudio_buffer.dart:85-98 | td/taudio_source.dart:97-110 \u2014 before extracting anything, compare \u0060td/taudio_buffer.dart\u0060 and \u0060td/taudio_source.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"td/taudio_buffer.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d0d18a5b493ad00dd634034592e612c46a4ebe83cb53f7d914c14dc0183b87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): td/taudio_buffer.dart:109-122 | td/taudio_source.dart:121-134 \u2014 before extracting anything, compare \u0060td/taudio_buffer.dart\u0060 and \u0060td/taudio_source.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"td/taudio_buffer.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3e6d13464439c1d1f5d5f1a5f7be74b225175d5220881e772f655ddbb71aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): td/taudio_buffer.dart:73-83 | td/taudio_source.dart:85-95 \u2014 before extracting anything, compare \u0060td/taudio_buffer.dart\u0060 and \u0060td/taudio_source.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"td/taudio_buffer.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94daa16bab413621b9e9521bbd1d0b48318aea720d9e4abc93f02feb85ded97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java:320-330 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java:337-346 \u2014 both copies are in the same file, so extract the block 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 \u0060android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java:320\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":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e61dce6b2291b35b071279f906409db59a2f4296633292f641160a6e164c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java:62-68 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java:72-78 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java:83-89 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java:94-100 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060arg\u0060 to \u0060String\u0060 in one and \u0060double\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":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ae8f4b3100a77a774b1c80b2fe807bd3a5eba3d59af10adfab890d156f8854"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorder.java:164-169 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorder.java:173-178 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060arg\u0060 to \u0060String\u0060 in one and \u0060double\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":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorder.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"95643d27ed00282ad51edd87c5cd301ace0ea48993308a0bfb9c39433b0bcb0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java:308-313 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorder.java:156-160 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7ef570073aaf61b5ce98aac089d8d73e9dc6997aaa110273e31d353f42ff1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayerManager.java:44-52 | android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorderManager.java:45-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayerManager.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd9f86c289d4779dee96e79a49330f1ebca3a8ca135e32308fd1e0aeee19336"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart:195-308 | example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:179-263 | example/lib/loglevel/loglevel.dart:106-333 | example/lib/multi_playback/multi_playback.dart:258-354 | example/lib/play_from_mic/play_from_mic.dart:201-279 | example/lib/player_onProgress/player_on_progress.dart:144-200 | example/lib/recordToStream/record_to_stream_example.dart:234-361 | example/lib/recorder_onProgress/recorder_on_progress.dart:161-211 | example/lib/seek/seek.dart:148-204 | example/lib/simple_playback/simple_playback.dart:133-187 | example/lib/simple_recorder/simple_recorder.dart:212-284 | example/lib/soundEffect/sound_effect.dart:109-164 | example/lib/speed_control/speed_control.dart:126-180 | example/lib/streams/streams.dart:456-628 | example/lib/volume_control/volume_control.dart:139-213 | example/lib/volumepan_control/volumepan_control.dart:136-195 \u2014 These 16 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 16 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c102ecbd2978cea6576e67eb5638b92ed2f140562440431214c807e29c989f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): example/lib/demo/demo.dart:249-275 | example/lib/play_from_mic/play_from_mic.dart:55-86 | example/lib/simple_playback/simple_playback.dart:49-73 | example/lib/simple_recorder/simple_recorder.dart:61-92 | example/lib/streams/streams.dart:80-108 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/demo/demo.dart"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db64b8c7b1b4cf5cc69c9015a35c0345f8d4fa100da86debd0bcaf776403bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): example/lib/streams/streams.dart:263-289 | example/lib/streams/streams.dart:293-320 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/streams/streams.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"7583b5483519b886e73cc2c099f0c3afa1bc0432b8142dcc5f6729c182830cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): example/lib/streams/streams.dart:223-240 | example/lib/streams/streams.dart:242-259 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/streams/streams.dart"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"f100d21901f86d4d375091f50a03637cd36e79a0b8574c26ceed68b8840ec205"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): example/lib/multi_playback/multi_playback.dart:194-206 | example/lib/multi_playback/multi_playback.dart:226-238 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/multi_playback/multi_playback.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e994cc84416041986c1829beadf178842caf6d0c2b903f8b64323e997b637bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): example/lib/demo/demo.dart:606-617 | example/lib/demo/demo.dart:619-631 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/demo/demo.dart"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96d18b0deb34f6c5dff8324b0cbcc42c05e5b56890b5145c1c3d16ce1c14e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): example/lib/recordToStream/record_to_stream_example.dart:184-193 | example/lib/streams/streams.dart:334-344 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/recordToStream/record_to_stream_example.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8c77548dfcb1fa3903b83a5cc597383be01e0acc6d237ad098d00af1d2753c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart:167-176 | example/lib/recordToStream/record_to_stream_example.dart:215-224 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3978750504209ca3fd4df66464432ff1c8c09cc40b2469572d7e0a40072193f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart:78-88 | example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:102-108 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"395d5a119ff7198bb98ac3dae688d24f66623b431d347ab7e2fb566f3f19cd95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): example/lib/volume_control/volume_control.dart:102-110 | example/lib/volumepan_control/volumepan_control.dart:98-107 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/volume_control/volume_control.dart"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f872153fe463533505b8b183a49194f81ecfa910268d2af96fd7d38250fe269"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): example/lib/loglevel/loglevel.dart:49-57 | example/lib/recordToStream/record_to_stream_example.dart:67-78 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/loglevel/loglevel.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b514acdc6909e10eb7024d8d28fd0c3575338c917272fd114229fb45b3b8a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart:90-100 | example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:83-91 | example/lib/soundEffect/sound_effect.dart:61-67 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b5213cc8e6d7c30c89c011ce1515588173f1c2169c2facde99cd8d08ef3681"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 4\u002B corresponding lines): example/lib/demo/demo.dart:481-484 | example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart:158-161 | example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:110-113 | example/lib/player_onProgress/player_on_progress.dart:97-100 | example/lib/recorder_onProgress/recorder_on_progress.dart:119-122 | example/lib/seek/seek.dart:76-79 | example/lib/soundEffect/sound_effect.dart:56-59 | example/lib/speed_control/speed_control.dart:79-82 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/demo/demo.dart"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39f8f70e104f4ed1552a51ea33fb660bf2cfc0954b91fdb7d7e2f1e7a9071f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): example/lib/volume_control/volume_control.dart:149-178 | example/lib/volumepan_control/volumepan_control.dart:146-175 \u2014 \u0060example/lib/volume_control/volume_control.dart\u0060 and \u0060example/lib/volumepan_control/volumepan_control.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 104 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/volume_control/volume_control.dart:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/volume_control/volume_control.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8396809785ba6aea7c5521f4a64ecd4a31b0997cf2035a294c0323f2808ed01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart:228-255 | example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:225-252 | example/lib/recordToStream/record_to_stream_example.dart:320-347 | example/lib/streams/streams.dart:574-601 \u2014 before extracting anything, compare \u0060example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart\u0060 and \u0060example/lib/recordToStream/record_to_stream_example.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c883f34e4805a6729546733f580e977426d8767d8287c7eb9f8f0c91adde235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 3): example/lib/player_onProgress/player_on_progress.dart:154-173 | example/lib/seek/seek.dart:158-177 | example/lib/speed_control/speed_control.dart:136-157 \u2014 before extracting anything, compare \u0060example/lib/player_onProgress/player_on_progress.dart\u0060 and \u0060example/lib/seek/seek.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/player_onProgress/player_on_progress.dart:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/player_onProgress/player_on_progress.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec932fcc8e9b4ee44df2e1165f4d4a0ab97dfe8ecf05b6507e78d359b222a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): example/lib/loglevel/loglevel.dart:278-298 | example/lib/recordToStream/record_to_stream_example.dart:283-303 | example/lib/simple_recorder/simple_recorder.dart:250-270 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/loglevel/loglevel.dart:278\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":"example/lib/loglevel/loglevel.dart"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24366922d39c6110e768fca3d16b9f64121f87cd11692f72b92c1c4caa1f762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): example/lib/player_onProgress/player_on_progress.dart:180-200 | example/lib/recorder_onProgress/recorder_on_progress.dart:193-211 \u2014 \u0060example/lib/player_onProgress/player_on_progress.dart\u0060 and \u0060example/lib/recorder_onProgress/recorder_on_progress.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 48 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/player_onProgress/player_on_progress.dart:180\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/player_onProgress/player_on_progress.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c91206e242255ed7bc279c8a3c54438c414c528209f02bba74bc6db9dd6809b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): example/lib/demo/demo.dart:257-274 | example/lib/play_from_mic/play_from_mic.dart:56-73 | example/lib/simple_playback/simple_playback.dart:55-72 | example/lib/simple_recorder/simple_recorder.dart:62-79 | example/lib/streams/streams.dart:81-98 \u2014 \u0060example/lib/play_from_mic/play_from_mic.dart\u0060 and \u0060example/lib/simple_playback/simple_playback.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060example/lib/play_from_mic/play_from_mic.dart:50\u0060 calls \u0060FlutterSoundPlayer\u0060, \u0060FlutterSoundRecorder\u0060 and \u0060example/lib/simple_recorder/simple_recorder.dart:60\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":"example/lib/demo/demo.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dabc41fcb63da05c82168cff9f4f7548dd86fe0fa32e388720af197af7f5265"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:206-223 | example/lib/speed_control/speed_control.dart:150-167 \u2014 before extracting anything, compare \u0060example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart\u0060 and \u0060example/lib/speed_control/speed_control.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:206\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":"example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"3845ae22235c99d02e7a5da78d6dec2ea80cf1d45a169722a1448396cce6be8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): example/lib/play_from_mic/play_from_mic.dart:212-229 | example/lib/streams/streams.dart:466-483 \u2014 \u0060example/lib/play_from_mic/play_from_mic.dart\u0060 and \u0060example/lib/streams/streams.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 63 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/play_from_mic/play_from_mic.dart:212\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":"example/lib/play_from_mic/play_from_mic.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4706ed70b2a50bc8a2808d43d5f5e77ba76262381ade44f365f0c9559fe56d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): example/lib/volume_control/volume_control.dart:57-71 | example/lib/volumepan_control/volumepan_control.dart:54-68 \u2014 \u0060example/lib/volume_control/volume_control.dart\u0060 and \u0060example/lib/volumepan_control/volumepan_control.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 104 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/volume_control/volume_control.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7c8fcb8089c81d0fa9bb3b53a894ab7a0fbe0a9f76ec18ef5340186768eda5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 12): example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:186-198 | example/lib/play_from_mic/play_from_mic.dart:209-221 | example/lib/player_onProgress/player_on_progress.dart:152-164 | example/lib/recordToStream/record_to_stream_example.dart:241-253 | example/lib/recorder_onProgress/recorder_on_progress.dart:167-179 | example/lib/seek/seek.dart:156-168 | example/lib/simple_playback/simple_playback.dart:141-154 | example/lib/speed_control/speed_control.dart:134-146 | example/lib/streams/streams.dart:463-475 | example/lib/streams/streams.dart:518-530 | example/lib/volume_control/volume_control.dart:147-159 | example/lib/volumepan_control/volumepan_control.dart:144-156 \u2014 before extracting anything, compare \u0060example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart\u0060 and \u0060example/lib/recordToStream/record_to_stream_example.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:186\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":"example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb72efac0164efa19015294901fb276de1eb2e69e654f8f9ccc15bb81f788e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 22): example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart:200-212 | example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart:183-195 | example/lib/loglevel/loglevel.dart:273-285 | example/lib/multi_playback/multi_playback.dart:263-275 | example/lib/multi_playback/multi_playback.dart:303-315 | example/lib/play_from_mic/play_from_mic.dart:206-218 | example/lib/player_onProgress/player_on_progress.dart:150-161 | example/lib/recordToStream/record_to_stream_example.dart:238-250 | example/lib/recordToStream/record_to_stream_example.dart:278-290 | example/lib/recordToStream/record_to_stream_example.dart:305-317 | example/lib/recorder_onProgress/recorder_on_progress.dart:165-176 | example/lib/seek/seek.dart:154-165 | example/lib/simple_playback/simple_playback.dart:138-150 | example/lib/simple_recorder/simple_recorder.dart:217-229 | example/lib/simple_recorder/simple_recorder.dart:245-257 | example/lib/soundEffect/sound_effect.dart:114-126 | example/lib/speed_control/speed_control.dart:132-143 | example/lib/streams/streams.dart:460-472 | example/lib/streams/streams.dart:515-527 | example/lib/streams/streams.dart:559-571 | example/lib/volume_control/volume_control.dart:145-156 | example/lib/volumepan_control/volumepan_control.dart:142-153 \u2014 before extracting anything, compare \u0060example/lib/livePlaybackWithoutBackPressure/live_playback_without_back_pressure.dart\u0060 and \u0060example/lib/recordToStream/record_to_stream_example.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart:200\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/livePlaybackWithBackPressure/live_playback_with_back_pressure.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"3186e12f681d290a9236aea830174e8b9f4a2cbf3b4e4290228719ef10a48625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): example/lib/player_onProgress/player_on_progress.dart:131-142 | example/lib/seek/seek.dart:135-146 | example/lib/speed_control/speed_control.dart:113-124 \u2014 before extracting anything, compare \u0060example/lib/player_onProgress/player_on_progress.dart\u0060 and \u0060example/lib/seek/seek.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/player_onProgress/player_on_progress.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ddea906f3a95b2327b7746cfffadfdf656e15c0a00195a22eb5e87f3f4780b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): example/lib/volume_control/volume_control.dart:126-137 | example/lib/volumepan_control/volumepan_control.dart:123-134 \u2014 \u0060example/lib/volume_control/volume_control.dart\u0060 and \u0060example/lib/volumepan_control/volumepan_control.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 104 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/volume_control/volume_control.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af2f9cf2443b6b03e2306ae07943de8e35ed9b66c7ebc585679faa118832b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/lib/main.dart:437-447 | example/lib/main.dart:452-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/main.dart:437\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":"example/lib/main.dart"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ccab82ebc5782e5154dce36569896d1c2e956bffd3283453b9046464f1a84f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/lib/streams/streams.dart:279-289 | example/lib/streams/streams.dart:310-320 \u2014 both copies are in the same file, so extract the block 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 \u0060example/lib/streams/streams.dart:279\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":"example/lib/streams/streams.dart"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d06b7a270c8cf28ffc93892aeb1f976e425d901f184e6edf302c57e98e9b48b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): example/lib/loglevel/loglevel.dart:95-104 | example/lib/simple_playback/simple_playback.dart:122-131 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/loglevel/loglevel.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8883aec5b8ca91b33f5970f3a6ac7c265748b3f46bf785c0f6f1792f2b7b5b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): example/lib/player_onProgress/player_on_progress.dart:59-67 | example/lib/seek/seek.dart:55-63 | example/lib/speed_control/speed_control.dart:54-62 \u2014 before extracting anything, compare \u0060example/lib/player_onProgress/player_on_progress.dart\u0060 and \u0060example/lib/seek/seek.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/player_onProgress/player_on_progress.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1aea74840d6369d99e8bc756dbf3e245179205da991e916905f8a68182b6cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): example/lib/player_onProgress/player_on_progress.dart:104-112 | example/lib/speed_control/speed_control.dart:86-94 \u2014 before extracting anything, compare \u0060example/lib/player_onProgress/player_on_progress.dart\u0060 and \u0060example/lib/speed_control/speed_control.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/player_onProgress/player_on_progress.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9611bd61e7d7ee91a9db0a36ec0195eecf3d8161311c27cb182f31c025e70f9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/lib/volume_control/volume_control.dart:73-83 | example/lib/volumepan_control/volumepan_control.dart:70-80 \u2014 \u0060example/lib/volume_control/volume_control.dart\u0060 and \u0060example/lib/volumepan_control/volumepan_control.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 104 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/volume_control/volume_control.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"342078b7c5cdd997b2e92a974875103df17a2ffde00b65d6b615407307a28604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): example/lib/volume_control/volume_control.dart:87-95 | example/lib/volumepan_control/volumepan_control.dart:84-92 \u2014 \u0060example/lib/volume_control/volume_control.dart\u0060 and \u0060example/lib/volumepan_control/volumepan_control.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 104 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/volume_control/volume_control.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3876051206fc68882070e9ddc9c0cb368508966d85e2d28b01ba3a92a271ba3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FlutterSoundHelper (LCOM4 5): FlutterSoundHelper\u0027s methods fall into 5 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 5 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":"lib/public/flutter_sound_helper.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc3a023f184371eb35453b391f8348fe065a90f4ba95a6776df2d4a16ebb001"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FlutterSoundRecorder (LCOM4 4): FlutterSoundRecorder\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":"lib/public/flutter_sound_recorder.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5cbb8c962a7fdfa07c6ff00410f66f2368d8735ef1569e1d7ec944179553a3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //  // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound.dart"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efb6c15b0878020aa0582bc9683ca3145aa852c358dc0db049ad421409e7e23"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound.dart"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ce2197547854d14b0d56169e7f640047d5f27ed718fe7894e85fd307b27360"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound.dart"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b841dda32d4d47d1da60d9ab2cb849f52c76f0df64eef34f12bebe96b69b90f7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME : documentation of this verb \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":"lib/public/flutter_sound_player.dart"},"region":{"startLine":2092}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b725dbaace5070d33208cd966521c172c2a0c6d0a0377081d68dcde077e578"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// - FIXME : document \u0060isBGService\u0060 parameter \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":"lib/public/flutter_sound_recorder.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"406c0e01e5fb21e536d188fa5b5673f4eaa56aa45a5c18ff55d5f8fd0050f92a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/demo/demo.dart"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c00e000cb6049dc9f127bfca2244761e5348080a2451e971d5d893a70e5d25"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4d5b219402f94e104508654dbe4fd1e21a9f8a4360e03d42adf522d16bee8c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"502e31e63aa10ada5e209b463ab2ee970b23fbecc43f4c861454badc992405d5"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository is a published pub package (\u0060pubspec.yaml\u0060 without \u0060publish_to: none\u0060) and neither \u0060README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a5992d4bd6ac1ea4b853ae69753fcd7e0410099c58731c86be53325ba8c96"}},{"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":"c7496388cad6acb3bcaa2a366f8ea6b3cce0c98f67d8da2b891dcb5f37b1a164"},"properties":{"commitSha":"5dcbbeacda0edbc499080a58a0b7f2819091cc28"}},{"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":"b92cb1db1d9a4523b6bece584a96ef6655cad1765232a0fe62cbf4d3de55ed8c"},"properties":{"commitSha":"c258ab531b7749a99f5e312f4f9c2350a6b84794"}},{"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":"46e7795ea06372d40e0fd8aaf2ba2cfeb164c534f4ec82ffc0df835a41e7fb29"},"properties":{"commitSha":"35ba2556c7d89bbe50f9cad8d01798737da9bfe8"}},{"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":"7ac7264f3e416160b2c88425d6f6d109ac9e49d50e0d6519924ed38f6817696a"},"properties":{"commitSha":"b789d83295224de2eb122db332c2c7be0a0b54d0"}},{"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":"d5553acb43053f297c5a51b234c57c090d7260f35934e2d4bbdb54d698748b9a"},"properties":{"commitSha":"fc618ad07ab1f667b745f93918a8aed73dfe677c"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"89cf4f79034866039b1a71a536d9f28851b5b412f4cd42ad87bf1bb3e2eb2359"},"properties":{"commitSha":"fc618ad07ab1f667b745f93918a8aed73dfe677c"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d87092bb0097148762f18f5db3961f76fb29d8ac78375379cc65a99138a41738"},"properties":{"commitSha":"fc618ad07ab1f667b745f93918a8aed73dfe677c"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"0ec1f5fd67a8f7264bc095c6fb5889f92132186181c9788081e9329433c89bc3"},"properties":{"commitSha":"f2d12878709070cb4b2e21aba4703bb916187d53"}},{"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":"48222149d58dd02ebf17c5de4454cdf53b99c826f8610c0c8eb71b10c165ec9b"},"properties":{"commitSha":"fc618ad07ab1f667b745f93918a8aed73dfe677c"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_player.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7053648e06912d40ce9ca6b90c5a2053eabace6036dc713e8945cdbf7a46b649"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_recorder.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b10306468e58b083066584c6b3847a369f0817657b0290fbd6bf51f2448ef5"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 11 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: lib/public/flutter_sound_helper.dart, android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java, android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorder.java, td/codec.dart, android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayerManager.java, lib/public/flutter_sound.dart, td/taudio_source.dart, android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorderManager.java (and 3 more) (13 orphaned of 13 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 13 of the 25 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_helper.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"619aeb933ffc0c2636039876e6689787a51562dcbb520a8c519a57c5ba4231dd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fb24e8793a891d126157c2e0cb9163dd77fec9025af2f4f411a134b6dfe716"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80287f61f0ef00074133f0e0f22aaade4e84bc103419d1c6686aee694f1764f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"td/codec.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1e3b15d6839b2b17846ac1e2a5115aa1b309bdbb1d8ef52cd05e3c2507f296"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundPlayerManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"168e8ef60ad24ce45f0c205832bc638ceb393c6cf484a70dcbbd992a82cd9ada"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c99378e71eb3ba44da029b87e5534eedea048aaa5ee1bf051b4dc4e2b15da5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"td/taudio_source.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8815b9abc2e6cfc8aaf62957c0a3cc151cb5ba9be90487b91148a9bd9d9110"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundRecorderManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"841b4fbc2ad39804d9f5a632e7694c0f77f44b7af295708de50e119ce4c12156"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"td/taudio_buffer.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c9a1ffab49e6893748438dbaf9729f452d97d7cbf74d1a8890eb2fc08831c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSoundSession.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f5235e25fcced014056701af9ace8038dd6c1d8c35cb685f83fc58a624ce3c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/java/xyz/canardoux/fluttersound/FlutterSound.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0cb07b6b6bc3524ad0699b82101ede902c67e1fc2bafb068143c9b9ddcfa01"}},{"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":"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 the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060android/build.gradle\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/build.gradle"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1ffcef8db8685591eec89eb5625b87895e42392e50ac88559f2e50483200aa"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060waveToPCM\u0060 is async and calls readAsBytesSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_helper.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b5e623712830f0f6867b0761f69fe855128d8ad3d55f14ba2e9b50331cd54e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060pcmToWave\u0060 is async and calls readAsBytesSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/public/flutter_sound_helper.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf6ee6527472384c46a7809893c5214702b7892a65f4a43dfa124892cab8327"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override null safety: ~21.3 \u0060!\u0060 null assertions per 1k Dart product lines \u2014 107 across the 5015 line(s) of the 14 Dart file(s) read (generated, test and example code not counted; a file opted out with a \u0060// @dart=\u0060 comment below 2.12 counts once). Densest: lib/public/flutter_sound_recorder.dart (51), lib/public/flutter_sound_player.dart (50), td/taudio_source.dart (3). Each one tells the analyzer to trust the author about null and becomes a \u0060Null check operator used on a null value\u0060 the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"739a6ba910818bd17cd25bf02e82a025de9a49819c743d2340aeab96558fda89"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":10,"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."]}]}