{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXR1","name":"Runtime accessibility (rendered)","shortDescription":{"text":"Runtime accessibility (rendered)"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"id":"DM1","name":"Aggregate boundaries","shortDescription":{"text":"Aggregate boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/DM1"},{"id":"DM10","name":"One transaction, one aggregate","shortDescription":{"text":"One transaction, one aggregate"},"helpUri":"https://codehealth.canine.dev/dimensions/DM10"},{"id":"DM11","name":"Constructible invalid state","shortDescription":{"text":"Constructible invalid state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM11"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"DM8","name":"Value-object opportunities","shortDescription":{"text":"Value-object opportunities"},"helpUri":"https://codehealth.canine.dev/dimensions/DM8"},{"id":"DM9","name":"Scattered domain decisions","shortDescription":{"text":"Scattered domain decisions"},"helpUri":"https://codehealth.canine.dev/dimensions/DM9"},{"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":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF2","name":"Allocation hygiene","shortDescription":{"text":"Allocation hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF2"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"MainActivity.initNavigation (cyclomatic 48): MainActivity.initNavigation has cyclomatic complexity 48 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/MainActivity.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"76520f662ae826a4e0789ad6f2f23cf5b1885184f2c14b44ae50a5f35e0f92dd"}},{"ruleId":"D1","level":"warning","message":{"text":"Secrets.apply (cyclomatic 37): Secrets.apply has cyclomatic complexity 37 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afb9ed377792a41ee72d4cda0db3b9bc21322205c3e773cfbbe22b91c3b29ea"}},{"ruleId":"D1","level":"warning","message":{"text":"Devices.routes (cyclomatic 35): Devices.routes has cyclomatic complexity 35 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/routes/Devices.scala"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d84b1972bed151b2b302d81211ff21e3d5278338ac800c7a3833761f24fab09"}},{"ruleId":"D1","level":"warning","message":{"text":"_ClientBootstrapFormState.build (cyclomatic 35): _ClientBootstrapFormState.build has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f04150c3ddfd5616fab29b2c32d21f5237a8b919ba435cbd94599f3afd77ee"}},{"ruleId":"D1","level":"warning","message":{"text":"Users.routes (cyclomatic 31): Users.routes has cyclomatic complexity 31 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/routes/Users.scala"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3967068f4a92c60b2ad148bb67d569301f63e85b7af311ab3f8934f337ea56fc"}},{"ruleId":"D1","level":"warning","message":{"text":"_ClientCredentialsResetFormState.build (cyclomatic 31): _ClientCredentialsResetFormState.build has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca99e57bd10817dee2afd4e579c9979f91ac5192b9753112a815b472707ca04"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsFragment.onCreatePreferences (cyclomatic 28): SettingsFragment.onCreatePreferences has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/SettingsFragment.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cf285651588234e87680ae5f39c1d5fe989122560159d24be00b9833554f22"}},{"ruleId":"D1","level":"warning","message":{"text":"_ClientReEncryptDeviceSecretFormState.build (cyclomatic 25): _ClientReEncryptDeviceSecretFormState.build has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a5a86403691b49829a7c01708167df858802706fcf7109c6ecdaf6856d2ff6"}},{"ruleId":"D1","level":"warning","message":{"text":"Operations.routes (cyclomatic 24): Operations.routes has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/api/http/routes/Operations.scala"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb98e32f0d039e7c59b9fcc8e04c734d0e4e995cca4dd77305cbac1885f1da2"}},{"ruleId":"D1","level":"warning","message":{"text":"TrackingHandler.handleMessage (cyclomatic 24): TrackingHandler.handleMessage has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/tracking/DefaultBackupTracker.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b520e61514523d912f32870f4a019778292ca6e5d4bf213cf293c0265f625647"}},{"ruleId":"D1","level":"warning","message":{"text":"Secrets.apply (cyclomatic 23): Secrets.apply has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37335877b2286916c2dfffb3c8b1c55fed1ec6046394ddfb58d66995f3ad824"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultOperationScheduler.scheduler (cyclomatic 22): DefaultOperationScheduler.scheduler has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/ops/scheduling/DefaultOperationScheduler.scala"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2770ce322e4bfd7a1dd30bcdd75544305f12a287d2713aea26bbbd571089ff12"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationArguments.parser (cyclomatic 20): ApplicationArguments.parser has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/ApplicationArguments.scala"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e83a8e06692fd6b2ac7720e7e9cd6262d32a45feccb0a022d0e041e6fbb59ac"}},{"ruleId":"D1","level":"warning","message":{"text":"ViaStdIn.retrieveCredentials (cyclomatic 20): ViaStdIn.retrieveCredentials has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/maintenance/init/ViaStdIn.scala"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"637dc9520895fac9132de78f9ff5da8c4d2228e710c54e649c5f9056b642a9c5"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceHandler.handleMessage (cyclomatic 20): ServiceHandler.handleMessage has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c327e50a2ad8ace3c6953d726285297f247c6493a7e939d2d2881234846fbb"}},{"ruleId":"D1","level":"warning","message":{"text":"TrackingHandler.handleMessage (cyclomatic 20): TrackingHandler.handleMessage has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/tracking/DefaultRecoveryTracker.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aba8f6627726b8ea0e7a2416cc69bd3cee02b16eff9545b9c98233dd95ab26f"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultCredentialsProvider.provider (cyclomatic 19): DefaultCredentialsProvider.provider has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"531110bf91678540ee845178a3db8823374d69e66c358f4a947b451d087fe17c"}},{"ruleId":"D1","level":"warning","message":{"text":"Secrets.apply (cyclomatic 19): Secrets.apply has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/Secrets.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80a43b45eadcc8b38b4d68d29189c9e657a7d2431d8689d0ce45d65a5b82dc3"}},{"ruleId":"D1","level":"warning","message":{"text":"_CredentialsFormState.build (cyclomatic 19): _CredentialsFormState.build has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/lib/pages/authorize/credentials_form.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d8d7b81a56df2632bf18cc142eff8777ed37f769864d572e88b0f0dd00d8c2"}},{"ruleId":"D1","level":"warning","message":{"text":"_ClientPushDeviceSecretFormState.build (cyclomatic 18): _ClientPushDeviceSecretFormState.build has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_push_device_secret_form.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f755ad76139836860adc5d6d55d605cfc52287b73db756cb447869c30e89d3"}},{"ruleId":"D1","level":"warning","message":{"text":"OperationDetailsFragment.onCreateView (cyclomatic 17): OperationDetailsFragment.onCreateView has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationDetailsFragment.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ea0754bb5274f1009ada06f88af45bafb22cd3f58e0ec9e568f7e3a41e3db8"}},{"ruleId":"D1","level":"warning","message":{"text":"_ClientPullDeviceSecretFormState.build (cyclomatic 16): _ClientPullDeviceSecretFormState.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_pull_device_secret_form.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe59698f8a170107587e76ffd7cfc7d51b24feb8dae09f7d263b4474aa1cfc0a"}},{"ruleId":"D2","level":"warning","message":{"text":"Secrets.apply (cognitive 277): Secrets.apply has cognitive complexity 277 (threshold 15). Drivers by points: loops 20 (194 pts), match/switch 8 (66 pts), if/else 3 (17 pts) (nesting depth added 246). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c086dcf67963a5a44114323d0b5001e5cbe09afd81739878fbc315e820945c01"}},{"ruleId":"D2","level":"warning","message":{"text":"Secrets.apply (cognitive 201): Secrets.apply has cognitive complexity 201 (threshold 15). Drivers by points: loops 18 (185 pts), match/switch 2 (16 pts) (nesting depth added 181). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f095bd922141add733087218b9bd46541a5cc69309e8e4466b8bd82df4cd45b"}},{"ruleId":"D2","level":"warning","message":{"text":"Secrets.apply (cognitive 138): Secrets.apply has cognitive complexity 138 (threshold 15). Drivers by points: loops 16 (127 pts), match/switch 1 (11 pts) (nesting depth added 121). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/Secrets.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2189eb8b7df44d3cef25392ed476b5746d2bf43d289225509cc8e24f22408de"}},{"ruleId":"D2","level":"warning","message":{"text":"Parameters.process (cognitive 67): Parameters.process has cognitive complexity 67 (threshold 15). Drivers by points: loops 11 (66 pts), match/switch 1 (nesting depth added 55). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/bootstrap/Parameters.scala"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4301dc4bb2e2cdbd83f43b654affeb103b65aed86ae46e725f82b069fbc6d81"}},{"ruleId":"D2","level":"warning","message":{"text":"_ClientBootstrapFormState.build (cognitive 50): _ClientBootstrapFormState.build has cognitive complexity 50 (threshold 15). Drivers by points: if/else 30 (31 pts), ternaries 10 (14 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d68f82a0cad1f984a45ecbbab698afac95eb8d40a2b176f15a7549fef368db"}},{"ruleId":"D2","level":"warning","message":{"text":"Credentials.apply (cognitive 46): Credentials.apply has cognitive complexity 46 (threshold 15). Drivers by points: loops 8 (44 pts), if/else 1, match/switch 1 (nesting depth added 36). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/maintenance/Credentials.scala"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d028736b9225bded9b1c42b0ac261b121d444b6f1967ce2456422a358ccb7de2"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerPersistence.migrate (cognitive 45): ServerPersistence.migrate has cognitive complexity 45 (threshold 15). Drivers by points: loops 9 (45 pts) (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (ServerPersistence.init, ServerPersistence.drop) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/service/ServerPersistence.scala"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d608b589d6bdcd21fc3113dca0066009fb5eebb42447c9d882bd04fe644d66"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerPersistence.init (cognitive 45): ServerPersistence.init has cognitive complexity 45 (threshold 15). Drivers by points: loops 9 (45 pts) (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (ServerPersistence.migrate, ServerPersistence.drop) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/service/ServerPersistence.scala"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"00931ed0b47f27cbc3b909da82a1ec7d9cb7c14ad078c8f4096a4b2ef5c8dafb"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerPersistence.drop (cognitive 45): ServerPersistence.drop has cognitive complexity 45 (threshold 15). Drivers by points: loops 9 (45 pts) (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: 2 other methods here (ServerPersistence.migrate, ServerPersistence.init) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/service/ServerPersistence.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c0387123922deff7c6bda5e596533bde5c72ff26d2d6865352f6c9afa88f91"}},{"ruleId":"D2","level":"warning","message":{"text":"_ClientCredentialsResetFormState.build (cognitive 45): _ClientCredentialsResetFormState.build has cognitive complexity 45 (threshold 15). Drivers by points: if/else 26 (27 pts), ternaries 10 (14 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0cc42f0873e0e2afd2a2e218895d85747861020ddfc755bb322b498e97a2b7"}},{"ruleId":"D2","level":"warning","message":{"text":"ViaStdIn.retrieveCredentials (cognitive 44): ViaStdIn.retrieveCredentials has cognitive complexity 44 (threshold 15). Drivers by points: loops 12 (36 pts), if/else 4, match/switch 4 (nesting depth added 24). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/maintenance/init/ViaStdIn.scala"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f76299e6066820458edcc5aa15d7c4d455988f8828661ad3dbda8614a66fd11"}},{"ruleId":"D2","level":"warning","message":{"text":"Devices.routes (cognitive 41): Devices.routes has cognitive complexity 41 (threshold 15). Drivers by points: loops 6 (15 pts), match/switch 12 (15 pts), if/else 11 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/routes/Devices.scala"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66a766fc0925460cb9d4b090e406fdf5f095f6a07041415756e5ec5d5ab91b5"}},{"ruleId":"D2","level":"warning","message":{"text":"_ClientReEncryptDeviceSecretFormState.build (cognitive 38): _ClientReEncryptDeviceSecretFormState.build has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (21 pts), ternaries 10 (14 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5594d69efcdc79a7ef49c154acb88c04b502fbf653051bba5d5cf27063ef70"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceHandler.handleMessage (cognitive 36): ServiceHandler.handleMessage has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (23 pts), match/switch 6 (13 pts) (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"390fa65f73c3d7596a03b18bd2ef9d484c6bf17f3e57bec7a247941ce5138c37"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.onCreatePreferences (cognitive 35): SettingsFragment.onCreatePreferences has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22 (24 pts), match/switch 6 (11 pts) (nesting depth added 7). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/SettingsFragment.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7082ed1eae8be2388623c18f6615ca702ae9225a5f57c267f78529067f235d"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceBootstrap.execute (cognitive 33): DeviceBootstrap.execute has cognitive complexity 33 (threshold 15). Drivers by points: loops 7 (24 pts), match/switch 4 (9 pts) (nesting depth added 22). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/routes/DeviceBootstrap.scala"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"454baf6fff7bfb061ff4296f4abff6648aa86b3183c4f98969cee055b51afafb"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.initNavigation (cognitive 29): MainActivity.initNavigation has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (15 pts), match/switch 7 (10 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/MainActivity.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b716565bc84b970203ef673cd36d8489ae6b4cd2a5ba736f26d7bf49d00b94"}},{"ruleId":"D2","level":"warning","message":{"text":"Operations.routes (cognitive 28): Operations.routes has cognitive complexity 28 (threshold 15). Drivers by points: loops 9 (14 pts), match/switch 7 (11 pts), if/else 3 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/api/http/routes/Operations.scala"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b108fc252b47c2982e6a5c33d85a18752a5f2afc5dfe44b4d1e9b7d3669a1035"}},{"ruleId":"D2","level":"warning","message":{"text":"OperationDetailsFragment.onCreateView (cognitive 27): OperationDetailsFragment.onCreateView has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (19 pts), match/switch 5 (6 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationDetailsFragment.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff9e8901684fe9d48265ed04b0de04ecc8a15a4e2189e807326a7604a8e7386"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultRouter.push (cognitive 25): DefaultRouter.push has cognitive complexity 25 (threshold 15). Drivers by points: loops 2 (9 pts), if/else 4 (8 pts), match/switch 3 (8 pts) (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/stasis/core/routing/DefaultRouter.scala"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b633b6df2d0101d37a98e4d3dd86ba119056e8b4e801dfb3dce8368af085f127"}},{"ruleId":"D2","level":"warning","message":{"text":"_ClientPushDeviceSecretFormState.build (cognitive 25): _ClientPushDeviceSecretFormState.build has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, ternaries 7 (8 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_push_device_secret_form.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c6713d6ecdae13cc1ea535811367537e1a628e9093ad6c03e5773f0fc1346a"}},{"ruleId":"D2","level":"warning","message":{"text":"_ClientAppState.build (cognitive 24): _ClientAppState.build has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (21 pts), error handling 2, boolean chains 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/client_app.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb9f46cb2e1f552ac0032e50b0a8b4c7ff061ad0a9184ca67806549ee3f8582"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultRouter.discard (cognitive 23): DefaultRouter.discard has cognitive complexity 23 (threshold 15). Drivers by points: loops 3 (15 pts), if/else 4 (7 pts), match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/stasis/core/routing/DefaultRouter.scala"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fc179a72eb7e25b6b85098d14234b95721566723415c99e21a3fcd1f4df23a"}},{"ruleId":"D2","level":"warning","message":{"text":"_CredentialsFormState.build (cognitive 23): _CredentialsFormState.build has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 5, ternaries 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/lib/pages/authorize/credentials_form.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"923e65f85d311211db396a930576b3634485685fda1f4a839e6f1a969f8aefed"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginFragment.onCreateView (cognitive 21): LoginFragment.onCreateView has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 4 (8 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/login/LoginFragment.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf7eacdce672f49f9efe1b0ff0472370ac77bbffcd4b9b2841f2afa5511a3f7"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigFactory._loadFromHocon (cognitive 21): ConfigFactory._loadFromHocon has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/config/config.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e97090ddc3e6fb029c46a6e51194fa9e51b740c4f4ff04e85f157df752c7b2c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ClientPullDeviceSecretFormState.build (cognitive 21): _ClientPullDeviceSecretFormState.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, ternaries 7 (8 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_pull_device_secret_form.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e495abaff017c11fd21cfd5de74ee1c84863df8160c32c00151f3072c2a30df4"}},{"ruleId":"D2","level":"warning","message":{"text":"Users.routes (cognitive 20): Users.routes has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 10 (11 pts), if/else 8 (9 pts) (nesting depth added 2). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/routes/Users.scala"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"eede36736a0f1bbf8e501907ebfa8dc84890786467d718a735ef3d74b663e359"}},{"ruleId":"D2","level":"warning","message":{"text":"ItemViewHolder.bind (cognitive 20): ItemViewHolder.bind has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationListItemAdapter.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8977b849779886d87d0b2ccbec5fe1edb5cbf5db7b959ddaebaae196d38e1a0"}},{"ruleId":"D2","level":"warning","message":{"text":"_UpdateUserCredentialsFormState._actionHandler (cognitive 20): _UpdateUserCredentialsFormState._actionHandler has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 2 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/update_user_credentials_form.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"264e0e92c62d37142410c462a308b2f779d18b5f78c410b37fe49d36adf411cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationArguments.parser (cognitive 19): ApplicationArguments.parser has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 19. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/ApplicationArguments.scala"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b0289c83f61f8e790c23d47a10a7cc128b5d5d364250052eb4e977c88168e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ItemViewHolder.bind (cognitive 19): ItemViewHolder.bind has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/schedules/ScheduleListItemAdapter.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"592983fdd13e78bf370d065d12065f8fc8a1a2c70f6d5ffcab59d886308d6abd"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyticsDialogFragment.onCreateView (cognitive 19): AnalyticsDialogFragment.onCreateView has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (18 pts), match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/AnalyticsDialogFragment.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3373b33cd06721e6a5942f2e26be6bd77e68140e45d52206d8a7ce381ac3758f"}},{"ruleId":"D2","level":"warning","message":{"text":"refresh_assets.main (cognitive 19): refresh_assets.main has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (7 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/refresh_assets.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e062413595779cd3ae256f30d7067d718a6f9d8bd6443ca2b292587a703b224a"}},{"ruleId":"D2","level":"warning","message":{"text":"_UpdateUserCredentialsFormState.build (cognitive 19): _UpdateUserCredentialsFormState.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 4, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/update_user_credentials_form.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b0ff403e69ae082b31295f05de78e068c0f63be4fc66cb033fe4494de8f1ec"}},{"ruleId":"D2","level":"warning","message":{"text":"User.routes (cognitive 18): User.routes has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 4 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/api/http/routes/User.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1486c145ddfa1a648f0fab95b01ff1105ae359e8634f7782ebcb200f2d5efc05"}},{"ruleId":"D2","level":"warning","message":{"text":"Certificates.regenerateApiCertificate (cognitive 18): Certificates.regenerateApiCertificate has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (14 pts), match/switch 2 (3 pts), if/else 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/maintenance/Certificates.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f384d161f7a2f37b92103c9b24d87707b6b05ed26ac6ad2e9a33f40ae0fb55f"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyKeyValueStore.asMigration (cognitive 18): LegacyKeyValueStore.asMigration has cognitive complexity 18 (threshold 15). Drivers by points: loops 6 (13 pts), match/switch 1 (3 pts), boolean chains 1, if/else 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2322673a5cd6ab2bf501c10b3f00efc05dbbb478cafd46f66704e63010f2f3d1"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyKeyValueStore.asMigration (cognitive 18): LegacyKeyValueStore.asMigration has cognitive complexity 18 (threshold 15). Drivers by points: loops 6 (13 pts), match/switch 1 (3 pts), boolean chains 1, if/else 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity/src/main/scala/stasis/identity/persistence/internal/LegacyKeyValueStore.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"01dc249fd0475731d2b7960c9a6c5a1dee7ae6ef44acf9132b40130d74c72df7"}},{"ruleId":"D2","level":"warning","message":{"text":"TrackingHandler.handleMessage (cognitive 18): TrackingHandler.handleMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 4 (8 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/tracking/DefaultBackupTracker.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2b0f42a4d3876224d875f5624435f44c083c38a92672b3ab7035353de954c8"}},{"ruleId":"D2","level":"warning","message":{"text":"TrackingHandler.handleMessage (cognitive 18): TrackingHandler.handleMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), match/switch 4 (8 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/tracking/DefaultRecoveryTracker.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f629033ad6319de00c4d6cb69d113184f0403f4badd517d6590d2cb05b3869"}},{"ruleId":"D2","level":"warning","message":{"text":"_CredentialsFormState.build (cognitive 18): _CredentialsFormState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/credentials_form.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"636724f8343b2f40461e9426f366e2e5cf9f7b9c7c76b7f4af27f3da89765b98"}},{"ruleId":"D2","level":"warning","message":{"text":"_OperationDetailsState.build (cognitive 18): _OperationDetailsState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 3 (6 pts), boolean chains 2 (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":"client-ui/lib/pages/components/operation_details.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e34e8a2810b321a844390da9f632fc81312d7dda204f90224dd40c9f503aea2"}},{"ruleId":"D2","level":"warning","message":{"text":"_OperationDetailsState._renderStages (cognitive 18): _OperationDetailsState._renderStages has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 5 (6 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/operation_details.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ae55fe53dd047bb15c1a1578c2c299e6253494f6f46930fc80493b580f63d6"}},{"ruleId":"D2","level":"warning","message":{"text":"_UserLimitsFieldState.build (cognitive 18): _UserLimitsFieldState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/pages/manage/components/forms/user_limits_field.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b93d52f6ce63f90b3047671f03c4a6d163a5029d6e153cda346c51c791a12f1"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultOperationScheduler.scheduler (cognitive 17): DefaultOperationScheduler.scheduler has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (12 pts), loops 2 (5 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/ops/scheduling/DefaultOperationScheduler.scala"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"399f5c4bfb6d52247c5637ec720897ffcef55ce14909e3580b18e0f82cb98c2b"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultRouter.pull (cognitive 17): DefaultRouter.pull has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (13 pts), if/else 3 (4 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/stasis/core/routing/DefaultRouter.scala"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c83c4848ec267d8d79a853c481c01774506d0512c95c3a4109136e887b37d01"}},{"ruleId":"D2","level":"warning","message":{"text":"BootstrapProvideCodeFragment.onCreateView (cognitive 17): BootstrapProvideCodeFragment.onCreateView has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), match/switch 7 (8 pts), boolean chains 1 (nesting depth added 2). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/bootstrap/BootstrapProvideCodeFragment.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ff62479c48d43453274c4fcad01e86f87a39936f4950694c4acadceae272a9"}},{"ruleId":"D2","level":"warning","message":{"text":"api.create_client_api (cognitive 17): api.create_client_api has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 1 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-cli/client_cli/api/__init__.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"657248ad122335f03df4b7e555e1ec57b41c51b08e63d024efadd657a80ad267"}},{"ruleId":"D2","level":"warning","message":{"text":"_LoginState.build (cognitive 17): _LoginState.build has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/login.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0009fd65e401726bf9065e5fc5cfe3a42833dd6ac43ae4c24b6549fd99605bc9"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultServerApiEndpointClient.createDatasetDefinition (cognitive 16): DefaultServerApiEndpointClient.createDatasetDefinition has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 2 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/api/clients/DefaultServerApiEndpointClient.scala"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbcc7edaf94f40e2e61be6afc36e2d6b364faf0d1567aa31c94a277e1b2baa3"}},{"ruleId":"D2","level":"warning","message":{"text":"RefreshTokenConsumption.consumeRefreshToken (cognitive 16): RefreshTokenConsumption.consumeRefreshToken has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (3 pts), match/switch 2 (3 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity/src/main/scala/stasis/identity/api/oauth/directives/RefreshTokenConsumption.scala"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b1ad713c6713e9556ef1b581ed20a16c82e1c9ee6aa1380200ee86fb81e238"}},{"ruleId":"D2","level":"warning","message":{"text":"operations._transform_stages_to_files (cognitive 16): operations._transform_stages_to_files has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-cli/client_cli/render/default/operations.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"688c5bc185b6057b0026c12abaea3707560f65694c1183e43607258530a8ff90"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsFragment.onCreatePreferences: MethodTooLong \u2014 onCreatePreferences runs 442 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 342 over it, 4.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/SettingsFragment.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2414549964671547f7e4a933f7379ed0775d814c100311c3c451fd5d4a37732c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ClientBootstrapFormState.build: MethodTooLong \u2014 build runs 248 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 148 over it, 2.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7993bd8798c793d7191e85f4faa78e22b5e850fd5ab48cecdec96919d6e511e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ClientCredentialsResetFormState.build: MethodTooLong \u2014 build runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"355361ee950af43a0eeb75e09f9970514b3cad4cd7452bd3505f760e7148728e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CredentialsFormState.build: MethodTooLong \u2014 build runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/credentials_form.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"db48203ebf9fea9f26842c582d208cdc1cda2c00ae4c02c4f502620e2f0fb6e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ClientReEncryptDeviceSecretFormState.build: MethodTooLong \u2014 build runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3de6025de1220825c7d9e8d114915b004d8c69886d61f466b7453ab83ff796"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsDialogFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/AnalyticsDialogFragment.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee47cd1c7bd58151a4e22d68c27f2be6a03dd8f4aa5c6213424b2772ae0de386"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MainActivity.initNavigation: MethodTooLong \u2014 initNavigation runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/MainActivity.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bf40707e850d3eda7b9544d7b2871d98b41e0aed67c3383f30db78f2105b08"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ClientPushDeviceSecretFormState.build: MethodTooLong \u2014 build runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_push_device_secret_form.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c76e1bee0b9a80aa480b1da05dfc486950e6ae174a7472c0a3e79fa90fec905"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OperationDetailsFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationDetailsFragment.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f967120c8e989b3a770fefbdd4b151fbf110a4ac896d47e1e850ba5400f5cfa6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatasetDefinitionDetailsFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ca24e8897de7c6bd79aedcb7e6e6f0dc40fb9bd44e5f292737510bc410329f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultApiClient: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/api/default_api_client.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4756ac11a676db394c35c8e2fa4d7500800c278a020cbb85b9c79f3b34f426a0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ClientPullDeviceSecretFormState.build: MethodTooLong \u2014 build runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_pull_device_secret_form.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ca903760f0c32b33f839f592d2e0d49a0f771694cc3d6707d54de673f31324"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ItemViewHolder.bind: MethodTooLong \u2014 bind runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/schedules/ScheduleListItemAdapter.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67c6ba6c74dd3b27958d5d9be9c1b6d38ba29b5a29ef96b2ccde1fc17df4a82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ItemViewHolder.bind: MethodTooLong \u2014 bind runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationListItemAdapter.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a438e342814a37ef38e14355b3b7453de2d64f2a1f30ef62bf4c5aadee18eb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultClientApi: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-cli/client_cli/api/default_client_api.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62963c746a86d821dc0ba7d3df7dec68d718f46013c68d8a0e3d3fcdd5bf595"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Status.build: MethodTooLong \u2014 build runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/status.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf1eaea3025a5959cf8c57ce59b41033d275ff01bd02d4d7244ae2c0912326e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DatasetEntryDetailsFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetEntryDetailsFragment.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1bbcd1759a036ef021c40182560aba1f99a782569822ee8c75917a2c73d40e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SearchState.build: MethodTooLong \u2014 build runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/search.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ad2abf49616be3c65bd3102e0626f3a3224607dec19c0a935ce924177572e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _DevicesState.build: MethodTooLong \u2014 build runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/pages/manage/devices.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b9711e98dd9ec22f5c6a7f03b189fd406c40c3463427f727a1d479c7f2871c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsFragment: ClassTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 114 over it, 1.29\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":"client-android/app/src/main/java/stasis/client_android/activities/fragments/SettingsFragment.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a284b43290c414dc593d0dafa7b57cf2c865d68fde146d3023508737245b7e7a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _UsersState.build: MethodTooLong \u2014 build runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/pages/manage/users.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"38410d4186c88b571768a2ca488b5db58c5c0cc687b9ed5e725874cae4e1b944"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _OperationDetailsState.build: MethodTooLong \u2014 build runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/operation_details.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a3a4af5dad6dc35c1f4830256a9ffa6ed796dc602ea4bf271fef80b826c8cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InactiveClientApi: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"client-cli/client_cli/api/inactive_client_api.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c5d5b7c3117fc5ea4e77acb74ce78e08232ffc7ab74c8db8aa31e087a6caa8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OperationSummary.build: MethodTooLong \u2014 build runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/operation_summary.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c969ca1ff9ded9d4266abb9c9b168a77ea89d13b606625ae18dde93e4cea8280"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Home.build: MethodTooLong \u2014 build runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/pages/default/home.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"76869cfa90b500a1fa9bc84b5b0c1264ccff73c7b44451cf6f40b707100838b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _BackupEntryMetadataState.build: MethodTooLong \u2014 build runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/backup_entry_metadata.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2f28688e9202136fbcd616230c7e4914845bebf6fa168f4045cd8a0542aeec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockApiClient: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. Most of these members implement api.ClientApi (34 of 37 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/mock_api_client.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7af476e15781a0e44bf58e5b69730f8430239a946a7d44ce63dc9af688ca1a1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultOperationScheduler.scheduler: MethodTooLong \u2014 scheduler runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/ops/scheduling/DefaultOperationScheduler.scala"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"595ab5bb94908075cb16d5df76a8a341a32accfa85ef5063fccacb5a76b5b148"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServiceHandler.handleMessage: MethodTooLong \u2014 handleMessage runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"02db2b7b8877c121e3cc7cfd9935bf659d557cae9b414e2375f9a5dbbbbe01db"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultClientApi: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. Most of these members implement api.ClientApi (34 of 36 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/default_client_api.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f836c535231ef01338fcfa8df0d439e5fdf9f8dc4785248c5bb80f58b0b0674"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ItemViewHolder.bind: MethodTooLong \u2014 bind runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/search/SearchResultListItemAdapter.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc3ca2efed0f8c17e20e0c4c9710a32a1b642d92e867f9a9cfcc3714486a3fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fragments/SettingsFragment.kt: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: SettingsFragment (70-831). The bar is 500 significant lines; this is 81 over it, 1.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/SettingsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1250303732969bac73a17629f09c9395eccbc83a47192acaa6ee52d8350d1e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BootstrapProvideSecretFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/bootstrap/BootstrapProvideSecretFragment.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"374f6113dcb5b9ae981009617b773c35ae335c0e996707c72b17fa635fdb2a77"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClientApi: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/api_client.dart"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e40e8f5f280356f67a06971825b07cc95e0b1d3de9ac60f3938e081964232c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BootstrapProvideCodeFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/bootstrap/BootstrapProvideCodeFragment.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"129d60aadc3f1ef5427baf5b98b62296e07a1c263b1228eefe33811675349d2b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RuleTreeEntryContextDialogFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/rules/RuleTreeEntryContextDialogFragment.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c101a3ee319b42374981960fd4724066e94654afb8428082f0b0dfc128ba634"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ItemViewHolder.bind: MethodTooLong \u2014 bind runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetMetadataEntryListItemAdapter.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbdf192fa4172b8e6bd0ee8016f8859b203410b7915926995b814dcb5dea171"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ItemViewHolder.bind: MethodTooLong \u2014 bind runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionListItemAdapter.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"edda83f1d0cd0fab91c23c69887d9678c058af452215b21416f097f396b3ee27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ClientRegenerateApiCertificateFormState.build: MethodTooLong \u2014 build runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ead4b9df2f6f641c2107242207cdc666df8235b7375be150ad1168d4dd7934b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 73 shared lines): client-ui/lib/pages/components/client_bootstrap_form.dart:47-395 | client-ui/lib/pages/components/client_credentials_reset_form.dart:44-352 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:42-270 | client-ui/lib/pages/components/client_push_device_secret_form.dart:43-304 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:43-318 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:39-191 \u2014 These 6 members are variants of one another: a block of 73 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e854e07ec11b902b8046ebe92e89c872c79c24bcda0d7f16ff6d0558656f82ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 45 shared lines): client-ui/lib/pages/components/forms/duration_field.dart:35-84 | client-ui/lib/pages/components/forms/file_size_field.dart:42-91 | server-ui/lib/pages/manage/components/forms/duration_field.dart:35-84 | server-ui/lib/pages/manage/components/forms/file_size_field.dart:42-91 \u2014 These 4 members are variants of one another: a block of 45 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"client-ui/lib/pages/components/forms/duration_field.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9613d74f44497db60fff0af4b1cb37187b47c4986044d27e2d9c8cabd4cd38a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): client-ui/lib/api/default_client_api.dart:236-255 | client-ui/lib/api/default_client_api.dart:257-275 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/default_client_api.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad76041e05581c86dfb98937821a712515960be8c7e9b78bb6bbaad664799e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): client-cli/client_cli/api/__init__.py:17-79 | client-cli/client_cli/api/__init__.py:83-135 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"client-cli/client_cli/api/__init__.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e241cb3388a7531cafa03e50f5e1f3a170b6f0ea59d06daa89f7e49c3d702a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (42 members, 50\u002B identical tokens): client-ui/lib/pages/backup.dart:162-246 | client-ui/lib/pages/backup_entries.dart:26-139 | client-ui/lib/pages/components/dataset_metadata_entity_summary.dart:118-142 | client-ui/lib/pages/recover.dart:31-160 | client-ui/lib/pages/search.dart:32-236 | identity-ui/lib/pages/manage/apis.dart:69-105 | identity-ui/lib/pages/manage/apis.dart:107-143 | identity-ui/lib/pages/manage/clients.dart:112-179 | identity-ui/lib/pages/manage/clients.dart:181-231 | identity-ui/lib/pages/manage/clients.dart:233-272 | identity-ui/lib/pages/manage/clients.dart:274-306 | identity-ui/lib/pages/manage/codes.dart:69-101 | identity-ui/lib/pages/manage/owners.dart:205-253 | identity-ui/lib/pages/manage/owners.dart:322-354 | identity-ui/lib/pages/manage/tokens.dart:71-103 | server-ui/lib/pages/default/home.dart:222-280 | server-ui/lib/pages/default/home.dart:282-317 | server-ui/lib/pages/manage/codes.dart:91-122 | server-ui/lib/pages/manage/commands.dart:145-201 | server-ui/lib/pages/manage/commands.dart:235-275 | server-ui/lib/pages/manage/definitions.dart:130-207 | server-ui/lib/pages/manage/definitions.dart:235-300 | server-ui/lib/pages/manage/definitions.dart:302-332 | server-ui/lib/pages/manage/device_keys.dart:90-120 | server-ui/lib/pages/manage/devices.dart:223-269 | server-ui/lib/pages/manage/devices.dart:271-343 | server-ui/lib/pages/manage/devices.dart:450-490 | server-ui/lib/pages/manage/devices.dart:492-532 | server-ui/lib/pages/manage/devices.dart:534-566 | server-ui/lib/pages/manage/entries.dart:108-135 | server-ui/lib/pages/manage/nodes.dart:99-131 | server-ui/lib/pages/manage/nodes.dart:133-171 | server-ui/lib/pages/manage/nodes.dart:173-205 | server-ui/lib/pages/manage/schedules.dart:113-175 | server-ui/lib/pages/manage/schedules.dart:177-233 | server-ui/lib/pages/manage/schedules.dart:235-267 | server-ui/lib/pages/manage/users.dart:209-270 | server-ui/lib/pages/manage/users.dart:272-310 | server-ui/lib/pages/manage/users.dart:312-350 | server-ui/lib/pages/manage/users.dart:352-391 | server-ui/lib/pages/manage/users.dart:393-430 | server-ui/lib/pages/manage/users.dart:432-464 \u2014 These 42 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 42 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 42 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/backup.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"96eae534b0081296f3f853537156d755461ee451fd627ab2ba36f60a12fbd1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): client-ui/lib/pages/components/client_bootstrap_form.dart:462-471 | client-ui/lib/pages/components/client_credentials_reset_form.dart:410-419 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:327-336 | client-ui/lib/pages/components/client_push_device_secret_form.dart:362-371 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:375-384 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:237-246 | client-ui/lib/pages/components/credentials_form.dart:349-358 | client-ui/lib/pages/components/update_user_credentials_form.dart:226-235 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdde5f50f04f7f1cf9f7ff5f3d6d5a1fd0511179f53894fd8a432560dafa0453"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): client-ui/lib/pages/components/client_bootstrap_form.dart:410-451 | client-ui/lib/pages/components/client_credentials_reset_form.dart:364-399 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:281-316 | client-ui/lib/pages/components/client_push_device_secret_form.dart:316-351 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:329-364 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:199-226 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac00a3bfe27a39120a38b8226167f9b36cad177aeecc38cff2d8af9d47e9ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): client-ui/lib/pages/components/client_bootstrap_form.dart:473-484 | client-ui/lib/pages/components/client_credentials_reset_form.dart:421-432 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:338-349 | client-ui/lib/pages/components/client_push_device_secret_form.dart:373-384 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:386-397 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:248-259 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2ed648542ab304ce2daf2cfae6f9cde96b302727c1d6639392f7a30641e220"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): client-cli/client_cli/cli/maintenance.py:18-52 | client-cli/client_cli/cli/maintenance.py:95-152 | client-cli/client_cli/cli/maintenance.py:176-231 | client-cli/client_cli/cli/maintenance.py:245-295 | client-cli/client_cli/cli/maintenance.py:309-356 \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":"client-cli/client_cli/cli/maintenance.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66045ab02b7b7ff1f1403302203fd50846adffc1ecfac96f5766c1fc3531e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): client-ui/lib/api/app_processes.dart:52-88 | client-ui/lib/api/app_processes.dart:90-132 | client-ui/lib/api/app_processes.dart:134-176 | client-ui/lib/api/app_processes.dart:178-219 | client-ui/lib/api/app_processes.dart:221-262 \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":"client-ui/lib/api/app_processes.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d16581e99ac421a7838a7f44cca42494a27854a51f295e10170befee6275fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): server-ui/lib/pages/manage/definitions.dart:39-128 | server-ui/lib/pages/manage/devices.dart:43-221 | server-ui/lib/pages/manage/nodes.dart:26-97 | server-ui/lib/pages/manage/reservations.dart:23-80 | server-ui/lib/pages/manage/schedules.dart:30-111 \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":"server-ui/lib/pages/manage/definitions.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e537f5639330f0175733bc2be685f2a5fc238cf5f8d2a15400d1ff0c848a8048"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): client/src/main/scala/stasis/client/ops/Metrics.scala:50-65 | client/src/main/scala/stasis/client/ops/Metrics.scala:67-82 | client/src/main/scala/stasis/client/ops/Metrics.scala:94-109 | client/src/main/scala/stasis/client/ops/Metrics.scala:111-126 \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":"client/src/main/scala/stasis/client/ops/Metrics.scala"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"904e392fdbdbc61c886a4464be4f174be5d98333b8195177e5f150feb8f4194b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): client/src/main/scala/stasis/client/service/components/Secrets.scala:37-193 | client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala:36-147 | client/src/main/scala/stasis/client/service/components/maintenance/Credentials.scala:23-82 | client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala:34-245 \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":"client/src/main/scala/stasis/client/service/components/Secrets.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5180512c5a5bfb61512a0facd4efb48243a900164b41e9f1c94e16a3a8216d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:58-89 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:95-126 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:174-206 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:213-245 \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":"client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"953b5f9fa5bb93a8afd5ebd1b7d5917c91d715dcb1c22cd7f5014c5837480e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): identity-ui/deployment/production/build.py:23-33 | identity-ui/deployment/production/stage.py:23-33 | server-ui/deployment/production/build.py:23-33 | server-ui/deployment/production/stage.py:23-33 \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":"identity-ui/deployment/production/build.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1742032a38e8f7123345d9e96ded51bcf4720683ac428ca317356d62efd253"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): client-ui/lib/pages/components/dataset_definition_summary.dart:9-96 | client-ui/lib/pages/components/dataset_entry_summary.dart:7-50 | client-ui/lib/pages/home.dart:170-211 | client-ui/lib/pages/rules.dart:22-142 \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":"client-ui/lib/pages/components/dataset_definition_summary.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1616bb1a6bea9c71f08e0ad55a48065e9c3c5617355e0a7ba71424404a9a45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): client-ui/lib/pages/components/dataset_definition_summary.dart:9-96 | client-ui/lib/pages/components/dataset_entry_summary.dart:7-50 | client-ui/lib/pages/components/operation_summary.dart:10-183 | client-ui/lib/pages/components/schedule_summary.dart:9-80 \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":"client-ui/lib/pages/components/dataset_definition_summary.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52cccc4722a1897c14a6abbfbe9937b23d00628d5a117bfdf9eb1b5d88b24e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): identity-ui/lib/pages/manage/clients.dart:24-110 | identity-ui/lib/pages/manage/codes.dart:20-67 | identity-ui/lib/pages/manage/owners.dart:30-114 | identity-ui/lib/pages/manage/tokens.dart:20-69 \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":"identity-ui/lib/pages/manage/clients.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95efc805ef700b1f95916a29a47c9a77832c434092be06f790d3ff4b8426e5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): server-ui/lib/pages/manage/definitions.dart:39-128 | server-ui/lib/pages/manage/devices.dart:43-221 | server-ui/lib/pages/manage/schedules.dart:30-111 | server-ui/lib/pages/manage/users.dart:34-207 \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":"server-ui/lib/pages/manage/definitions.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c12f35947fc9260ef9a2d29f2336f6cf09d9da3c2221662b42766b869f73e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala:131-182 | identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala:137-188 \u2014 before extracting anything, compare \u0060identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala\u0060 and \u0060identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala:131\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":"identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"83456e546b2917e58b31e1bfa6a0cfdc158697d677972a13a2a62ac160dc971b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala:83-123 | identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala:89-129 \u2014 before extracting anything, compare \u0060identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala\u0060 and \u0060identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cdcd46b63a33b281a1f34c21af162cb2af37d9f522e5f76fbc598d702e4e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): identity/src/main/scala/stasis/identity/api/oauth/RefreshTokenGrant.scala:52-86 | identity/src/main/scala/stasis/identity/api/oauth/ResourceOwnerPasswordCredentialsGrant.scala:54-88 \u2014 before extracting anything, compare \u0060identity/src/main/scala/stasis/identity/api/oauth/RefreshTokenGrant.scala\u0060 and \u0060identity/src/main/scala/stasis/identity/api/oauth/ResourceOwnerPasswordCredentialsGrant.scala\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060identity/src/main/scala/stasis/identity/api/oauth/RefreshTokenGrant.scala:52\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":"identity/src/main/scala/stasis/identity/api/oauth/RefreshTokenGrant.scala"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9c6f1959832f93a5171731029b8188d2009ef983a7eb6b0cb29bbd4904ff76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): server/src/main/scala/stasis/server/api/routes/Devices.scala:612-635 | server/src/main/scala/stasis/server/api/routes/Devices.scala:653-676 \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 \u0060server/src/main/scala/stasis/server/api/routes/Devices.scala:612\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/routes/Devices.scala"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11bbb1e747bfb66642b8f882bc588f7ab32a4ae4fd4237d86e603337ae3fe7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201321 lines \u00D7 4): client/src/main/scala/stasis/client/service/components/Secrets.scala:40-60 | client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala:54-56 | client/src/main/scala/stasis/client/service/components/maintenance/Credentials.scala:28-31 | client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala:39-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/scala/stasis/client/service/components/Secrets.scala:40\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":"client/src/main/scala/stasis/client/service/components/Secrets.scala"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3328ed11707bfb9613f48778bcbe4a918d6e6447e16383504b0cc813984658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): server/src/main/scala/stasis/server/api/routes/Users.scala:140-160 | server/src/main/scala/stasis/server/api/routes/Users.scala:257-277 \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 \u0060server/src/main/scala/stasis/server/api/routes/Users.scala:140\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":"server/src/main/scala/stasis/server/api/routes/Users.scala"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"27992d5560eca9b9350eaed51a6fa898ab80c1654a039e973c104d2ac96060e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): server/src/main/scala/stasis/server/api/routes/Users.scala:139-158 | server/src/main/scala/stasis/server/api/routes/Users.scala:193-212 | server/src/main/scala/stasis/server/api/routes/Users.scala:256-275 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server/src/main/scala/stasis/server/api/routes/Users.scala:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060server/src/main/scala/stasis/server/api/routes/Users.scala:214\u0060 calls \u0060onSuccess\u0060 and \u0060server/src/main/scala/stasis/server/api/routes/Users.scala:159\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":"server/src/main/scala/stasis/server/api/routes/Users.scala"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"af107ebec72d7b7d2dacbe3090cfd0ac0852bd15d442d23321d28b2849d19d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): client/src/main/scala/stasis/client/api/http/routes/User.scala:50-68 | client/src/main/scala/stasis/client/api/http/routes/User.scala:78-97 \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 \u0060client/src/main/scala/stasis/client/api/http/routes/User.scala:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/api/http/routes/User.scala"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22b8127b822578ab051a81c6cab191b3c00e1735900243e1d45038c3898a2f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala:111-128 | client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala:148-163 \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 \u0060client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf3fd7f2d6211b5e732a1120435b54ae8a2774a9f080c69fa9bb67aeac0172c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): server/src/main/scala/stasis/server/api/routes/Users.scala:315-332 | server/src/main/scala/stasis/server/api/routes/Users.scala:377-394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server/src/main/scala/stasis/server/api/routes/Users.scala:315\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060server/src/main/scala/stasis/server/api/routes/Users.scala:397\u0060 calls \u0060warnN\u0060, \u0060successful\u0060, \u0060complete\u0060 and \u0060server/src/main/scala/stasis/server/api/routes/Users.scala:333\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":"server/src/main/scala/stasis/server/api/routes/Users.scala"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b307ae9d64c1c57588664f47cef8a98166d1cf7245a095e9d983a72ffb0735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): server/src/main/scala/stasis/server/api/ApiEndpoint.scala:122-138 | server/src/main/scala/stasis/server/api/BootstrapEndpoint.scala:97-113 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/ApiEndpoint.scala"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1090b0d4bb59da4db2306ab4a4d5b926d2e92ae3ce857cd6a8f2d9a72b670ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): client/src/main/scala/stasis/client/ops/backup/Backup.scala:187-202 | client/src/main/scala/stasis/client/ops/recovery/Recovery.scala:221-236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/ops/backup/Backup.scala"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ea407af44a1d8c0cb3757ffbb4fb45a9ab012a1a68c6dd7688f78533894b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): client/src/main/scala/stasis/client/ops/Metrics.scala:51-65 | client/src/main/scala/stasis/client/ops/Metrics.scala:68-82 | client/src/main/scala/stasis/client/ops/Metrics.scala:95-109 | client/src/main/scala/stasis/client/ops/Metrics.scala:112-126 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/ops/Metrics.scala"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c5be0b3724d866d60167360a8ef2398b62fbe9627537d4b3373e3e3ac785d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala:47-61 | identity/src/main/scala/stasis/identity/persistence/internal/LegacyKeyValueStore.scala:47-61 \u2014 before extracting anything, compare \u0060core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala\u0060 and \u0060identity/src/main/scala/stasis/identity/persistence/internal/LegacyKeyValueStore.scala\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"761136efe692f1e4b69bc484ec6dcffc32e2ca8a0f1c083addca895c7362ba6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client/src/main/scala/stasis/client/api/clients/DefaultServerApiEndpointClient.scala:89-102 | client/src/main/scala/stasis/client/api/clients/DefaultServerApiEndpointClient.scala:322-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/api/clients/DefaultServerApiEndpointClient.scala"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c6ed348a55c0b12e4aeb332718020444025004581d3fccfc88e37e2e562e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:191-204 | client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:214-227 \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 \u0060client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"51508ec709e278411799d27eb1a9f36a38443cff006f54dedefca52ad8309b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client/src/main/scala/stasis/client/service/components/maintenance/init/ViaStdIn.scala:54-67 | client/src/main/scala/stasis/client/service/components/maintenance/init/ViaStdIn.scala:70-83 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/components/maintenance/init/ViaStdIn.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"794d4ab508a2db0b59a1d4476aed1a1022daf5cd6dc49c452e64fb448d28c6f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:195-207 | client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:249-261 \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 \u0060client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:195\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fa86a6a6a9585f9bb2b5972cd8e0d83a7b0b1bbfbd3856ffef7ef24d14fb5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): server/src/main/scala/stasis/server/api/routes/DatasetDefinitions.scala:60-71 | server/src/main/scala/stasis/server/api/routes/DatasetDefinitions.scala:152-164 \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 \u0060server/src/main/scala/stasis/server/api/routes/DatasetDefinitions.scala:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/routes/DatasetDefinitions.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"533a115735fbbfad18b062f8efb73e0a9c081b26e861f1f565c83e213022fd34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): client/src/main/scala/stasis/client/service/components/Secrets.scala:44-55 | client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala:66-76 | client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala:43-54 \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. 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":"client/src/main/scala/stasis/client/service/components/Secrets.scala"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b42d761e942ed4d18d6ebb1ed955d48b200f145824cbe5b9fdd497d25843081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): client/src/main/scala/stasis/client/service/components/Secrets.scala:84-95 | client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala:78-89 | client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala:92-103 \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 \u0060client/src/main/scala/stasis/client/service/components/Secrets.scala:84\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":"client/src/main/scala/stasis/client/service/components/Secrets.scala"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bff93bbe64a2aa0d6d9e109f87a78b8c8b429b0a27035589c8cb5a2049c605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client/src/main/scala/stasis/client/api/http/routes/Operations.scala:99-110 | client/src/main/scala/stasis/client/api/http/routes/Operations.scala:136-147 \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 \u0060client/src/main/scala/stasis/client/api/http/routes/Operations.scala:99\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/api/http/routes/Operations.scala"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda98e736e83933001a6402226ce3c89a3fb9c861b5e5b02766e794ea9682fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201312 lines \u00D7 3): identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala:69-80 | identity/src/main/scala/stasis/identity/api/oauth/ImplicitGrant.scala:51-54 | identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala:73-83 \u2014 before extracting anything, compare \u0060identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala\u0060 and \u0060identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala:69\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":"identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d0fdfa370855f721a9da15062e12e1c82855ca91d774d7a403d71b78c61b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): server/src/main/scala/stasis/server/api/routes/Analytics.scala:52-63 | server/src/main/scala/stasis/server/api/routes/DatasetEntries.scala:45-56 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server/src/main/scala/stasis/server/api/routes/Analytics.scala:52\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/routes/Analytics.scala"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bd1e1eb0ca13ad0656ef7074b9001badd6049d964864e41b823bff34f1034f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:195-205 | client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:218-228 | client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:249-259 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala:195\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":"client/src/main/scala/stasis/client/security/DefaultCredentialsProvider.scala"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e9a3354b77eddfd8265efb681c04d8f2c1596fd6a7d6045e6162f40f3a434d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client/src/main/scala/stasis/client/service/components/Secrets.scala:72-82 | client/src/main/scala/stasis/client/service/components/maintenance/Credentials.scala:34-44 \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":"client/src/main/scala/stasis/client/service/components/Secrets.scala"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b8266f114c0d285bdee488b90daf9ed04d7c32bccabeb98d31fe08526a1bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): server/src/main/scala/stasis/server/api/routes/Devices.scala:95-105 | server/src/main/scala/stasis/server/api/routes/Devices.scala:270-280 \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 \u0060server/src/main/scala/stasis/server/api/routes/Devices.scala:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/scala/stasis/server/api/routes/Devices.scala"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5987731d3a4e41e59fc7f3afdc46a7cbe0f37fe5ba96cfb1244115e6522ae0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): server/src/main/scala/stasis/server/api/routes/Schedules.scala:69-79 | server/src/main/scala/stasis/server/api/routes/Schedules.scala:87-96 \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 \u0060server/src/main/scala/stasis/server/api/routes/Schedules.scala:69\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060server/src/main/scala/stasis/server/api/routes/Schedules.scala:84\u0060 calls \u0060concat\u0060 and \u0060server/src/main/scala/stasis/server/api/routes/Schedules.scala:66\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":"server/src/main/scala/stasis/server/api/routes/Schedules.scala"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd47dedc8db2d842f15c20189352e641754e60161c5ffa17aeee1e13ee691fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala:139-148 | client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala:172-181 \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 \u0060client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala:139\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":"client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa2bd56ae56e83df3523ef7807d9b2c55ad5fbc2b3ff16c0aefad8a0508bef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client/src/main/scala/stasis/client/service/components/bootstrap/Base.scala:54-63 | client/src/main/scala/stasis/client/service/components/maintenance/Base.scala:65-74 \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":"client/src/main/scala/stasis/client/service/components/bootstrap/Base.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f098e89d6813acffdf927a7807d830e0123684ce9a00c11abd4bce27cfb4784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): client/src/main/scala/stasis/client/service/ApplicationArguments.scala:304-312 | client/src/main/scala/stasis/client/service/ApplicationArguments.scala:353-361 | client/src/main/scala/stasis/client/service/ApplicationArguments.scala:387-395 | client/src/main/scala/stasis/client/service/ApplicationArguments.scala:421-429 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/scala/stasis/client/service/ApplicationArguments.scala:304\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/ApplicationArguments.scala"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c40110eb91d8fd6a91d3b06e58c8b35661fd412989abb34a03091a3d6431004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client/src/main/scala/stasis/client/service/ApplicationArguments.scala:343-351 | client/src/main/scala/stasis/client/service/ApplicationArguments.scala:377-385 | client/src/main/scala/stasis/client/service/ApplicationArguments.scala:411-419 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/scala/stasis/client/service/ApplicationArguments.scala:343\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/ApplicationArguments.scala"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7336bb48a840a7dd435b1738d90111d242f5f70f3a13bf11c2727bb55ba28e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client/src/main/scala/stasis/client/collection/rules/internal/FilesWalker.scala:34-42 | client/src/main/scala/stasis/client/collection/rules/internal/FilesWalker.scala:60-68 \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 \u0060client/src/main/scala/stasis/client/collection/rules/internal/FilesWalker.scala:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/collection/rules/internal/FilesWalker.scala"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a4c6c4d93b2d95215fc69173fda016009d9e4c9204f57fc228835767e1cdf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client/src/main/scala/stasis/client/encryption/secrets/UserHashedEncryptionPassword.scala:15-23 | client/src/main/scala/stasis/client/encryption/secrets/UserHashedEncryptionPassword.scala:30-38 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/encryption/secrets/UserHashedEncryptionPassword.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"259fea50e1bac7cc5d6fc3329df229eda4e874f7f44e100f8f86482e204b4fed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client/src/main/scala/stasis/client/service/components/Tracking.scala:45-53 | client/src/main/scala/stasis/client/service/components/Tracking.scala:58-66 \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 \u0060client/src/main/scala/stasis/client/service/components/Tracking.scala:45\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":"client/src/main/scala/stasis/client/service/components/Tracking.scala"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2471e4059bb1d42e6bac6d205409f76275abae62d5ccbd47b5ed414a0984ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala:104-112 | client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala:121-129 \u2014 \u0060client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala\u0060 and \u0060client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala\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 5 separate duplicated blocks between them, totalling at least 62 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 \u0060client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala:104\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":"client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a485af981cd05a4bcdf4c90ed348f0cfe6af7043bda5cc6b010f9e1c1d843f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala:37-45 | identity/src/main/scala/stasis/identity/persistence/internal/LegacyKeyValueStore.scala:37-45 \u2014 before extracting anything, compare \u0060core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala\u0060 and \u0060identity/src/main/scala/stasis/identity/persistence/internal/LegacyKeyValueStore.scala\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala:37\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":"core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"88801b3cc459b88729b2467e7185d77068b78bc3c658ec8c430255501a696261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): server/src/main/scala/stasis/server/service/components/AuthenticatorsComponentLoader.scala:165-172 | server/src/main/scala/stasis/server/service/components/AuthenticatorsComponentLoader.scala:175-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server/src/main/scala/stasis/server/service/components/AuthenticatorsComponentLoader.scala:175\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"server/src/main/scala/stasis/server/service/components/AuthenticatorsComponentLoader.scala"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab434e2228f588863878cbe9af5ab0b4e02e1abf5898bd34612a77caff6ff29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): client/src/main/scala/stasis/client/service/components/ApiClients.scala:46-53 | client/src/main/scala/stasis/client/service/components/ApiClients.scala:66-73 | client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala:109-115 | client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala:126-133 \u2014 \u0060client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala\u0060 and \u0060client/src/main/scala/stasis/client/service/components/maintenance/Secrets.scala\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 5 separate duplicated blocks between them, totalling at least 62 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 \u0060client/src/main/scala/stasis/client/service/components/ApiClients.scala:46\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060client/src/main/scala/stasis/client/service/components/ApiClients.scala:45\u0060 calls \u0060getInt\u0060 and \u0060client/src/main/scala/stasis/client/service/components/bootstrap/Secrets.scala:108\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":"client/src/main/scala/stasis/client/service/components/ApiClients.scala"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"407066eb194b0682529703e0df68be7d8222f5f333605be6ba20be787f156951"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): client/src/main/scala/stasis/client/api/clients/DefaultServerBootstrapEndpointClient.scala:86-93 | core/src/main/scala/stasis/core/discovery/http/HttpServiceDiscoveryClient.scala:94-100 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/scala/stasis/client/api/clients/DefaultServerBootstrapEndpointClient.scala:86\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":"client/src/main/scala/stasis/client/api/clients/DefaultServerBootstrapEndpointClient.scala"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0300d9dd253fc59f3fe3b4d020450708901b56db4e7ddf908f3eb0b4109dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client/src/main/scala/stasis/client/tracking/trackers/DefaultBackupTracker.scala:327-334 | client/src/main/scala/stasis/client/tracking/trackers/DefaultRecoveryTracker.scala:230-237 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/scala/stasis/client/tracking/trackers/DefaultBackupTracker.scala:327\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":"client/src/main/scala/stasis/client/tracking/trackers/DefaultBackupTracker.scala"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"96aa97c3bb42cefd5fceeabeb9c076260df8508983d6902c3001b5e0779d2658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): identity/src/main/scala/stasis/identity/api/manage/Owners.scala:108-115 | identity/src/main/scala/stasis/identity/api/manage/Owners.scala:153-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060identity/src/main/scala/stasis/identity/api/manage/Owners.scala:108\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":"identity/src/main/scala/stasis/identity/api/manage/Owners.scala"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef1b25c8d3c184894cc93e84df39b1dcc7ac0a3c6381a933c14a042ba2d490a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client/src/main/scala/stasis/client/service/ApplicationArguments.scala:346-352 | client/src/main/scala/stasis/client/service/ApplicationArguments.scala:356-362 \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 \u0060client/src/main/scala/stasis/client/service/ApplicationArguments.scala:346\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/ApplicationArguments.scala"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"956a7c1a3e37175613af0dcb427b70b02b6654c45c38b00d170c2f560eb55c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client/src/main/scala/stasis/client/service/ApplicationArguments.scala:380-386 | client/src/main/scala/stasis/client/service/ApplicationArguments.scala:390-396 \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 \u0060client/src/main/scala/stasis/client/service/ApplicationArguments.scala:380\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/ApplicationArguments.scala"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e93eeaef8d767e6332307eb7ec28e7debe31282202199dd5d0ae1bc5b7fd494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client/src/main/scala/stasis/client/service/ApplicationArguments.scala:414-420 | client/src/main/scala/stasis/client/service/ApplicationArguments.scala:424-430 \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 \u0060client/src/main/scala/stasis/client/service/ApplicationArguments.scala:414\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/service/ApplicationArguments.scala"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8199d19275540bfe8ae210037aec289df30ca2c63588bf3687f4d930a94a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala:64-68 | identity/src/main/scala/stasis/identity/api/oauth/ImplicitGrant.scala:46-50 | identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala:68-72 \u2014 before extracting anything, compare \u0060identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala\u0060 and \u0060identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala:64\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":"identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52cac8ff533d200e064437f7fae652747319bb25c83582f3193929f9bcd68fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): server/src/main/scala/stasis/server/api/routes/Devices.scala:606-610 | server/src/main/scala/stasis/server/api/routes/Devices.scala:647-651 \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 \u0060server/src/main/scala/stasis/server/api/routes/Devices.scala:606\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":"server/src/main/scala/stasis/server/api/routes/Devices.scala"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"f918ee367a6c64cc2bd38f625eb3044ee019679b2ab798a6b3aec3192472f4e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): server/src/main/scala/stasis/server/persistence/datasets/DatasetDefinitionStore.scala:66-94 | server/src/main/scala/stasis/server/persistence/datasets/DatasetEntryStore.scala:88-116 \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":"server/src/main/scala/stasis/server/persistence/datasets/DatasetDefinitionStore.scala"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b484622cc6fd6cd1609d6591d61074c79541e738426e2eaaad89399688054e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client/src/main/scala/stasis/client/model/DatasetMetadata.scala:192-196 | client/src/main/scala/stasis/client/model/FilesystemMetadata.scala:162-166 \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":"client/src/main/scala/stasis/client/model/DatasetMetadata.scala"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"3719a46b15e5cc0a03d45bcec4d6787d615e677db914a81b8be78636f16472ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala:212-218 | client/src/main/scala/stasis/client/ops/monitoring/DefaultServerMonitor.scala:107-113 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala:212\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/ops/commands/DefaultCommandProcessor.scala"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07e15b76eeae1d9bc8ee0c314f6681c9b26ceb65b5fb2c50439d9cc9cef9693"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): core/src/main/scala/stasis/core/persistence/backends/file/container/ops/ContainerLogOps.scala:50-59 | core/src/main/scala/stasis/core/persistence/backends/file/container/ops/ContainerOps.scala:58-67 \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":"core/src/main/scala/stasis/core/persistence/backends/file/container/ops/ContainerLogOps.scala"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfa2de38e1d1416502cdf1484098216d524c94a7c720a2155f264ad8b68a639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala:231-238 | identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala:242-249 \u2014 before extracting anything, compare \u0060identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala\u0060 and \u0060identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 118 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":"identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ae32079a7e4e41097bb0f8f4d4846bda8a44374a40e5f92922e41d0763e7bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): identity/src/main/scala/stasis/identity/service/Service.scala:291-295 | server/src/main/scala/stasis/server/service/Service.scala:302-306 \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":"identity/src/main/scala/stasis/identity/service/Service.scala"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"be56e38562a5d8c35c13d0abca0f498f42c156c9ad15e3f2af5353d3b1ca9f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): identity/src/main/scala/stasis/identity/service/Service.scala:321-325 | server/src/main/scala/stasis/server/service/Service.scala:341-345 \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":"identity/src/main/scala/stasis/identity/service/Service.scala"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b4c8fc2534e4f4b6105314e3f0a6917c671cf8080898ea80edde423f8b0c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): identity/src/main/scala/stasis/identity/service/Service.scala:386-390 | server/src/main/scala/stasis/server/service/Service.scala:352-356 \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":"identity/src/main/scala/stasis/identity/service/Service.scala"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3887d9a2902bb20961ddc6055722c03d6be7a0332182e9511b2c468376748615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70\u201372 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/tracking/DefaultBackupTracker.kt:240-309 | client-android/app/src/main/java/stasis/client_android/tracking/DefaultRecoveryTracker.kt:229-300 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-android/app/src/main/java/stasis/client_android/tracking/DefaultBackupTracker.kt:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/tracking/DefaultBackupTracker.kt"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcc61a61233352df4ede877cfec630feda003405e21d1de6b48c3bdec783168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:160-191 | client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetEntryDetailsFragment.kt:87-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:160\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":"client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f59dc6100df6befdddf4613eaaff2886a968fa502379e3c3ac7159ac8b4783b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:177-200 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:216-239 \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 \u0060client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:177\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f84007f62911de175d86bd27ee732f1cda7eae99f829e936533d2e4ad6c4e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 3): client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:257-277 | client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationDetailsFragment.kt:124-145 | client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationListItemAdapter.kt:115-135 \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 \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:257\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4d4fd4f29931f224d9e4167cb0a0d9975aaea8f4a58dac413d8e1b6e007bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:62-83 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:99-120 \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 \u0060client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:62\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0a397ceb51a063a9649d89b1e5d48cccd5eb5c376a4acace3c54bbd83c5941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationDetailsFragment.kt:91-110 | client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationListItemAdapter.kt:69-88 \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":"client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationDetailsFragment.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cee4e18d197130e2b1e8cad6339abfe1916a8b857d263eac2d91f7d0faa7d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:71-89 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:108-126 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:188-206 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:227-245 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt:71\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":"client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad5c1165676e1919e75e47d6c3fbff3a1eb7d232812baddfe68929e67749e00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:163-180 | client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetEntryDetailsFragment.kt:90-107 | client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetEntryListItemAdapter.kt:59-76 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18fa5dd69a063f506a9ccb067641db0c589d18f214b42ab3208122410460b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:183-200 | client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetEntryListItemAdapter.kt:91-108 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetEntryListItemAdapter.kt:88\u0060 calls \u0060setSourceTransitionName\u0060 and \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:180\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c30aac0b7d80a6d889306f4a29c83c5be53cfc4fd1f80739221a32c35575dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/backup/Backup.kt:56-72 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/recovery/Recovery.kt:54-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/backup/Backup.kt:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/backup/Backup.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"116b035a9857be17f8b096f8af9fac97dca2b83b6a3fb27ba3e46ab063e7c47b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt:128-143 | client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt:266-281 \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 \u0060client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt:128\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":"client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"484527952e5e4a6e4f90e4bafad2d124782451afb25f092a94382e6a962c9886"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/backup/stages/EntityProcessing.kt:68-83 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/recovery/stages/EntityProcessing.kt:73-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/backup/stages/EntityProcessing.kt:68\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":"client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/backup/stages/EntityProcessing.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c35d3dabb2d6c85c50e10d3fbc1d2db04beb80a194ecdeb10616db372cff4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt:128-142 | client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt:166-180 | client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt:266-280 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/scheduling/SchedulerService.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5e7ed7bd57feb58412e27246b37184114e8bd305daf0f2e5d2cabd6c6c68bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:324-336 | client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt:182-194 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt:196\u0060 calls \u0060navigate\u0060, \u0060actionGlobalHomeFragment\u0060 and \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:337\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":"client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78ef55036da46207f5ea0f20adb6b9a0ff7303ad0ae643444cf51a7f735bb58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt:101-114 | client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionListItemAdapter.kt:70-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"257f44842278ee86d0b191e7cb178e245a5222cefc3e94cea19d722c70e456b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt:147-159 | client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionListItemAdapter.kt:115-127 \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":"client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed76b3a230776145552d6e61766795eb7ec7bc87180940a2bcb2304d45a47e8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt:162-174 | client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionListItemAdapter.kt:130-142 \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":"client-android/app/src/main/java/stasis/client_android/activities/fragments/backup/DatasetDefinitionDetailsFragment.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e64cad2833cc02b560ac8fe664e6ac485a1d71c8d8d50947b7d69dde53e8085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:243-254 | client-android/app/src/main/java/stasis/client_android/activities/fragments/operations/OperationDetailsFragment.kt:71-82 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt:243\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/HomeFragment.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"710e31e6b05039419d8cfbf1bec4ce091fb14afc478d4275445b57679274488f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): client-android/app/src/main/java/stasis/client_android/activities/fragments/recover/RecoverFragment.kt:257-267 | client-android/app/src/main/java/stasis/client_android/activities/fragments/schedules/LocalScheduleFormDialogFragment.kt:158-168 | client-android/app/src/main/java/stasis/client_android/activities/fragments/search/SearchFragment.kt:167-177 \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 \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/recover/RecoverFragment.kt:257\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":"client-android/app/src/main/java/stasis/client_android/activities/fragments/recover/RecoverFragment.kt"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01ebeba867dafacb43dce1795328aba4fad25d61b85693eaaafecd473ee1daf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/utils/NotificationManagerExtensions.kt:77-85 | client-android/app/src/main/java/stasis/client_android/utils/NotificationManagerExtensions.kt:102-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client-android/app/src/main/java/stasis/client_android/utils/NotificationManagerExtensions.kt:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/utils/NotificationManagerExtensions.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4adcfc3c80ac539d0262a96fb99aeb9fbb903eb63de0b5f36b5a7cd45bbcc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-android/lib/src/main/kotlin/stasis/client_android/lib/encryption/secrets/UserHashedEncryptionPassword.kt:19-23 | client-android/lib/src/main/kotlin/stasis/client_android/lib/encryption/secrets/UserHashedEncryptionPassword.kt:39-43 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/lib/src/main/kotlin/stasis/client_android/lib/encryption/secrets/UserHashedEncryptionPassword.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcf9993a9d9fe9cef677688dce559d48ed3dc233ac0b0e444ff5cfe792b9b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-android/lib/src/main/kotlin/stasis/client_android/lib/encryption/secrets/UserKeyStoreEncryptionSecret.kt:17-29 | client-android/lib/src/main/kotlin/stasis/client_android/lib/encryption/secrets/UserLocalEncryptionSecret.kt:17-29 \u2014 before extracting anything, compare \u0060client-android/lib/src/main/kotlin/stasis/client_android/lib/encryption/secrets/UserKeyStoreEncryptionSecret.kt\u0060 and \u0060client-android/lib/src/main/kotlin/stasis/client_android/lib/encryption/secrets/UserLocalEncryptionSecret.kt\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"client-android/lib/src/main/kotlin/stasis/client_android/lib/encryption/secrets/UserKeyStoreEncryptionSecret.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a9277be1210ccc79fc1bfa8b6ff8aeefe657b658f5f19850c4b204488df6a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): client-android/app/src/main/java/stasis/client_android/persistence/rules/RuleViewModel.kt:34-41 | client-android/app/src/main/java/stasis/client_android/persistence/schedules/ActiveScheduleViewModel.kt:34-41 | client-android/app/src/main/java/stasis/client_android/persistence/schedules/LocalScheduleViewModel.kt:35-42 \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. 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":"client-android/app/src/main/java/stasis/client_android/persistence/rules/RuleViewModel.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba2891b368f817702c58c89532854140de8888f40eef24f6492f2edeeef094e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): client-android/app/src/main/java/stasis/client_android/persistence/rules/RuleViewModel.kt:52-59 | client-android/app/src/main/java/stasis/client_android/persistence/schedules/ActiveScheduleViewModel.kt:43-50 | client-android/app/src/main/java/stasis/client_android/persistence/schedules/LocalScheduleViewModel.kt:44-51 \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. 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":"client-android/app/src/main/java/stasis/client_android/persistence/rules/RuleViewModel.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1f06c5c5474f9c5e772d97c9c8908b4659e18af42503d40d90ce64779e3200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/tracking/DefaultBackupTracker.kt:51-56 | client-android/app/src/main/java/stasis/client_android/tracking/DefaultRecoveryTracker.kt:46-51 \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":"client-android/app/src/main/java/stasis/client_android/tracking/DefaultBackupTracker.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"819bcb5769e7918d709c88c6deffcac4dc45cce7a8ec39ca6142704d42458111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): client-android/lib/src/main/kotlin/stasis/client_android/lib/api/clients/caching/DefaultCacheRefreshHandler.kt:170-175 | client-android/lib/src/main/kotlin/stasis/client_android/lib/discovery/providers/client/ServiceDiscoveryProvider.kt:119-124 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/commands/DefaultCommandProcessor.kt:113-118 | client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/monitoring/DefaultServerMonitor.kt:61-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. 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":"client-android/lib/src/main/kotlin/stasis/client_android/lib/api/clients/caching/DefaultCacheRefreshHandler.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7f374f54a0c1019f0fae81b5e868aa7fbff11c24059bff38fc3447bd83e57f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-android/lib/src/main/kotlin/stasis/client_android/lib/model/DatasetMetadata.kt:169-173 | client-android/lib/src/main/kotlin/stasis/client_android/lib/model/FilesystemMetadata.kt:138-142 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060client-android/lib/src/main/kotlin/stasis/client_android/lib/model/FilesystemMetadata.kt:144\u0060 calls \u0060getDefault\u0060 and \u0060client-android/lib/src/main/kotlin/stasis/client_android/lib/model/DatasetMetadata.kt:174\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":"client-android/lib/src/main/kotlin/stasis/client_android/lib/model/DatasetMetadata.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c958dd3a25214a739bc5551fed1aa0ce041ef39ad894d3867b4108560a7e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-android/app/src/main/java/stasis/client_android/activities/fragments/SettingsFragment.kt:285-297 | client-android/app/src/main/java/stasis/client_android/activities/fragments/SettingsFragment.kt:356-368 \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 \u0060client-android/app/src/main/java/stasis/client_android/activities/fragments/SettingsFragment.kt:285\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/SettingsFragment.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f6ce441d78886c3142f8953f7ca53281d2782e8a072c3d081dc866ae566fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): client-cli/client_cli/cli/maintenance.py:107-135 | client-cli/client_cli/cli/maintenance.py:183-211 | client-cli/client_cli/cli/maintenance.py:247-275 | client-cli/client_cli/cli/maintenance.py:311-339 \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. 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":"client-cli/client_cli/cli/maintenance.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7110888ac83f6ee0030a4c968c5fbaea375b15c300359f43d11682e704cadc00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): deployment/dev/scripts/generate_user_password.py:66-93 | deployment/production/scripts/generate_user_password.py:66-93 \u2014 before extracting anything, compare \u0060deployment/dev/scripts/generate_user_password.py\u0060 and \u0060deployment/production/scripts/generate_user_password.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 92 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":"deployment/dev/scripts/generate_user_password.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7988cf464076be7aa2d84f32e36c7661372af6e8635c620c281f390bdea1a4e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): deployment/dev/scripts/generate_user_password.py:36-62 | deployment/production/scripts/generate_user_password.py:36-62 \u2014 before extracting anything, compare \u0060deployment/dev/scripts/generate_user_password.py\u0060 and \u0060deployment/production/scripts/generate_user_password.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 92 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 \u0060deployment/dev/scripts/generate_user_password.py:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deployment/dev/scripts/generate_user_password.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c0ddf68e6dc6858978e2b0de96799e36738aa629413b61ef66cf4db8b6c9a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): assets/refresh_assets.py:33-57 | assets/refresh_assets.py:61-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/refresh_assets.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84c7605c7bc542dbf9379aa5c7549e08536660bf076fee400fadfe9875d3638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 3): deployment/dev/scripts/generate_device_secret.py:86-110 | deployment/dev/scripts/generate_user_password.py:33-54 | deployment/production/scripts/generate_user_password.py:33-54 \u2014 before extracting anything, compare \u0060deployment/dev/scripts/generate_user_password.py\u0060 and \u0060deployment/production/scripts/generate_user_password.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 92 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 \u0060deployment/dev/scripts/generate_device_secret.py:86\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":"deployment/dev/scripts/generate_device_secret.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c402af1f33602e2103cc412260ed6194a51a4bf4c4547a98678cae10dded1db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): client-cli/client_cli/api/__init__.py:40-63 | client-cli/client_cli/api/__init__.py:100-123 \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 \u0060client-cli/client_cli/api/__init__.py:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-cli/client_cli/api/__init__.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e138c821d0bb2e2f0a812d22940de7a6fc5ab8197711bf62a261fd245897471"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): deployment/dev/scripts/generate_self_signed_cert.py:41-64 | deployment/production/scripts/generate_cert.py:45-68 \u2014 before extracting anything, compare \u0060deployment/dev/scripts/generate_self_signed_cert.py\u0060 and \u0060deployment/production/scripts/generate_cert.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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":"deployment/dev/scripts/generate_self_signed_cert.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7706b8138bdbec04ddf5f0ce26425b3538ad03dd90b79759a99352505c72c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): client-cli/client_cli/api/default_client_api.py:208-230 | client-cli/client_cli/api/default_client_api.py:258-280 \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 \u0060client-cli/client_cli/api/default_client_api.py:208\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. 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":"client-cli/client_cli/api/default_client_api.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff480e77d6c1e6675ae0815b3ac1857c3273a133fac8c5bb6a0ce2c396fc3687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): deployment/dev/scripts/generate_self_signed_cert.py:23-39 | deployment/production/scripts/generate_cert.py:25-41 \u2014 before extracting anything, compare \u0060deployment/dev/scripts/generate_self_signed_cert.py\u0060 and \u0060deployment/production/scripts/generate_cert.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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":"deployment/dev/scripts/generate_self_signed_cert.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"52abdba15a4e11614d7fac0a829a26498d9eac3ff3a2e74cf93f933c7ec49f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): client-cli/client_cli/cli/maintenance.py:37-52 | client-cli/client_cli/cli/maintenance.py:137-152 | client-cli/client_cli/cli/maintenance.py:216-231 | client-cli/client_cli/cli/maintenance.py:280-295 | client-cli/client_cli/cli/maintenance.py:341-356 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060client-cli/client_cli/cli/maintenance.py:155\u0060 calls \u0060group\u0060, \u0060credentials\u0060, \u0060add_command\u0060 and \u0060client-cli/client_cli/cli/maintenance.py:234\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":"client-cli/client_cli/cli/maintenance.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e449cace7e04dd5b7f0c145b3464f7ea3f7894dbadbc5e2e171992e6a22e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): deployment/dev/scripts/generate_device_secret.py:23-34 | deployment/dev/scripts/generate_user_password.py:18-29 | deployment/production/scripts/generate_user_password.py:18-29 \u2014 before extracting anything, compare \u0060deployment/dev/scripts/generate_user_password.py\u0060 and \u0060deployment/production/scripts/generate_user_password.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 92 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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deployment/dev/scripts/generate_device_secret.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9575d89dc7cba09c31d82ee4f24e57acb2957047a8be2aeb80d5b5b2e7a7c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): identity-ui/deployment/production/build.py:23-31 | identity-ui/deployment/production/stage.py:23-31 | server-ui/deployment/production/build.py:23-31 | server-ui/deployment/production/stage.py:23-31 \u2014 before extracting anything, compare \u0060identity-ui/deployment/production/build.py\u0060 and \u0060identity-ui/deployment/production/stage.py\u0060 as WHOLE FILES: 90% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"identity-ui/deployment/production/build.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf47dff7be46b9818043a641df46bf806da5a6071fa77113a96ec345ae8a26a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-cli/client_cli/cli/bootstrap.py:34-41 | client-cli/client_cli/cli/maintenance.py:98-105 \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":"client-cli/client_cli/cli/bootstrap.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"151ba8174a5369f9c1cb39eedda69a88d88f92ed2ceec23e27e69f78b7dc1cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): deployment/dev/scripts/generate_artifacts.py:22-26 | identity-ui/deployment/production/build.py:15-19 | identity-ui/deployment/production/stage.py:15-19 | server-ui/deployment/production/build.py:15-19 | server-ui/deployment/production/stage.py:15-19 \u2014 before extracting anything, compare \u0060identity-ui/deployment/production/build.py\u0060 and \u0060identity-ui/deployment/production/stage.py\u0060 as WHOLE FILES: 90% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"deployment/dev/scripts/generate_artifacts.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"754a9226d6e5848dffc4a4ece2f9eb72fb9b62690c08ff30e2713acb1a07a6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): identity-ui/deployment/dev/run_browser.py:11-17 | identity-ui/deployment/dev/run_server.py:8-14 | server-ui/deployment/dev/run_browser.py:11-17 | server-ui/deployment/dev/run_server.py:8-14 \u2014 before extracting anything, compare \u0060identity-ui/deployment/dev/run_browser.py\u0060 and \u0060server-ui/deployment/dev/run_browser.py\u0060 as WHOLE FILES: 92% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060identity-ui/deployment/dev/run_browser.py:7\u0060 calls \u0060dirname\u0060, \u0060realpath\u0060 and \u0060identity-ui/deployment/dev/run_server.py:4\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":"identity-ui/deployment/dev/run_browser.py"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ebcfbe0dca1523a8b30252b9e3ae5288869d7673107a781db0677346664731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): deployment/dev/scripts/generate_self_signed_cert.py:14-22 | deployment/production/scripts/generate_cert.py:14-22 \u2014 before extracting anything, compare \u0060deployment/dev/scripts/generate_self_signed_cert.py\u0060 and \u0060deployment/production/scripts/generate_cert.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060deployment/production/scripts/generate_cert.py:23\u0060 calls \u0060add_argument\u0060 and \u0060deployment/dev/scripts/generate_self_signed_cert.py:23\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deployment/dev/scripts/generate_self_signed_cert.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"77695649c28d0bec9ba3b7fb1dcd77fcb11c10ae6a0e55ab6a317b21dd7a929f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2): identity-ui/lib/pages/authorize/authorization_callback.dart:15-86 | server-ui/lib/pages/authorize/authorization_callback.dart:15-86 \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":"identity-ui/lib/pages/authorize/authorization_callback.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b3b8a346779dfb90282a9e43f877efced785f18793e97dece0288097cf3966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 5): client-ui/lib/pages/components/client_credentials_reset_form.dart:202-254 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:139-191 | client-ui/lib/pages/components/client_push_device_secret_form.dart:172-224 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:172-224 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:67-119 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_pull_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 218 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":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75d52f10c5e99165e9021d249ef7ba265329d97b37073ed1b8c32a997eff8f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): client-ui/lib/pages/components/forms/policy_field.dart:37-89 | server-ui/lib/pages/manage/components/forms/policy_field.dart:37-89 \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":"client-ui/lib/pages/components/forms/policy_field.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d8c5f36787ecc0b0b2da79f1a5fa1dec866ce21bfd6f33e03dc0b89ae84aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): server-ui/lib/pages/manage/components/forms/device_limits_field.dart:47-99 | server-ui/lib/pages/manage/components/forms/user_limits_field.dart:54-106 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/components/forms/device_limits_field.dart\u0060 and \u0060server-ui/lib/pages/manage/components/forms/user_limits_field.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 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":"server-ui/lib/pages/manage/components/forms/device_limits_field.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d1a946a5030a0a2b13c1eece4ff3fd39896977f103eb492dcb12399e6864c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 6): client-ui/lib/pages/components/client_bootstrap_form.dart:343-387 | client-ui/lib/pages/components/client_credentials_reset_form.dart:300-344 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:218-262 | client-ui/lib/pages/components/client_push_device_secret_form.dart:252-296 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:266-310 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:139-183 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9abace9ca36ddbfd4b0943899e100ab097fa38264bbf2e8e667bb3633a16fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 3): client-ui/lib/pages/components/client_bootstrap_form.dart:203-245 | client-ui/lib/pages/components/client_credentials_reset_form.dart:164-206 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:134-176 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"45944004174541f2ad5ff68fdda7c84f9857039afb91dbca3523f3128873f527"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): client-ui/lib/pages/status.dart:45-78 | client-ui/lib/pages/status.dart:90-123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/status.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3667f119602bada47b55ed24bc9da30c91ffa827dd28507b2b83ef8448baf5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): client-ui/lib/pages/components/forms/retention_field.dart:23-55 | server-ui/lib/pages/manage/components/forms/retention_field.dart:23-55 \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":"client-ui/lib/pages/components/forms/retention_field.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"71de6cf775645b809c7d34a3f72ab4205508da6a9003b75b0059cd60a9819ca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): client-ui/lib/api/app_processes.dart:179-209 | client-ui/lib/api/app_processes.dart:222-252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/app_processes.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"226fab8e70bef9df141f08b9ec25a54babd4fc221b548ec5647fcff96ff55ee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): identity-ui/lib/api/oauth.dart:23-53 | server-ui/lib/api/oauth.dart:22-52 \u2014 before extracting anything, compare \u0060identity-ui/lib/api/oauth.dart\u0060 and \u0060server-ui/lib/api/oauth.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 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":"identity-ui/lib/api/oauth.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6846cd6363b048b3563dd9218566437cff85434f086413936106d868cecf2bc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): identity-ui/lib/pages/manage/components/entity_form.dart:139-169 | server-ui/lib/pages/manage/components/forms/state_field.dart:33-63 \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":"identity-ui/lib/pages/manage/components/entity_form.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a5d9e0b10bb07b8cd16c74bc0b108b0dde1d86be803e2ab901e48c61f4b88f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): client-ui/lib/pages/components/client_pull_device_secret_form.dart:42-71 | client-ui/lib/pages/components/client_push_device_secret_form.dart:43-72 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:43-72 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_pull_device_secret_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_push_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 274 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":"client-ui/lib/pages/components/client_pull_device_secret_form.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3a1bbe496749298e387f77242bb7df44ee152197940aef9c70da33714e3b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): client-ui/lib/api/app_processes.dart:91-120 | client-ui/lib/api/app_processes.dart:135-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/app_processes.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb0eddf910ab73e6a32308f781826195da5dbedc91e866a151865a4b9612bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): client-ui/lib/pages/components/forms/duration_field.dart:35-62 | client-ui/lib/pages/components/forms/file_size_field.dart:42-69 | server-ui/lib/pages/manage/components/forms/duration_field.dart:35-62 | server-ui/lib/pages/manage/components/forms/file_size_field.dart:42-69 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/forms/file_size_field.dart\u0060 and \u0060server-ui/lib/pages/manage/components/forms/file_size_field.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 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":"client-ui/lib/pages/components/forms/duration_field.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d902145a9cdca44e52aa6409d2064c367754f4080d9780fd4ee050c0aab291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): server-ui/lib/pages/manage/devices.dart:137-161 | server-ui/lib/pages/manage/users.dart:126-150 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/devices.dart\u0060 and \u0060server-ui/lib/pages/manage/users.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 159 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":"server-ui/lib/pages/manage/devices.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6467409c824abd329fdc2a1c61904fe28064f405472c88fec12218af8f00313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): identity-ui/lib/pages/default/not_found.dart:8-31 | server-ui/lib/pages/default/not_found.dart:9-32 \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":"identity-ui/lib/pages/default/not_found.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f922f2feeb8c27dbce53f4cf3e1af06f0ead4fdfd3ab144ca4c66bf343fee70d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5): client-ui/lib/api/app_processes.dart:66-88 | client-ui/lib/api/app_processes.dart:110-132 | client-ui/lib/api/app_processes.dart:154-176 | client-ui/lib/api/app_processes.dart:197-219 | client-ui/lib/api/app_processes.dart:240-262 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/app_processes.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"22030016b031b123f2d31c8c8d4282eef49f6ca54fea1d121f60e0b7083d3d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): client-ui/lib/api/default_client_api.dart:49-70 | client-ui/lib/api/default_init_api.dart:16-37 \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":"client-ui/lib/api/default_client_api.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ef1c02386cae75bd133ba81468fcf261e2ac87d4636cafc7e92733c1926902"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): client-ui/lib/pages/components/credentials_form.dart:59-80 | identity-ui/lib/pages/authorize/credentials_form.dart:67-88 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/credentials_form.dart\u0060 and \u0060identity-ui/lib/pages/authorize/credentials_form.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/credentials_form.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6870c878afc7e68148344453f288ecb8daae5c2de7ab5d92d985e568198454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): identity-ui/lib/pages/authorize/derived_passwords.dart:6-27 | server-ui/lib/api/derived_passwords.dart:6-27 \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":"identity-ui/lib/pages/authorize/derived_passwords.dart"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d3fbccc0378a2fb41f8779fee49806a93ff36c381ecc2902932e1ccef53ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 3): client-ui/lib/pages/components/entity_form.dart:35-55 | identity-ui/lib/pages/manage/components/entity_form.dart:21-38 | server-ui/lib/pages/manage/components/entity_form.dart:41-58 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/components/entity_form.dart\u0060 and \u0060server-ui/lib/pages/manage/components/entity_form.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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":"client-ui/lib/pages/components/entity_form.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"70baf33df5967962feb84d3973e94c380ccd0403dd9905b6fb0394f76f5ed933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): client-ui/lib/pages/components/client_bootstrap_form.dart:235-254 | client-ui/lib/pages/components/client_credentials_reset_form.dart:196-215 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:133-152 | client-ui/lib/pages/components/client_push_device_secret_form.dart:166-185 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:166-185 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:61-80 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e22affea20e72b7defba65e1636a245c45f17f747fa123835ec0d8f1432d4ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 5): client-ui/lib/pages/components/client_credentials_reset_form.dart:380-399 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:297-316 | client-ui/lib/pages/components/client_push_device_secret_form.dart:332-351 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:345-364 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:208-226 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_pull_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 218 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":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"038e7c5506916bfbd6be6272deebaafdccff13245806dc3fbd553a59313113dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): client-ui/lib/model/users/permission.dart:14-33 | server-ui/lib/model/users/permission.dart:14-33 \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":"client-ui/lib/model/users/permission.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"37847cd08ad101309e64a140f536e8ce4f54fbc477c6d7debad3cbc09f751b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): client-ui/lib/pages/components/client_bootstrap_form.dart:70-89 | client-ui/lib/pages/components/client_bootstrap_form.dart:116-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8d7e9a2abee034a8d81caae5c6bd0c03d9cadecfd17e9f9f4aab9405afdb8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): client-ui/lib/pages/components/client_credentials_reset_form.dart:98-117 | client-ui/lib/pages/components/client_push_device_secret_form.dart:117-136 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_push_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 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":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4ffa6e7016ce5ac2c7dfd0fb580b2f43170416b789c3254e7bd396a8a195a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): identity-ui/lib/pages/manage/owners.dart:185-203 | identity-ui/lib/pages/manage/owners.dart:301-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/lib/pages/manage/owners.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"384e51f0d6c659ea170f69f1f1a5b4d74fad72449676de8b84652b6419cd6b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): client-ui/lib/pages/components/forms/date_time_field.dart:88-106 | server-ui/lib/pages/manage/components/forms/date_time_field.dart:92-110 \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":"client-ui/lib/pages/components/forms/date_time_field.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d502aef7e3e3879cbb8f93c37ef1dc2007a6f974834768005fea2daf318018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): server-ui/lib/pages/manage/components/forms/device_limits_field.dart:33-51 | server-ui/lib/pages/manage/components/forms/user_limits_field.dart:16-34 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/components/forms/device_limits_field.dart\u0060 and \u0060server-ui/lib/pages/manage/components/forms/user_limits_field.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 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":"server-ui/lib/pages/manage/components/forms/device_limits_field.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d8adbeb8481dea70826335c178a6a139fa2e9f78bb4c0b2cae72ae76352ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): client-ui/lib/pages/components/client_bootstrap_form.dart:67-84 | client-ui/lib/pages/components/client_bootstrap_form.dart:91-106 | client-ui/lib/pages/components/client_bootstrap_form.dart:113-130 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"284cf7049857d8a9a70a916e08cd219ea79f64e7e703dfc0c086739aaac86b2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): client-ui/lib/pages/components/client_credentials_reset_form.dart:147-164 | client-ui/lib/pages/components/client_push_device_secret_form.dart:142-159 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:117-134 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_push_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 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":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6576a596cd7b04805788f628b3a441602b0dcd8afab25cdddc7e6caed43aef6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): client-ui/lib/pages/components/client_bootstrap_form.dart:94-111 | client-ui/lib/pages/components/client_bootstrap_form.dart:145-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dd08c753029ddf08e8c1696cc7f17942ec84676ed5a133ec42ebfefca4b780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): client-ui/lib/pages/components/forms/file_size_field.dart:93-110 | server-ui/lib/pages/manage/components/forms/file_size_field.dart:93-110 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/forms/file_size_field.dart\u0060 and \u0060server-ui/lib/pages/manage/components/forms/file_size_field.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 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":"client-ui/lib/pages/components/forms/file_size_field.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"514595dbf03798e1d5e7ad035fe5d141e2add7f19d5fbb47cc330c6f00b38301"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 9): client-ui/lib/pages/components/client_bootstrap_form.dart:122-138 | client-ui/lib/pages/components/client_credentials_reset_form.dart:50-64 | client-ui/lib/pages/components/client_credentials_reset_form.dart:75-91 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:68-84 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:95-111 | client-ui/lib/pages/components/client_push_device_secret_form.dart:69-85 | client-ui/lib/pages/components/client_push_device_secret_form.dart:96-112 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:69-85 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:96-112 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a547775600d8d33c4b30d4e49b8b51d8704ffaff4d47a23285eafc74b4cb38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): client-ui/lib/pages/components/forms/duration_field.dart:68-84 | client-ui/lib/pages/components/forms/file_size_field.dart:75-91 | server-ui/lib/pages/manage/components/forms/duration_field.dart:68-84 | server-ui/lib/pages/manage/components/forms/file_size_field.dart:75-91 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/forms/file_size_field.dart\u0060 and \u0060server-ui/lib/pages/manage/components/forms/file_size_field.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 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":"client-ui/lib/pages/components/forms/duration_field.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdcea20c4a1781a79c8c8a2c8164313289cc5893178279ff5d4af86ca54d1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): identity-ui/lib/pages/manage/apis.dart:108-124 | identity-ui/lib/pages/manage/codes.dart:70-84 | identity-ui/lib/pages/manage/owners.dart:323-337 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/apis.dart\u0060 and \u0060identity-ui/lib/pages/manage/codes.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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":"identity-ui/lib/pages/manage/apis.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"86139fd8dfba0179493dcde89c0bb077b201e85adcf82e56a30727a6bb390b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): client-ui/lib/pages/components/credentials_form.dart:41-57 | identity-ui/lib/pages/authorize/credentials_form.dart:49-65 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/credentials_form.dart\u0060 and \u0060identity-ui/lib/pages/authorize/credentials_form.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/credentials_form.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d1cf9766a83183fe31ca9e88d65c3313cc80acce1f3c503c385bbd1e290200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): client-ui/lib/pages/components/update_user_credentials_form.dart:80-96 | client-ui/lib/pages/components/update_user_credentials_form.dart:101-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/update_user_credentials_form.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b92fcc3a747a6f98bc9b92e095fc6473ff3ad863997cdc71466c07327abc06d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): server-ui/lib/pages/manage/components/forms/password_field.dart:28-44 | server-ui/lib/pages/manage/components/forms/password_field.dart:49-65 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/pages/manage/components/forms/password_field.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7884561b57513c7b38b7b8e9320035b7a248670cfab01e21b90bf80f26ad9af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): identity-ui/lib/pages/manage/clients.dart:130-145 | identity-ui/lib/pages/manage/owners.dart:138-153 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/clients.dart\u0060 and \u0060identity-ui/lib/pages/manage/owners.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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":"identity-ui/lib/pages/manage/clients.dart"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"08475d21a87c11144966af516157f48aab01fb9b2c63330faec81fb2a18f5694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): identity-ui/lib/pages/manage/owners.dart:161-176 | identity-ui/lib/pages/manage/owners.dart:282-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/lib/pages/manage/owners.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"40267f2725b761ea632014043f67646f16099ef5d087d4f57cc3d7fac479b7ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): server-ui/lib/pages/manage/commands.dart:152-167 | server-ui/lib/pages/manage/commands.dart:244-259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/pages/manage/commands.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"064b745be01e7ae75452287470ae345109ee86d3476e518f118fa40c5aa32f38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): server-ui/lib/pages/manage/definitions.dart:161-176 | server-ui/lib/pages/manage/devices.dart:300-315 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/definitions.dart\u0060 and \u0060server-ui/lib/pages/manage/devices.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 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":"server-ui/lib/pages/manage/definitions.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e71e6576bf2b3ed5b1fb9e6cb0db5f66ab7aba1961333faaa4d4d505c0d9a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 14): identity-ui/lib/pages/manage/apis.dart:129-143 | identity-ui/lib/pages/manage/clients.dart:294-306 | identity-ui/lib/pages/manage/codes.dart:89-101 | identity-ui/lib/pages/manage/owners.dart:342-354 | identity-ui/lib/pages/manage/tokens.dart:91-103 | server-ui/lib/pages/default/home.dart:305-317 | server-ui/lib/pages/manage/codes.dart:108-122 | server-ui/lib/pages/manage/definitions.dart:320-332 | server-ui/lib/pages/manage/device_keys.dart:108-120 | server-ui/lib/pages/manage/devices.dart:554-566 | server-ui/lib/pages/manage/entries.dart:123-135 | server-ui/lib/pages/manage/nodes.dart:193-205 | server-ui/lib/pages/manage/schedules.dart:255-267 | server-ui/lib/pages/manage/users.dart:452-464 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/apis.dart\u0060 and \u0060identity-ui/lib/pages/manage/codes.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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":"identity-ui/lib/pages/manage/apis.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16be549df1453881ab612c2f318bc0352e55b2a700bd8075cc9e38b48c5f003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): server-ui/lib/pages/manage/devices.dart:535-549 | server-ui/lib/pages/manage/nodes.dart:174-188 | server-ui/lib/pages/manage/schedules.dart:236-250 | server-ui/lib/pages/manage/users.dart:433-447 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/devices.dart\u0060 and \u0060server-ui/lib/pages/manage/nodes.dart\u0060 as WHOLE FILES: this scan already matched 5 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. 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":"server-ui/lib/pages/manage/devices.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb6224b9caccfd3499aa530a1090014b3ba8d92599ec506fc2176018a613877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): client-ui/lib/pages/components/client_bootstrap_form.dart:151-165 | client-ui/lib/pages/components/client_credentials_reset_form.dart:104-118 | client-ui/lib/pages/components/client_push_device_secret_form.dart:123-137 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b6d59b4b3bc1e27de8f7506d81cec95ea83b899b7cfb2492398b6362cdb16a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): server-ui/lib/pages/manage/commands.dart:148-162 | server-ui/lib/pages/manage/definitions.dart:162-176 | server-ui/lib/pages/manage/devices.dart:301-315 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/commands.dart\u0060 and \u0060server-ui/lib/pages/manage/definitions.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 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":"server-ui/lib/pages/manage/commands.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cea3707e974aec699ca5cacee638b7d487edff43fca4438217530808239cee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): client-ui/lib/pages/backup_entries.dart:121-135 | client-ui/lib/pages/components/backup_entry_metadata.dart:178-192 \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":"client-ui/lib/pages/backup_entries.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fae6fc57f7432d817d82ea3c0ca596b1336ac2015bb0ff99195f40b91eddf11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): client-ui/lib/pages/components/client_credentials_reset_form.dart:278-291 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:243-257 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 308 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":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8abaa9bd8239bdb29d9eac13685fe8138a1737587072dc014c339f9b4e904e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): client-ui/lib/pages/components/client_pull_device_secret_form.dart:115-129 | client-ui/lib/pages/components/client_push_device_secret_form.dart:148-162 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_pull_device_secret_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_push_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 274 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":"client-ui/lib/pages/components/client_pull_device_secret_form.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f7a0367e8b2a7b99cc7ad4e0e741a7a8cf1ed42deb58b5086921fd0e06fa95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): server-ui/lib/pages/manage/devices.dart:456-469 | server-ui/lib/pages/manage/devices.dart:498-511 | server-ui/lib/pages/manage/users.dart:278-291 | server-ui/lib/pages/manage/users.dart:318-331 | server-ui/lib/pages/manage/users.dart:359-372 | server-ui/lib/pages/manage/users.dart:398-411 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/devices.dart\u0060 and \u0060server-ui/lib/pages/manage/users.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 159 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":"server-ui/lib/pages/manage/devices.dart"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"b938a4121296798b468a67fbf4fd478244bc3b0f71fd8944219ea3af928242c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): client-ui/lib/api/app_processes.dart:94-107 | client-ui/lib/api/app_processes.dart:138-151 | client-ui/lib/api/app_processes.dart:182-195 | client-ui/lib/api/app_processes.dart:225-238 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/app_processes.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"012d65a435c21905ffcfdda87c90ecbdf71efc7713d9007c3acf9c77178eced2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): client-ui/lib/pages/components/client_credentials_reset_form.dart:152-165 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:114-127 | client-ui/lib/pages/components/client_push_device_secret_form.dart:147-160 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:122-135 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_pull_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 218 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":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e2f82964db51624b181d42addcd63485e25a9dc42bc11b3c2a569d18bc7c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): server-ui/lib/pages/manage/commands.dart:149-162 | server-ui/lib/pages/manage/commands.dart:241-254 | server-ui/lib/pages/manage/definitions.dart:163-176 | server-ui/lib/pages/manage/devices.dart:302-315 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/commands.dart\u0060 and \u0060server-ui/lib/pages/manage/definitions.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 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":"server-ui/lib/pages/manage/commands.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1e3733ad393f61536986ba6af422232c2b954b06e66a6dfd53375f5b136c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): client-ui/lib/pages/components/client_bootstrap_form.dart:292-305 | client-ui/lib/pages/components/client_credentials_reset_form.dart:253-266 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:223-236 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7aabc520c09b2d430a0d401d97f829e3b0842eb2f6b1eb7be3287502158583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client-ui/lib/pages/backup_entries.dart:112-125 | client-ui/lib/pages/operations.dart:63-76 \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":"client-ui/lib/pages/backup_entries.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b288b42e6090f53c9f1d4bb101da697590e65b3e184d30636ded3e0c3db2e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client-ui/lib/pages/home.dart:38-51 | client-ui/lib/pages/home.dart:53-66 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/home.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8592dd4ac5bfdf75f52d9a03092f38af8e4d1cc22d10803fc1fc1adcc8ba21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): client-ui/lib/pages/backup.dart:110-122 | client-ui/lib/pages/components/backup_entry_metadata.dart:159-171 | client-ui/lib/pages/operations.dart:57-69 | client-ui/lib/pages/schedules.dart:61-73 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/backup.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e036bd4e507946204d978aba8c6e516e2ab4054a856c83dea6b3f5558118fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 4): identity-ui/lib/pages/manage/clients.dart:40-52 | identity-ui/lib/pages/manage/codes.dart:31-40 | identity-ui/lib/pages/manage/owners.dart:46-57 | identity-ui/lib/pages/manage/tokens.dart:31-41 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/clients.dart\u0060 and \u0060identity-ui/lib/pages/manage/codes.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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":"identity-ui/lib/pages/manage/clients.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf35679ff650cd782d2f16d29962cb903bdcb86c69829fc7d741b90a98238fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): server-ui/lib/pages/default/home.dart:229-241 | server-ui/lib/pages/manage/commands.dart:154-166 | server-ui/lib/pages/manage/commands.dart:246-258 | server-ui/lib/pages/manage/nodes.dart:103-115 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/default/home.dart\u0060 and \u0060server-ui/lib/pages/manage/nodes.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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":"server-ui/lib/pages/default/home.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91f535d5dd76479ece094d31bc1b109f60849ea42fc6cc3500ec2d785f15f84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): server-ui/lib/pages/default/home.dart:225-237 | server-ui/lib/pages/manage/devices.dart:232-244 | server-ui/lib/pages/manage/users.dart:231-243 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/default/home.dart\u0060 and \u0060server-ui/lib/pages/manage/devices.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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":"server-ui/lib/pages/default/home.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24deaa6d20bdd188f5ee9ebc74c7e9e10d8493893cd3c494127dce4004a9d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): client-ui/lib/pages/home.dart:199-211 | client-ui/lib/pages/home.dart:252-264 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/home.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"af02f5c7215a9a7caade3727037046df50ba1572f266285128da22821bcb3213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): identity-ui/lib/api/oauth.dart:9-21 | server-ui/lib/api/oauth.dart:8-20 \u2014 before extracting anything, compare \u0060identity-ui/lib/api/oauth.dart\u0060 and \u0060server-ui/lib/api/oauth.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 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":"identity-ui/lib/api/oauth.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c81a400e188860e4083c12f9af6145e69409568f5a5ad28f27b501b2a2b74f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): identity-ui/lib/pages/manage/clients.dart:187-199 | identity-ui/lib/pages/manage/owners.dart:209-221 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/clients.dart\u0060 and \u0060identity-ui/lib/pages/manage/owners.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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":"identity-ui/lib/pages/manage/clients.dart"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f73b3cd70a90ab41f4c44e045bd59ff3ea525ea6347f34adbbdceb90532753"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): server-ui/lib/pages/manage/components/forms/crate_store_field.dart:125-137 | server-ui/lib/pages/manage/components/forms/crate_store_field.dart:198-210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/pages/manage/components/forms/crate_store_field.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3becb59168e90cfa4d8f4869a190f56524601ebdea4efd834436632c79112977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): server-ui/lib/pages/manage/definitions.dart:303-315 | server-ui/lib/pages/manage/device_keys.dart:91-103 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/definitions.dart\u0060 and \u0060server-ui/lib/pages/manage/device_keys.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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":"server-ui/lib/pages/manage/definitions.dart"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"00029e5de3a7e64c412733fe61e12745393326dfeb22225a838767e8d50b676c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): server-ui/lib/pages/manage/schedules.dart:138-150 | server-ui/lib/pages/manage/users.dart:233-245 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/schedules.dart\u0060 and \u0060server-ui/lib/pages/manage/users.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 97 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":"server-ui/lib/pages/manage/schedules.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"591916cf39a870507f2bbdb882f6e25580c4f9cdd866b8272bf401b8f41f4387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 21): identity-ui/lib/pages/manage/clients.dart:168-179 | identity-ui/lib/pages/manage/clients.dart:220-231 | identity-ui/lib/pages/manage/clients.dart:261-272 | identity-ui/lib/pages/manage/owners.dart:242-253 | server-ui/lib/pages/default/home.dart:269-280 | server-ui/lib/pages/manage/commands.dart:264-275 | server-ui/lib/pages/manage/definitions.dart:195-205 | server-ui/lib/pages/manage/definitions.dart:289-300 | server-ui/lib/pages/manage/devices.dart:258-269 | server-ui/lib/pages/manage/devices.dart:331-341 | server-ui/lib/pages/manage/devices.dart:479-490 | server-ui/lib/pages/manage/devices.dart:521-532 | server-ui/lib/pages/manage/nodes.dart:120-131 | server-ui/lib/pages/manage/nodes.dart:160-171 | server-ui/lib/pages/manage/schedules.dart:164-175 | server-ui/lib/pages/manage/schedules.dart:222-233 | server-ui/lib/pages/manage/users.dart:259-270 | server-ui/lib/pages/manage/users.dart:299-310 | server-ui/lib/pages/manage/users.dart:339-350 | server-ui/lib/pages/manage/users.dart:380-391 | server-ui/lib/pages/manage/users.dart:419-430 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/clients.dart\u0060 and \u0060identity-ui/lib/pages/manage/owners.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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":"identity-ui/lib/pages/manage/clients.dart"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0f7babe50ce7bfd3d7ada286dd860d52e986c7011a7a3f721561dccdaee368"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): client-ui/lib/pages/components/client_bootstrap_form.dart:428-439 | client-ui/lib/pages/components/client_credentials_reset_form.dart:376-387 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:293-304 | client-ui/lib/pages/components/client_push_device_secret_form.dart:328-339 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:341-352 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"7801ae9cbebb24e0ec02291dadadd5d3fff3d1893dee91846e405d867a982fa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): server-ui/lib/pages/manage/devices.dart:233-244 | server-ui/lib/pages/manage/schedules.dart:137-148 | server-ui/lib/pages/manage/users.dart:232-243 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/devices.dart\u0060 and \u0060server-ui/lib/pages/manage/schedules.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 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":"server-ui/lib/pages/manage/devices.dart"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd79da20a16d4ceea6995c4c2ff946a1e1b048823c876b62552c43a92c1bd73d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): server-ui/lib/pages/manage/devices.dart:307-318 | server-ui/lib/pages/manage/schedules.dart:140-151 | server-ui/lib/pages/manage/users.dart:235-246 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/devices.dart\u0060 and \u0060server-ui/lib/pages/manage/schedules.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 89 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":"server-ui/lib/pages/manage/devices.dart"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"697ebca2e282885b08dd438de9a701322e2e1b7187e7aa9da982c736ecc80569"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): client-ui/lib/pages/components/credentials_form.dart:208-219 | client-ui/lib/pages/components/credentials_form.dart:227-238 | client-ui/lib/pages/components/credentials_form.dart:244-254 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/credentials_form.dart"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c9fb4ff1a7c5cd30028c062090dd2c386ebc8741d70e3dcebe882a6b5a1400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client-ui/lib/pages/components/operation_summary.dart:109-120 | client-ui/lib/pages/components/operation_summary.dart:133-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/operation_summary.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6107d513c2184a87fa5724dd8cee1ea06918ac87271d2c9c1e561ea5ad3136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): client-ui/lib/pages/status.dart:30-41 | client-ui/lib/pages/status.dart:80-91 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/status.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d94fe27ccf76d116875cf6b2e3fd87bb30946f79c65baf1d59b4ad1d8405fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): client-ui/lib/pages/status.dart:143-154 | client-ui/lib/pages/status.dart:172-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/status.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc715cb55f9f2cc70042db87661f544c9829df7aff06f5c5e778cb9cb8cbcb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): server-ui/lib/pages/manage/analytics.dart:155-166 | server-ui/lib/pages/manage/codes.dart:92-103 \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":"server-ui/lib/pages/manage/analytics.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"516b4056818c38a113ad7b38f5a41e4005c0cf06c737466196aa7b13167853a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): server-ui/lib/pages/manage/devices.dart:127-138 | server-ui/lib/pages/manage/users.dart:113-122 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/devices.dart\u0060 and \u0060server-ui/lib/pages/manage/users.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 159 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":"server-ui/lib/pages/manage/devices.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef34657296edaeaf1beeec2914ce3ce52682396409b2d4508ad44536724869c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): client-ui/lib/pages/components/client_bootstrap_form.dart:474-484 | client-ui/lib/pages/components/client_credentials_reset_form.dart:422-432 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:339-349 | client-ui/lib/pages/components/client_push_device_secret_form.dart:374-384 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:387-397 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:249-259 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afaa5f4ad4a947aa560d1af8655f71c84dc1a1748dc89acd3394badc5f0ff9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): server-ui/lib/pages/manage/components/forms/device_limits_field.dart:54-64 | server-ui/lib/pages/manage/components/forms/user_limits_field.dart:37-47 | server-ui/lib/pages/manage/components/forms/user_limits_field.dart:61-71 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/components/forms/device_limits_field.dart\u0060 and \u0060server-ui/lib/pages/manage/components/forms/user_limits_field.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 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":"server-ui/lib/pages/manage/components/forms/device_limits_field.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"96601650b7ac275685e19fb16daaa2e991a7f9e09b6a99a08b40d3b59b0ab3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): server-ui/lib/pages/manage/definitions.dart:261-271 | server-ui/lib/pages/manage/devices.dart:498-508 | server-ui/lib/pages/manage/users.dart:318-328 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/definitions.dart\u0060 and \u0060server-ui/lib/pages/manage/devices.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 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":"server-ui/lib/pages/manage/definitions.dart"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee2214788efe86ff2f2a3354b46b325a3b9fe32ad1b963fe7b24885bc240d5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): client-ui/lib/pages/backup_entries.dart:89-99 | client-ui/lib/pages/search.dart:172-180 \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":"client-ui/lib/pages/backup_entries.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b0a67ac35a12cb7f0415759da6a153ddedb24262408d6cc350aecb4a6a937e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-ui/lib/pages/components/client_pull_device_secret_form.dart:281-291 | client-ui/lib/pages/components/client_push_device_secret_form.dart:316-326 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_pull_device_secret_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_push_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 274 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":"client-ui/lib/pages/components/client_pull_device_secret_form.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c4da6d844481236ef6ff697e99609127fe171e10343f58f65849b01bda7df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-ui/lib/pages/components/credentials_form.dart:285-295 | client-ui/lib/pages/settings.dart:399-410 \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":"client-ui/lib/pages/components/credentials_form.dart"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c81a93153fcd7fc41306b5ad23bd1ec197ebb2af5e37e3fff6874a5dbd74c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client-ui/lib/pages/components/dataset_definition_summary.dart:28-38 | client-ui/lib/pages/components/dataset_entry_summary.dart:21-31 \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":"client-ui/lib/pages/components/dataset_definition_summary.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a80f8b863eb4eb087bc836a024bf375c8997e6644073c2d9bb3acb1fb7f933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): server-ui/lib/pages/manage/components/forms/crate_store_field.dart:217-227 | server-ui/lib/pages/manage/components/forms/node_address_field.dart:96-106 \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":"server-ui/lib/pages/manage/components/forms/crate_store_field.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"987ca9ce277e916f5709c74a482099410b8aa5dc2b64ae6eeab402cf93a780dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): server-ui/lib/pages/manage/definitions.dart:261-271 | server-ui/lib/pages/manage/schedules.dart:197-207 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/definitions.dart\u0060 and \u0060server-ui/lib/pages/manage/schedules.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 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":"server-ui/lib/pages/manage/definitions.dart"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"373ee1724097b974a24d33ff325d0dd321f068eb7d7d34899993ae446e10a550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): client-ui/lib/pages/components/client_bootstrap_form.dart:462-471 | client-ui/lib/pages/components/client_credentials_reset_form.dart:410-419 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:327-336 | client-ui/lib/pages/components/client_push_device_secret_form.dart:362-371 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:375-384 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:237-246 | client-ui/lib/pages/components/credentials_form.dart:349-358 | client-ui/lib/pages/components/update_user_credentials_form.dart:226-235 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae11a3e8da75b774cc54c174b0a69c7b5f91e5286a489db3a61e01e896a555d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): server-ui/lib/pages/manage/definitions.dart:95-103 | server-ui/lib/pages/manage/devices.dart:185-194 | server-ui/lib/pages/manage/schedules.dart:75-83 | server-ui/lib/pages/manage/users.dart:156-164 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/definitions.dart\u0060 and \u0060server-ui/lib/pages/manage/devices.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 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":"server-ui/lib/pages/manage/definitions.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f78c6f434ba37411bbd423f1574a26c2831fb1214d52eb652ae2672a95a62a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): client-ui/lib/pages/components/dataset_definition_summary.dart:25-33 | client-ui/lib/pages/rules.dart:50-59 \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":"client-ui/lib/pages/components/dataset_definition_summary.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42889ec8f0c61b38d42193538feaab49471cd6e874fa04919166705afd58b6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): client-ui/lib/pages/components/operation_summary.dart:38-47 | client-ui/lib/pages/home.dart:218-227 \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":"client-ui/lib/pages/components/operation_summary.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6f817dc6c6b5b31a3ebbbfc858d099926fda96ccf534c1216da92e100e2d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): identity-ui/lib/api/oauth.dart:70-79 | server-ui/lib/api/oauth.dart:69-78 \u2014 before extracting anything, compare \u0060identity-ui/lib/api/oauth.dart\u0060 and \u0060server-ui/lib/api/oauth.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 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":"identity-ui/lib/api/oauth.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ec0cf0603fc0f0b3787f7ffc09a2a86eb7e3465092392689ecf87074d06d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): identity-ui/lib/main.dart:18-27 | server-ui/lib/main.dart:19-28 \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":"identity-ui/lib/main.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd110a0c39f38bfcfef05e6cf77eaeddf73d04bda593d6bb6e3aff9d33e2fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client-ui/lib/api/default_client_api.dart:217-225 | client-ui/lib/api/default_client_api.dart:240-248 | client-ui/lib/api/default_client_api.dart:260-268 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/default_client_api.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ab70a014b74a5a6be5ba2c1ea8313ec3fa36a3268d2cdc6234e86e93f48c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): client-ui/lib/pages/components/dataset_metadata_entity_summary.dart:129-137 | client-ui/lib/pages/search.dart:164-172 \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":"client-ui/lib/pages/components/dataset_metadata_entity_summary.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b862fe3a358593b8e9d4f0e4bac56da9dd1e6b109266aa341cd6b170d9009dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): client-ui/lib/pages/settings.dart:40-47 | client-ui/lib/pages/settings.dart:418-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/settings.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16a8e74a605f6d822b4ac67eb7c91ad73994d9ec2d3088ab0a8413031fb2463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): server-ui/lib/pages/manage/definitions.dart:214-222 | server-ui/lib/pages/manage/devices.dart:349-357 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/definitions.dart\u0060 and \u0060server-ui/lib/pages/manage/devices.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 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":"server-ui/lib/pages/manage/definitions.dart"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ecb2c618100b86dca885e454e847df06c529165f7a6fb95efea2f4e17cb7549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 38): client-ui/lib/pages/backup.dart:217-222 | client-ui/lib/pages/backup.dart:233-239 | client-ui/lib/pages/recover.dart:103-108 | identity-ui/lib/pages/manage/apis.dart:91-98 | identity-ui/lib/pages/manage/apis.dart:128-135 | identity-ui/lib/pages/manage/clients.dart:167-172 | identity-ui/lib/pages/manage/clients.dart:219-224 | identity-ui/lib/pages/manage/clients.dart:260-265 | identity-ui/lib/pages/manage/clients.dart:293-298 | identity-ui/lib/pages/manage/codes.dart:88-93 | identity-ui/lib/pages/manage/owners.dart:241-246 | identity-ui/lib/pages/manage/owners.dart:341-346 | identity-ui/lib/pages/manage/tokens.dart:90-95 | server-ui/lib/pages/manage/codes.dart:107-114 | server-ui/lib/pages/manage/commands.dart:184-189 | server-ui/lib/pages/manage/commands.dart:263-268 | server-ui/lib/pages/manage/definitions.dart:194-199 | server-ui/lib/pages/manage/definitions.dart:288-293 | server-ui/lib/pages/manage/definitions.dart:319-324 | server-ui/lib/pages/manage/device_keys.dart:107-112 | server-ui/lib/pages/manage/devices.dart:257-262 | server-ui/lib/pages/manage/devices.dart:330-335 | server-ui/lib/pages/manage/devices.dart:478-483 | server-ui/lib/pages/manage/devices.dart:520-525 | server-ui/lib/pages/manage/devices.dart:553-558 | server-ui/lib/pages/manage/entries.dart:122-127 | server-ui/lib/pages/manage/nodes.dart:119-124 | server-ui/lib/pages/manage/nodes.dart:159-164 | server-ui/lib/pages/manage/nodes.dart:192-197 | server-ui/lib/pages/manage/schedules.dart:163-168 | server-ui/lib/pages/manage/schedules.dart:221-226 | server-ui/lib/pages/manage/schedules.dart:254-259 | server-ui/lib/pages/manage/users.dart:258-263 | server-ui/lib/pages/manage/users.dart:298-303 | server-ui/lib/pages/manage/users.dart:338-343 | server-ui/lib/pages/manage/users.dart:379-384 | server-ui/lib/pages/manage/users.dart:418-423 | server-ui/lib/pages/manage/users.dart:451-456 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/apis.dart\u0060 and \u0060identity-ui/lib/pages/manage/codes.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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":"client-ui/lib/pages/backup.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2bff5798dcbe986b94ec0a84b875fdf74ed86e8d303b7e01fc39bf76c14e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): client-ui/lib/pages/components/client_bootstrap_form.dart:388-395 | client-ui/lib/pages/components/client_credentials_reset_form.dart:345-352 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:263-270 | client-ui/lib/pages/components/client_push_device_secret_form.dart:297-304 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:311-318 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:184-191 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_bootstrap_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 195 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":"client-ui/lib/pages/components/client_bootstrap_form.dart"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"353d88700f2128369ce7397edc02c24b593e079e6f7a5ce63a1b207a64736dc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-ui/lib/api/api_client.dart:94-101 | server-ui/lib/api/api_client.dart:55-62 \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":"client-ui/lib/api/api_client.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d40fbde2fdc2ab2899f8984711622c0bd149aa6a5cf6e348f30ae84c3ac47b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-ui/lib/pages/components/forms/date_time_field.dart:59-66 | client-ui/lib/pages/components/forms/date_time_field.dart:74-81 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/forms/date_time_field.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65f26299a1021d2c31f3da9bf6140c5bec7d24d0080aa6cb4f9941ceb370c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-ui/lib/pages/status.dart:35-42 | server-ui/lib/pages/manage/users.dart:116-123 \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":"client-ui/lib/pages/status.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cb5a5ff070af966e90ec3059a7ca72421be6d69a0757d14d6b357023834d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client-ui/lib/pages/status.dart:85-92 | server-ui/lib/pages/manage/devices.dart:132-139 \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":"client-ui/lib/pages/status.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdedae89319d237e42281f6b5fdfe15573e03e2b10282d180412d273a91bc8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): identity-ui/lib/api/default_api_client.dart:149-156 | identity-ui/lib/api/default_api_client.dart:159-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/lib/api/default_api_client.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2f3cc663ea6018e346e3005d3198adfa4a4b1b6fe20b343a10aa82690657a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): identity-ui/lib/pages/default/home.dart:62-69 | identity-ui/lib/pages/page_router.dart:251-258 \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":"identity-ui/lib/pages/default/home.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60f7095696d4ba558deee49f57b513fe3b3018211f247fbe871896ad5763f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): identity-ui/lib/pages/manage/clients.dart:73-80 | identity-ui/lib/pages/manage/owners.dart:77-84 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/clients.dart\u0060 and \u0060identity-ui/lib/pages/manage/owners.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 85 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":"identity-ui/lib/pages/manage/clients.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d51ddb0f57288c5dd0da21710f77c152cd1be9c28326afdf9be24ce70909aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 5): client-ui/lib/pages/backup_entries.dart:89-95 | client-ui/lib/pages/components/dataset_metadata_entity_summary.dart:137-142 | client-ui/lib/pages/search.dart:172-176 | server-ui/lib/pages/default/home.dart:269-273 | server-ui/lib/pages/default/home.dart:305-309 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/backup_entries.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"849eafa878dd6cb278d7e34d11fa022ce6947dcc0b2c702ec3b9b42ee91e0acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): client-ui/lib/pages/backup_entries.dart:124-130 | client-ui/lib/pages/components/backup_entry_metadata.dart:125-131 | client-ui/lib/pages/components/backup_entry_metadata.dart:181-187 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/backup_entries.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd63077fc4969e71c5a56fbda7f434e7cf19f7b12c5f2e898226b404efdd7d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-ui/lib/pages/components/operation_details.dart:262-268 | client-ui/lib/pages/components/operation_details.dart:273-279 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/operation_details.dart"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67d4eba7be66ede97aa902fe309fcd739939be5bd11bd1f5472e923e586e900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-ui/lib/pages/home.dart:171-177 | client-ui/lib/pages/home.dart:214-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/home.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fd51d12b3aa50d373f3267e95654b7f79204f8895e86bdc8ae5946fe8b7b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): client-ui/lib/pages/components/dataset_definition_summary.dart:28-33 | client-ui/lib/pages/components/dataset_entry_summary.dart:21-26 | client-ui/lib/pages/home.dart:181-186 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/dataset_definition_summary.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58e406f7bed38ba4e223e9cb74fa23cd6c579a41d3c3cd4cd483f8f4d9b362f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): client-ui/lib/pages/components/operation_summary.dart:108-113 | client-ui/lib/pages/components/operation_summary.dart:132-137 | client-ui/lib/pages/components/operation_summary.dart:156-161 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/operation_summary.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e142ee4986c48aec8099730f75c949bd74c3078ccc25e15b97d3a1eca4b96d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): identity-ui/lib/pages/manage/components/entity_form.dart:49-54 | server-ui/lib/pages/manage/components/entity_form.dart:69-74 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/components/entity_form.dart\u0060 and \u0060server-ui/lib/pages/manage/components/entity_form.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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":"identity-ui/lib/pages/manage/components/entity_form.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d47189c1591371878706f8974f6fca379aceefd03c0becdea2d76fd02e7f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): server-ui/lib/pages/manage/definitions.dart:61-65 | server-ui/lib/pages/manage/devices.dart:66-70 | server-ui/lib/pages/manage/nodes.dart:46-50 | server-ui/lib/pages/manage/reservations.dart:40-44 | server-ui/lib/pages/manage/schedules.dart:52-56 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/definitions.dart\u0060 and \u0060server-ui/lib/pages/manage/devices.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 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":"server-ui/lib/pages/manage/definitions.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f0a9ae917cf93feb1d5971db03d618a9750b72311e07b8228d57305411d1d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): client-ui/lib/pages/components/dataset_definition_summary.dart:15-19 | client-ui/lib/pages/components/dataset_entry_summary.dart:10-14 | client-ui/lib/pages/components/operation_summary.dart:15-19 | client-ui/lib/pages/components/schedule_summary.dart:14-17 \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 all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/dataset_definition_summary.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f14fd65c00681757d33ec2c24a5132945356ca7b4f56fda78fc2792e75a3ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-ui/lib/pages/components/dataset_definition_summary.dart:63-67 | client-ui/lib/pages/home.dart:78-84 \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":"client-ui/lib/pages/components/dataset_definition_summary.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9d94f48dec700ab865eda4c7e4fa55babc8497980e4482addbebf75c69b1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-ui/lib/pages/page_router.dart:116-120 | client-ui/lib/pages/settings.dart:71-76 \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":"client-ui/lib/pages/page_router.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3ab8ed0ac13ff660a9a5a96b2917e353c309215f68c101487faa4cf94948e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): client-ui/lib/model/datasets/dataset_definition.dart:21-43 | server-ui/lib/model/datasets/dataset_definition.dart:21-43 \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":"client-ui/lib/model/datasets/dataset_definition.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c04250b2b1b9d7fabde60a5d75035354b8e039669998b91dc99ba24cc6bfcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): client-ui/lib/model/devices/device.dart:21-35 | server-ui/lib/model/devices/device.dart:21-35 \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":"client-ui/lib/model/devices/device.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd8d19d4ec5d4da97154b56e684d0e242c12bcc2a4e07fa9ef35ca4906835ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): client-ui/lib/model/users/user.dart:19-34 | server-ui/lib/model/users/user.dart:20-35 \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":"client-ui/lib/model/users/user.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"08eabdffbac36823c8cafc76b1844473c16f1bb3b15935b52c2d7deb2058eec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-ui/lib/api/default_client_api.dart:150-154 | server-ui/lib/api/default_api_client.dart:166-170 \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":"client-ui/lib/api/default_client_api.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"886d76cf83598472af149d16e02e7ad96bba311f11cae20ce5215577234c4074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): client-ui/lib/api/default_client_api.dart:310-314 | server-ui/lib/api/default_api_client.dart:294-298 \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":"client-ui/lib/api/default_client_api.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"192a754d84ef5bbd99d4ed21718de8d9e7549d54f3e01b07ed5bdee027e8454b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): client-ui/lib/pages/components/client_credentials_reset_form.dart:401-408 | client-ui/lib/pages/components/client_pull_device_secret_form.dart:318-325 | client-ui/lib/pages/components/client_push_device_secret_form.dart:353-360 | client-ui/lib/pages/components/client_reencrypt_device_secret_form.dart:366-373 | client-ui/lib/pages/components/client_regenerate_api_certificate_form.dart:228-235 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/client_credentials_reset_form.dart\u0060 and \u0060client-ui/lib/pages/components/client_pull_device_secret_form.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 218 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":"client-ui/lib/pages/components/client_credentials_reset_form.dart"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f8a71a28f911b8aca336fa8c0e8ae725bf3b90f8c1fa78ba8ade66dc1da3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): client-ui/lib/pages/components/credentials_form.dart:342-347 | identity-ui/lib/pages/authorize/credentials_form.dart:243-248 \u2014 before extracting anything, compare \u0060client-ui/lib/pages/components/credentials_form.dart\u0060 and \u0060identity-ui/lib/pages/authorize/credentials_form.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/credentials_form.dart"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93a3ab24c013efaced0c3536c636db4e7764876d017cc276d6744bc1bdf5fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client-ui/lib/pages/components/entity_form.dart:78-86 | identity-ui/lib/pages/manage/components/entity_form.dart:60-68 | server-ui/lib/pages/manage/components/entity_form.dart:80-88 \u2014 before extracting anything, compare \u0060identity-ui/lib/pages/manage/components/entity_form.dart\u0060 and \u0060server-ui/lib/pages/manage/components/entity_form.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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":"client-ui/lib/pages/components/entity_form.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"285812f94e5da7d1b644bd2066a63eff61c4d4d8683614624082de5c4f969d22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): identity-ui/lib/api/oauth.dart:55-63 | server-ui/lib/api/oauth.dart:54-62 \u2014 before extracting anything, compare \u0060identity-ui/lib/api/oauth.dart\u0060 and \u0060server-ui/lib/api/oauth.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 63 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":"identity-ui/lib/api/oauth.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"809aadb3ca1e79403347cdd044c8c63df6d8504cec8b0a29c458dafbba7668b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): identity-ui/lib/pages/manage/components/entity_table.dart:48-60 | server-ui/lib/pages/manage/components/entity_table.dart:112-124 \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":"identity-ui/lib/pages/manage/components/entity_table.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f44f958b1736871b11f194ddae01d8e1427b9e48928ef6645deba84446054b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): server-ui/lib/pages/manage/components/forms/device_limits_field.dart:134-144 | server-ui/lib/pages/manage/components/forms/user_limits_field.dart:148-158 \u2014 before extracting anything, compare \u0060server-ui/lib/pages/manage/components/forms/device_limits_field.dart\u0060 and \u0060server-ui/lib/pages/manage/components/forms/user_limits_field.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 94 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":"server-ui/lib/pages/manage/components/forms/device_limits_field.dart"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"877ddb9dd900fa2402cb50b829e6e86c740d5728e234df333a13deb9b1547f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): client-ui/lib/api/default_client_api.dart:108-112 | client-ui/lib/api/default_client_api.dart:120-124 | server-ui/lib/api/default_api_client.dart:104-108 | server-ui/lib/api/default_api_client.dart:288-292 | server-ui/lib/api/default_api_client.dart:318-322 | server-ui/lib/api/default_api_client.dart:356-360 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/default_client_api.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6441a81405dc221dccc7e8067579b8f3caa92a0cfe1d47ea7c8cbaf5f7b807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): client-ui/lib/api/default_client_api.dart:114-118 | client-ui/lib/api/default_client_api.dart:138-142 | client-ui/lib/api/default_client_api.dart:207-211 | server-ui/lib/api/default_api_client.dart:116-120 | server-ui/lib/api/default_api_client.dart:254-258 | server-ui/lib/api/default_api_client.dart:312-316 | server-ui/lib/api/default_api_client.dart:336-340 | server-ui/lib/api/default_api_client.dart:350-354 | server-ui/lib/api/default_api_client.dart:382-386 \u2014 there are 9 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/default_client_api.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c00bce680624138d5df7b215072b72790a6a5cd09fed3188d49146fa8f38652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): client-ui/lib/api/default_client_api.dart:283-287 | server-ui/lib/api/default_api_client.dart:122-126 | server-ui/lib/api/default_api_client.dart:128-132 | server-ui/lib/api/default_api_client.dart:134-138 | server-ui/lib/api/default_api_client.dart:140-144 | server-ui/lib/api/default_api_client.dart:306-310 | server-ui/lib/api/default_api_client.dart:330-334 \u2014 there are 7 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/default_client_api.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c907b41e824d55437300b45cd842b81b26d17433259985ac7a52d4ceb8cb75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): server-ui/lib/api/bootstrap_api_client.dart:12-16 | server-ui/lib/api/default_api_client.dart:56-60 | server-ui/lib/api/default_api_client.dart:172-176 | server-ui/lib/api/default_api_client.dart:216-220 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/api/bootstrap_api_client.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"526856d8d5db3068afbd00b11376b136ca1ff49e83cfd215072f07c8c61b0720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): server-ui/lib/api/bootstrap_api_client.dart:18-22 | server-ui/lib/api/default_api_client.dart:81-85 | server-ui/lib/api/default_api_client.dart:98-102 | server-ui/lib/api/default_api_client.dart:190-194 | server-ui/lib/api/default_api_client.dart:230-234 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/api/bootstrap_api_client.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ee40f7cfa6cc5f77d02a8e6bc0455eef65eac4c70179839550625b29e4ad2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): client-ui/lib/pages/components/operation_details.dart:95-101 | client-ui/lib/pages/components/operation_details.dart:126-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/operation_details.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8743af2959a0ebe5aa01ad36276076bfe837bae40b44e758df2a3bba42f0a5"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: :lib: :lib: abstractness 0.20, instability 0.00, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"323420aaae800baf2365ab0b333be6b5cc02044198ac78978896180c1acaa012"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: proto: proto: abstractness 0.20, instability 0.00, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d27de0319ab5497e8e0e39b6903ea30cc0ec5d87c0872a27578ae0f34d2ff19"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DefaultServerApiEndpointClient (LCOM4 9): DefaultServerApiEndpointClient\u0027s methods fall into 9 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 9 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":"client/src/main/scala/stasis/client/api/clients/DefaultServerApiEndpointClient.scala"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40fccd9aa09eaee79cfae56a8ddd9c779ee04944f532c617df7813b84dbc9d3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Default (LCOM4 5): Default\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":"core/src/main/scala/stasis/core/routing/Metrics.scala"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4001ac0561802182b304c04fca27b8f493aa54b5f33b4270b260f291e55c78"}},{"ruleId":"D13","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":"342bfb3468feb95fd49a3d1c3c05c0ae6d7b016312aebeb28ad2d018dae73dd7"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"d1c079c5207dc5fa0afb58f7b9157bc2ba88b3d11e64b9344fa2f30d3df7406a"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"e943aac287f78f334e4777aea608d3a0fbc7c7a8f5ee6158f217e740196972bb"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"05237fa3fc5a3ca8b08257be0e2fda6054152cc999ad81fc35a3c932e68a4714"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"8930a75be091127d87292be5478064661b11b966f3755754803b09c8368014dd"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"af04c6316771d9d343903123d93a0afc3f86fc83b2b78a15a2a4c643c498e67b"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"8ab0fd981c4c7560ddbfd60503d3f8625535fd4b4c9637bf6e64ed8f07a29c35"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"f7cded656788005183f78eb8e91a0e8141474772d5c4a51f8e4e225ddfc08e3c"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"5993d6df3dc5b9ba8d6e9ecfe79b10a801c3f94a77c89219154559f44b9fd4e4"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"e3c23efef2d822f0e522db9d8ba8c85732f6e813b0cf6dce10cd19414aaf9f79"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"ebb2f4fd2f64ce788d48f5f17b44ab18feb419e17c2a66d3cfab1e2a96e5058a"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"8a2fceebac3f045427d567995f3379a4cbad3988fdce6e0153f6e6a41e7906ad"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - implement \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":"client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a21ec095b3f2a143969bd66d423d306e944599e2c8ef3ca02d787094ac9eb4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - implement \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":"client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bd0227fcdb018396781099ab361e24eced51b6e877659aea3867b80f3b442b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - implement \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":"client-android/lib/src/main/kotlin/stasis/client_android/lib/ops/scheduling/DefaultOperationExecutor.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cea8c9c7e8cf9bcc633eb0f1d9ca50c9632c5a052774067efce469c99cc1cd1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - implement \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":"client/src/main/scala/stasis/client/ops/scheduling/DefaultOperationExecutor.scala"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb59276044164a88f31ef897219d7087af45a760e09d13575683bebaf54ab3d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - implement \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":"client/src/main/scala/stasis/client/ops/scheduling/DefaultOperationExecutor.scala"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"da665570c8e4a851009f3f5d4161145f0397e4ddf8f993a94155739f4f2136f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO - implement \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":"client/src/main/scala/stasis/client/ops/scheduling/DefaultOperationExecutor.scala"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5442cb386f2a3d7a3010baab43fdac359a649f851a5b41b46968cceff464bf84"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no installation or build instructions: There are no installation/build/run commands for any of the submodules, despite a visible Why? section. Add install steps (e.g. clone, build with sbt or gradle, run ./qa.py) under the heading."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa6bfcd5c6ae231d1b8ee99bced50b832d1f61cde9da6cbb533467b879a57db"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no usage examples: There are no usage examples for any of the submodules shown in the README. Add a short \u0027How to Run It\u0027 section with commands like stasis start or ./qa.py."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1355eb4e127a4bc9236772ce1c46f09510aa9286e7a06d1e47f308229df19049"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no contributor guidance: No contribution/guidance guidance is present among the visible documents. Add Contributing notes covering PR/merge process, CI, and any required environment setup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"620f29787918fa3406ae55cb63eefa1b50410845435c4e47bda852816aaea084"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Split client-android/lib: A generic catch-all at 8k LoC across 49 namespaces is a grab-bag. Suggested: "},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"95622eb018b985f3fcfa5cb8cb5f24af3a5d6bf4f8e1fbbdaf9cec775d8bafd4"}},{"ruleId":"D26","level":"note","message":{"text":"Split server-ui: A generic catch-all at 8k LoC across 24 namespaces is a grab-bag. Suggested: "},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c30311409045db0b85ca2647295d49a928879a0713613fd4baecf0bb751d44d0"}},{"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":"fb0a4238be87317c1da2cea8b5b804f5233634b17797e1d6c680a350c5c1bb85"},"properties":{"commitSha":"3cec66fc61d4befcca3049dae87eaee9e240f547"}},{"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":"7644f7dc8272ec522146e941215cde32940a1ab9be85b08cceeaa50de9b63751"},"properties":{"commitSha":"664960e50ba4c16ec7f483bcd24e1e8ee69feed0"}},{"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":"6a0b8416765f7d6fc024419f208cf6ac7013aa8a0502595c601a1b8cd3d3409e"},"properties":{"commitSha":"664960e50ba4c16ec7f483bcd24e1e8ee69feed0"}},{"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":"b507f82cb9beb776663db00cdc37850846fddabddbd1be44906bb0b66a0ff0c0"},"properties":{"commitSha":"d8c2c1e2bf82ee4335aeaae729179459b4790e0d"}},{"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":"1c3cf869e49b0a52958a241596cf075892c77b15143250c50a28b89c1d14efc3"},"properties":{"commitSha":"a7762cbc3aef02900409fac54fbaf8633b3c0b8d"}},{"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":"0842d484b17bb17150d24680c5539033bc645b07cc2a6989c9193b1fde38a4b3"},"properties":{"commitSha":"d8c2c1e2bf82ee4335aeaae729179459b4790e0d"}},{"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":"e21e71a9ce29475dbf3396ff284ad1cf1b7eca7fd36791c9e403a9bbc4f9a18b"},"properties":{"commitSha":"c6953bdd3e2a2b64a85376c2bed4c153d23f1c8b"}},{"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":"aa84df20664e45ee5552107a55ce229ca891ebba8769d3abb6ebaa6ebde8606c"},"properties":{"commitSha":"664960e50ba4c16ec7f483bcd24e1e8ee69feed0"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7155ef539c11431eedbd29fb54f7565cfcc13ba4ba088f0563a46679cb845fd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd3daddaa99ae7589ab8ff733b1f21ab8921ffcebe53efd535e11b01aff157c8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"338407871e9c53d2625a5754ccc8f84f16e799149817c1d1e310aef9e6213485"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b237c6b0de612dcfb15dcef899f32c50ddf3e0f239f3ee70d9c5b099debd7af"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6f769b115622b8a85dacc6bed7582bf410feed310a0537a21e986fe71be8d8a7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"bdb97b523c0da2930eca9be0f18707165abd0f8ffff34595fa0ac4f94e49d52e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"86a1e1180531a67f29eb27a463370ab08f2903b70dbc1bccdfd5089e61d8d762"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"0a19a6b9b2f3c15178425c348f25aeabdee9d34ea586339a18b491f656342c3a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"1a30460e19fc0dd98944755894d448f19b19a954da5962d7667cbcc24ff4f013"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"d9752282539ca8db58cab9285a5343e7a3aebd299628d08bed1bfb1219a894cc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"6324925c50e9eb2c7ee308397a50ef73381a15355489169761b4f44a31caef1c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"1d10b2f3d4857a12b851651bbee973eade9cab8e7d721d1ddfdb07a8bff5544a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"abaa6f31758fd46e2a976d8cc15291bf250d3c0d5983e08d6e4d35a7f5c78fc3"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1568b73e31a69e0f0a45705405dd6c7d789b47040aba8c81339846204e959c35"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"17828c9b56a7b320dcfb6cae0e1c9cd0e4e4f5063795c2a9ee0812e068e348d9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"e740d272a9eea039c6f3a59b132b217854374b91040086dda10af752d3b9eb67"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"a168cc23e0161b277ca2ed55a83c75cd3c5a993063f05704dcb857309a5e1743"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"8e624fe527a9b74350002c5b5b114ebcd70cee3774ce8bbddf85c7ea2af24953"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"edf526c4064d3d84dcc3f8740ff186da225f1ef46eaca1f5bc09bf806ff31b14"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cb21539137f26824dd78d63c271af8a6fca3e95520a850f4b42496ab30fa9592"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8008e9e8099a179defd6009c5fe8f976679e8049c7b775de7b7792659594698d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5250a54543d69af138bea13cad0cc29d9ce7d7bd0a974ddcc577ebbcf7e0637"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"63d263e7e916366c020f771e5c5ada10d318d920504ecca99d23635881e1da59"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c023e116cc526c283cadd328688692a91038c1ccf31776e8fce41f5f9d0e1f4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c4da963afb057416da7b3d16b3144d595f082611d7c364588900caa7b92b6f7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fcf708d18b7c562590b3eb166d958502118eeb6750a5ecdfff81d3d7c96fb58"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a2eccfcebd5b89524086031fb9956c1f034d581267eba76de70d4789f8cce36c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"85cf06b230074f709ee4c8fcde85e4f321de5c65695d8b6f8a3a0876182c97c1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2dc6d3c173770adf9459a1c33bba2d8a45533c1049304c1b85329a7d32980d0b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5019ba6407b4f844c650c5e93c529b1cdbd8de0dccb9d4027a9555444515963b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"848df921b7b160a8f0e9eabe3e35e66821747e61aaf69ba097f2c9d1ede5cd4f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0cb20a7078baff94dc2dc38b1d5230de644ff516cd7d35459bc084db5ab1a301"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"645bd520f06e4cecdbfa55f4e2345dd314ca312ac9f689732e26a0b6d3f8229e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9426cf7e2dca0103f636205b994b174eacfe29a2d1fb0594b013ac79695158bd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ba939fe820a9b3d90cf848e1932139eedf8c5ccc114dc52bd11e5db88388b2af"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"caa0b516a6c515d2a45dd028861fe1f254d32560748b3416fb26a97dd044338c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7eba03904c0b2771a97510b5b71d81b64f9fdd75dc66d2e1c53b7b7ddf3a2b55"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9829eced10cd4a785b6085451e2fb68baf913fcf9e96acdb461160106a6b02f7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5231f35692c245f6c4b62ee44f41c8a42ce3e3f5a80df674eefcd8563006638"},"taxa":[{"id":"CWE-527","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-538","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1fa5b74aae6c32937e45fc549c31d4e037b1d95c79620b40e4c8a0fcd5b4d94a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ceecc6d3973e7508bcff0f082f2072eb6ca9e8687d533a1757b227967c2bffc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9238d67cc4870b61aa3db21a181dc3594d32d7d16636ee8326ab1060858743aa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"321bb235f414affd5a2484abbed1c6bbc17ea5038c705172986c2a6422273a6c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"896170771fdaaf69b168f89c947bba2401e192b99d8bc6a85542d91c8d189d6e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"022e65b58cfe3f80bd842825423e3a0986fc07d3fed889e78dc714a818a87c39"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"271cfd42939f9bb98151c6364095f70d2fe89625807a4b1da4d6c910e02ea35c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"354b4d1c2f7f31fb0ba045d24636134cb27f447f21e99111a7480697fab59482"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"10b359b51030ddd3ec8f1b3126626da2f84522b677b4d130b48fc164136648ba"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67f3c7356e8afade0aaf12113c1a0870a1dc375799a9fa46ea43ff64d303c700"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce7ea3e35b53e187744a9162be41210c5f5c3729533c50f4d12f80cf8377ffa6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a03d900987ac1ba17a515ab6bd37d8eb168a6d20637a0b7923b42bf6aa9503a3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"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":"3731f5c8f9bcac90fc54e67582b52bea2f25d3bd06bc91f0bc895e7ba03868b9"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"03ed7e7a6b4722780d9bfd3ea1412d1e5197a1bf4ba470781198f091a1945100"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: default_client_api.py \u2194 inactive_client_api.py: \u0060client-cli/client_cli/api/default_client_api.py\u0060 and \u0060client-cli/client_cli/api/inactive_client_api.py\u0060 change together 100% of the time (14 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060fa874e89\u0060 [client] Add support for sending analytics on demand; \u0060db9857c4\u0060 [client-cli] Update to render client analytics information; \u00608183ecfa\u0060 [client-cli] Add support for handling device commands \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-cli/client_cli/api/default_client_api.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c0ae8cc33a019e10d1a7cf9b64774e71684d47252161d25ea7fecb7e9301cf"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"73ea1db94c51add78ed013ecfc639e772c3c9a83d2bb2b18ff2f65dd92635cde"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no accessibility linting at author time and no automated accessibility check in tests or CI. Add your UI toolkit\u0027s own accessibility assertion to the test suite (Flutter \u0060meetsGuideline\u0060, Espresso \u0060AccessibilityChecks\u0060, XCTest \u0060performAccessibilityAudit\u0060), then gate that test in the pipeline. What was searched, so you can tell an absence from a miss: the 2 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ServerApiEndpointClient (25 abstract members): \u0060ServerApiEndpointClient\u0060 declares 25 abstract members: \u0060self\u0060, \u0060server\u0060, \u0060datasetDefinitions\u0060, \u0060datasetDefinition\u0060, \u0060createDatasetDefinition\u0060, \u0060updateDatasetDefinition\u0060, \u0060deleteDatasetDefinition\u0060, \u0060datasetEntries\u0060, \u0060datasetEntry\u0060, \u0060latestEntry\u0060, \u0060createDatasetEntry\u0060, \u0060deleteDatasetEntry\u0060, \u0060publicSchedules\u0060, \u0060publicSchedule\u0060, \u0060datasetMetadata\u0060, \u0060datasetMetadata\u0060, \u0060user\u0060, \u0060resetUserSalt\u0060, \u0060resetUserPassword\u0060, \u0060device\u0060, \u0060pushDeviceKey\u0060, \u0060pullDeviceKey\u0060, \u0060deviceKeyExists\u0060, \u0060ping\u0060, \u0060commands\u0060. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. Those 25 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 24 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/api/clients/ServerApiEndpointClient.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4026437ef5a2fdfd063dde77c28e1dbf47756e1850d641594e78c03da8dbab"}},{"ruleId":"AXR1","level":"warning","message":{"text":"WCAG 4.1.2 reproducibly failed on a screen of the running app: Accessibility-tree rule(s) android-accessible-name, android-editable-name failed on: /FrameLayout[0]/LinearLayout[0]/FrameLayout[0]/LinearLayout[0]/FrameLayout[0]/LinearLayout[0]/FrameLayout[0]/FrameLayout[0]/ViewGroup[0]/ScrollView[1]/LinearLayout[0]/LinearLayout[0]/FrameLayout[0]/LinearLayout[1]/ImageButton[0]#stasis.client.android:id/text_input_start_icon. Read from the Android accessibility tree on an emulator (advisory \u2014 not scored); fix and re-scan to verify it clears."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a671bc38900c9e3813f69bb820c3c630ab76873d1cdbfd44d9048da261a482b7"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: RuleEntity: \u0060RuleEntity\u0060\u0027s public constructor takes \u0060directory\u0060, \u0060pattern\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060RuleEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/persistence/rules/RuleEntity.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b581308bec4c83e01ef2ad7d3709987c978ba1dca04a3c81685f08f07bcc96f1"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ActiveScheduleEntity: \u0060ActiveScheduleEntity\u0060\u0027s public constructor takes \u0060type\u0060, \u0060data\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060ActiveScheduleEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/persistence/schedules/ActiveScheduleEntity.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7eafcd6c4f9ca938ccb67e420a544cf015705f0ecb7444ff94b6dcff418b511"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LocalScheduleEntity: \u0060LocalScheduleEntity\u0060\u0027s public constructor takes \u0060info\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060LocalScheduleEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/persistence/schedules/LocalScheduleEntity.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"016d7d3177506d0d5d82652de17964bbae06f599f57c556ac569a1a816977c01"}},{"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":"M4","level":"note","message":{"text":"README/code drift: deployment/dev/README.md names \u0060docker-compose-no-auth-has.yml\u0060, but no file or folder \u0060docker-compose-no-auth-has.yml\u0060 exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deployment/dev/README.md"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd4b8e19b73f54cf7ab5d0f845e48475d454374e399f0844c7fa1d83a02b6d9"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: deployment/production/README.md names \u0060.stasis.internal\u0060, but no file or folder \u0060.stasis.internal\u0060 exists. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deployment/production/README.md"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88babcbc52f8d3cc78198fca45a694ccaf73fe148467c033982df9198351adb"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 3/7 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060client-ui\u0060, \u0060client-ui/macos\u0060, \u0060identity-ui\u0060, \u0060server-ui\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced \u2014 a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is configured \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060Dockerfile\u0060 builds the web-server image that serves this application, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/deployment/production/Dockerfile"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7e8180e83471add26187b7872519b61295bcd743758c2db8adf5d02cdaf2d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_maxCrates != null \u0026\u0026 _maxStorage != null \u0026\u0026 _maxStoragePerCrate != null \u0026\u0026 _maxRetention != null \u0026\u0026 _minRetention != null\u0060 appears character-identically in 2 files \u2014 server-ui/lib/pages/manage/components/forms/device_limits_field.dart, server-ui/lib/pages/manage/components/forms/user_limits_field.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/pages/manage/components/forms/device_limits_field.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f056391b9a27435d3324b45704b361e1be49460592d416c25518cd888e085b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_policyVersions != null || _policyType != \u0027at-most\u0027\u0060 appears character-identically in 2 files \u2014 client-ui/lib/pages/components/forms/policy_field.dart, server-ui/lib/pages/manage/components/forms/policy_field.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/forms/policy_field.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac15051cdd106649db6411723aa725ff2c1d3c2a121a7224e95d09ec11bfacf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_showPolicyVersions \u0026\u0026 (actualValue == null || actualValue \u003C= 0)\u0060 appears character-identically in 2 files \u2014 client-ui/lib/pages/components/forms/policy_field.dart, server-ui/lib/pages/manage/components/forms/policy_field.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/forms/policy_field.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f531813aa163e6f2067441e0c4180ed2c4e8e67a26a9ab84111dfd83d8c0f141"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060credentials != null \u0026\u0026 (!credentials.isExpired || credentials.canRefresh)\u0060 appears character-identically in 2 files \u2014 identity-ui/lib/api/oauth.dart, server-ui/lib/api/oauth.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/lib/api/oauth.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"18aa58e9947ebd18709cafbfa8fb0fb1795a582bf4b4ec61f2d857413f513657"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errorMessage != null \u0026\u0026 (actualValue == null || actualValue.isEmpty)\u0060 appears character-identically in 3 files \u2014 client-ui/lib/pages/components/entity_form.dart, identity-ui/lib/pages/manage/components/entity_form.dart, server-ui/lib/pages/manage/components/entity_form.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/entity_form.dart"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81ef4ff487feb1fa8c4f0455ad2ba04c5cb140110545ff405510357d115461e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060other is Pair \u0026\u0026 a == other.a \u0026\u0026 b == other.b\u0060 appears character-identically in 2 files \u2014 client-ui/lib/utils/pair.dart, server-ui/lib/utils/pair.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/utils/pair.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"381ade8cf476f877e7fa9979e20714795edcabd02d6aa22d22e2d0796715400b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060other is Triple \u0026\u0026 a == other.a \u0026\u0026 b == other.b \u0026\u0026 c == other.c\u0060 appears character-identically in 2 files \u2014 client-ui/lib/utils/triple.dart, server-ui/lib/utils/triple.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/utils/triple.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ead652f38e4b2793d1d49802f4d51cef4935a2ba7ae14a2baa1dcbf9d76dc7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parameterValue != null \u0026\u0026 parameterValue.trim().isNotEmpty\u0060 appears character-identically in 2 files \u2014 identity-ui/lib/pages/default/components.dart, server-ui/lib/pages/default/components.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/lib/pages/default/components.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78dab46df5ce34019f759ba890089b1f5bc6b5236f1ce9a7330bc3032259310"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode \u003E= 400 \u0026\u0026 response.statusCode \u003C 500\u0060 appears character-identically in 3 files \u2014 client-ui/lib/api/api_client.dart, identity-ui/lib/api/default_api_client.dart, server-ui/lib/api/api_client.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/api/api_client.dart"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee932a7ddf1f44609590a074f47f8e54f63b8e25cf4f6dad95fdfb6c93063ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060snapshot.data != null \u0026\u0026 snapshot.connectionState == ConnectionState.done\u0060 appears character-identically in 9 files \u2014 client-ui/lib/pages/common/components.dart, client-ui/lib/pages/components/forms/dataset_entry_field.dart, client-ui/lib/pages/login.dart, identity-ui/lib/pages/authorize/authorization_callback.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/common/components.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3a28b3b35efcc5149ec3d2a9284f86a7f62bf224291c8e7d07e13a704da3f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060snapshot.error == null || snapshot.error.runtimeType == RedirectPending\u0060 appears character-identically in 2 files \u2014 identity-ui/lib/pages/page_router.dart, server-ui/lib/pages/page_router.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/lib/pages/page_router.dart"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81aa57ee3d7deed5006aec4f492d4bd7636d9e83563111dd90fefaea50b62c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060widget.errorMessage != null \u0026\u0026 (actualValue == null || actualValue \u003C= 0)\u0060 appears character-identically in 4 files \u2014 client-ui/lib/pages/components/forms/duration_field.dart, client-ui/lib/pages/components/forms/file_size_field.dart, server-ui/lib/pages/manage/components/forms/duration_field.dart, server-ui/lib/pages/manage/components/forms/file_size_field.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/components/forms/duration_field.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b74a6c545ca96b5054c34ff1241634f5ebe1cfffe6340ffd7e7a22cafee76ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existing.size != current.size || existing.checksum != current.checksum\u0060 appears character-identically in 2 files \u2014 client-android/lib/src/main/kotlin/stasis/client_android/lib/model/SourceEntity.kt, client-android/lib/src/main/kotlin/stasis/client_android/lib/model/TargetEntity.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/lib/src/main/kotlin/stasis/client_android/lib/model/SourceEntity.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c454a3a73a35f1d3faf4be1aa92c6b1b329e319423b7295f254bb38e7c69218d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it is Failure \u0026\u0026 it.exception is InvalidUserCredentials\u0060 appears character-identically in 3 files \u2014 client-android/app/src/main/java/stasis/client_android/activities/fragments/login/MoreOptionsReEncryptDialogFragment.kt, client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/UpdatePasswordFragment.kt, client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/UpdateSaltFragment.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/login/MoreOptionsReEncryptDialogFragment.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"11978e265f06dc79420a00b0e2eea10734529baa0ac5f84c7b0d07711642d074"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060it is Try.Failure \u0026\u0026 it.exception is InvalidUserCredentials\u0060 appears character-identically in 3 files \u2014 client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/ImportDialogFragment.kt, client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/PullDialogFragment.kt, client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/PushDialogFragment.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/ImportDialogFragment.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58cdddb7a0e29712c4e51440ab80458aeff78cc1d62f059922fe4ef8c5f9989"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060password == passwordConfirmation \u0026\u0026 password.isNotEmpty()\u0060 appears character-identically in 3 files \u2014 client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/ImportDialogFragment.kt, client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/PullDialogFragment.kt, client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/PushDialogFragment.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-android/app/src/main/java/stasis/client_android/activities/fragments/settings/ImportDialogFragment.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"932909a07de24026cbefd6fbc897b6f7a74bdb21dc5ac4e1e56979be1f2bd240"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not force and len(_get_processes(main_class=ctx.obj.service_main_class)) \u003E 0\u0060 appears character-identically in 2 files \u2014 client-cli/client_cli/cli/bootstrap.py, client-cli/client_cli/cli/maintenance.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-cli/client_cli/cli/bootstrap.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"822efb9b69f6207137003516a9312e854de091610c3b14c6ba833076e5772b9a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not response[\u0027successful\u0027] and not isinstance(ctx.obj.rendering, JsonWriter)\u0060 appears character-identically in 2 files \u2014 client-cli/client_cli/cli/bootstrap.py, client-cli/client_cli/cli/maintenance.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-cli/client_cli/cli/bootstrap.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7c978f01f66bbdf4eec8c194663907db622cbdfcf622e631d20199d0797e0e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060client.id == request.client_id \u0026\u0026 request.redirect_uri.forall(_ == client.redirectUri)\u0060 appears character-identically in 2 files \u2014 identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala, identity/src/main/scala/stasis/identity/api/oauth/PkceAuthorizationCodeGrant.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity/src/main/scala/stasis/identity/api/oauth/AuthorizationCodeGrant.scala"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea96ca41499c0165790c5f644100faaa1513fe04ad7938808dfd2fcd10b9a9eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existing.size != current.size || existing.checksum != current.checksum\u0060 appears character-identically in 2 files \u2014 client/src/main/scala/stasis/client/model/SourceEntity.scala, client/src/main/scala/stasis/client/model/TargetEntity.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/model/SourceEntity.scala"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33d0bf706242ad01eec0354f4de046340725c105378634580487e3d1d039e18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060keyCol.name.toLowerCase == \u0022key\u0022 \u0026\u0026 valueCol.name.toLowerCase == \u0022value\u0022\u0060 appears character-identically in 2 files \u2014 core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala, identity/src/main/scala/stasis/identity/persistence/internal/LegacyKeyValueStore.scala. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/stasis/core/persistence/backends/slick/LegacyKeyValueStore.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d03f26a282f72a0ef7f6bf674867a038277544eee44200324ba23c6bc43c6ec"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_SearchState\u0060 carries a disposal duty \u2014 a \u0060State\u0060, so the framework calls its \u0060dispose()\u0060 when it leaves the tree \u2014 and it creates \u0060_searchController\u0060 itself (line 27, \u0060TextEditingController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_searchController.dispose()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060TextEditingController\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_searchController.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/search.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b6f6860d19e70d5a66a49bff21ddf526f493528497e5045b1b9f996358ccdf"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_RecoverState\u0060 carries a disposal duty \u2014 a \u0060State\u0060, so the framework calls its \u0060dispose()\u0060 when it leaves the tree \u2014 and it creates \u0060_definitionController\u0060 itself (line 27, \u0060TextEditingController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_definitionController.dispose()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060TextEditingController\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_definitionController.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/recover.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06e3cbebbb708fab23d141457c0da67b0ca8201bee5e8fab98c48b254f90c09"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_RecoverState\u0060 carries a disposal duty \u2014 a \u0060State\u0060, so the framework calls its \u0060dispose()\u0060 when it leaves the tree \u2014 and it creates \u0060_queryController\u0060 itself (line 29, \u0060TextEditingController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_queryController.dispose()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060TextEditingController\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_queryController.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client-ui/lib/pages/recover.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f408ca618ec2f26b9cc8a7794597dddbd140881b61f51a48e835720ae9379e9"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_EntityTableState\u0060 carries a disposal duty \u2014 a \u0060State\u0060, so the framework calls its \u0060dispose()\u0060 when it leaves the tree \u2014 and it creates \u0060_filterController\u0060 itself (line 37, \u0060TextEditingController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_filterController.dispose()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060TextEditingController\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_filterController.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/lib/pages/manage/components/entity_table.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91585f8824292198ab50806c5b88c150124cac9cb6e320769f511ea98c42ef5"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 159 is called with an argument built by \u0060\u0022\u2026\u0022.join(command)\u0060 (line 159), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"release.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21316cb1908c473663626c05c887ceb6529a1793ee3a9f837446d746ea00340"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 57 is called with an argument built by \u0060(endpoints.api.map(_.id) \u002B\u002B endpoints.core.map(_.id) \u002B\u002B endpoints.discovery.map(_.id)).mkString(\u0022\u2026\u0022, \u0022\u2026\u0022, \u0022\u2026\u0022)\u0060 (line 60), whose cost grows with the collection it walks. Scala evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: the logger takes a built \u0060String\u0060 (SLF4J, Akka/Pekko \u0060LoggingAdapter\u0060, \u0060context.log\u0060), and there is no \u0060isDebugEnabled\u0060/\u0060isTraceEnabled\u0060 test and no debug flag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/stasis/core/discovery/providers/server/ServiceDiscoveryProvider.scala"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f2f0125ab7f2cbc59ce568cddfa3bf1ec9196d65bf0a69bc8380328e4e8573"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deployment/dev/scripts/generate_artifacts.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1879cee229800f6e5b992bf311138567a6e0d9b5a4e7d24312bc81ece064f5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/deployment/production/stage.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7f852c4051655a1043f6c2749023a5403152d7bcd90127677fe4286da4eb9e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/deployment/production/build.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc8898da8ef6c59e91d84fb958c192175ebd6be028d619053421f5ecb094013"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/deployment/production/stage.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bcc640b0e43753247f76032275bd03a592e3025a623c78fc1fceb22b3b45b7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/deployment/production/build.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a0c9361053e93dd651db8cdbeb59b75b5944f2b4bf6b4e1977ddc4aff115ce"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 71 is handed an interpolated string as its message through SLF4J, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.error(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. scala-logging\u0027s \u0060LazyLogging\u0060 logger takes an \u0060s\u0022\u2026\u0022\u0060 message apart into that pattern at compile time, so switching to it is also a fix."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/stasis/core/persistence/staging/StagingStore.scala"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64bbcd14b6b9bf598764329953ca4fb3b815d708ef96c6d62ba504a150c526a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060partIdFromPath\u0060 swallows every exception into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch case or in the Scaladoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/scala/stasis/client/ops/recovery/stages/EntityProcessing.scala"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"953318b1c43abaea3102ba05a3108b6c2a667e37250084e4f97fd534c8f07969"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060container_executable\u0060 swallows every exception into \u0060return \u0027docker\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deployment/dev/scripts/generate_artifacts.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d22cda9d01ed363f67737f8719eef4729c60249997957028f204094e1a432b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060container_executable\u0060 swallows every exception into \u0060return \u0027docker\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/deployment/production/build.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"41260ff7559ed68afd235ad423823020c6187daec18cdaece4ee7b15a5c4f5af"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060container_executable\u0060 swallows every exception into \u0060return \u0027docker\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"identity-ui/deployment/production/stage.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadd4d1bb6084e92b9b9cba4487f5cd71b70c0c4c53791f04a7bc684d310aa74"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060container_executable\u0060 swallows every exception into \u0060return \u0027docker\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/deployment/production/build.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a04ea39d40a3a9d274e7f77df05c07759004514472f7f9b4a50c312f542862c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060container_executable\u0060 swallows every exception into \u0060return \u0027docker\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-ui/deployment/production/stage.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ce08d8996b5bd2b7118475b1ba4cd3f2b8006695372ee58766038f1693aedd"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-527","guid":"79b27cde-9d04-1a54-b64b-d5bb9b4a8ee7","name":"CWE-527","shortDescription":{"text":"CWE-527"},"helpUri":"https://cwe.mitre.org/data/definitions/527.html"},{"id":"CWE-538","guid":"3baa1f05-df1b-ae58-9ee0-1d790ff4a989","name":"Insertion of Sensitive Information into Externally-Accessible File or Directory","shortDescription":{"text":"Insertion of Sensitive Information into Externally-Accessible File or Directory"},"helpUri":"https://cwe.mitre.org/data/definitions/538.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":78,"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."]}]}