{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXA1","name":"Runtime unauthenticated reachability","shortDescription":{"text":"Runtime unauthenticated reachability"},"helpUri":"https://codehealth.canine.dev/dimensions/AXA1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXH1","name":"Runtime security headers","shortDescription":{"text":"Runtime security headers"},"helpUri":"https://codehealth.canine.dev/dimensions/AXH1"},{"id":"AXI1","name":"Runtime container hardening","shortDescription":{"text":"Runtime container hardening"},"helpUri":"https://codehealth.canine.dev/dimensions/AXI1"},{"id":"AXR1","name":"Runtime accessibility (rendered)","shortDescription":{"text":"Runtime accessibility (rendered)"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"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":"_core._run_single_deploy (cyclomatic 67): _core._run_single_deploy has cyclomatic complexity 67 (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":"src/prefect/cli/deploy/_core.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba2fc7f3dc9a005d9b20b2d090e4694e69d22ffadd99d365c6b920d05f97467"}},{"ruleId":"D1","level":"warning","message":{"text":"Task.__init__ (cyclomatic 57): Task.__init__ has cyclomatic complexity 57 (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":"src/prefect/tasks.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7140634f5c80ce49e78203fb76de6cf9cc6e3d34dfa1fcd5328bf5976abdf4"}},{"ruleId":"D1","level":"warning","message":{"text":"nearestParentVertical.getVerticalNearestParentLayout (cyclomatic 56): nearestParentVertical.getVerticalNearestParentLayout has cyclomatic complexity 56 (threshold 15). Most of this is not in the body itself: 3 of the 56 points are its own statements and the rest belongs to 16 function items inside it that branch (argueWithCompetingUpstreamPlacement, getNearestParentPosition, placeNearUpstreamNode, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/workers/layouts/nearestParentVertical.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64fd51fc6121e57b733097a442134f7d4a8ec8119287de019c17959bdb35e25"}},{"ruleId":"D1","level":"warning","message":{"text":"IntervalSchedule._get_dates_generator (cyclomatic 54): IntervalSchedule._get_dates_generator has cyclomatic complexity 54 (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":"src/prefect/server/schemas/schedules.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"02114ff2a4be82a835ba049e0a31fe4742493cb2a3d19cfa8efd7ba2e43f943d"}},{"ruleId":"D1","level":"warning","message":{"text":"cloud.login (cyclomatic 46): cloud.login has cyclomatic complexity 46 (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":"src/prefect/cli/cloud/__init__.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2563558e152c8c6ba7ef0911f8c134883c2641373bed3cd8bc462e9f0bbb4dac"}},{"ruleId":"D1","level":"warning","message":{"text":"Flow.__init__ (cyclomatic 45): Flow.__init__ has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"8510eaee317e3246117e3a4126b7b8bf25eaefab0eec60875ed1d33f5187be69"}},{"ruleId":"D1","level":"warning","message":{"text":"collections.visit_collection (cyclomatic 45): collections.visit_collection has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/collections.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"af15d344fdfa5222f14658649c01818a958e928d80dc29d6a83a585876caddea"}},{"ruleId":"D1","level":"warning","message":{"text":"deployments.update_deployment (cyclomatic 43): deployments.update_deployment has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce00e32c0cf70ddaed83850add21c9fb29dc127cb5b16c98a68845d142834e2"}},{"ruleId":"D1","level":"warning","message":{"text":"flow-run-header.FlowRunHeader (cyclomatic 41): flow-run-header.FlowRunHeader has cyclomatic complexity 41 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e34e7ea12b5c363082c2823c61633c97c88b32fef2788ca0d50ce3108269611"}},{"ruleId":"D1","level":"warning","message":{"text":"observer._replicate_pod_event (cyclomatic 40): observer._replicate_pod_event has cyclomatic complexity 40 (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":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"206b809ba15a66fec7ad883a622e7e807325ff0943b1ce8232f0d8be843078b1"}},{"ruleId":"D1","level":"warning","message":{"text":"ECSWorker._prepare_task_run_request (cyclomatic 35): ECSWorker._prepare_task_run_request 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":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75dae6357ffd568f3962a9bd054a4aec218993ecb18e867595e56bed44b1b2d"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectDbtRunner.invoke (cyclomatic 35): PrefectDbtRunner.invoke has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/runner.py"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a0089725f0f226160a23d34e386e3551cd48bf86f3f193a996689bb4936a56"}},{"ruleId":"D1","level":"warning","message":{"text":"urls.url_for (cyclomatic 35): urls.url_for 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":"src/prefect/utilities/urls.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edc8e3ae9ab7dd9c971c7c542a4662c2ad9ac086059c1cdd63b417abc0f929a"}},{"ruleId":"D1","level":"warning","message":{"text":"action-details.ActionDetailsType (cyclomatic 35): action-details.ActionDetailsType has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/action-details/action-details.tsx"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2af9823b1a0a9ac5ab4e0ac06e35761d02538f65b2ff937800e1c8ac968b73"}},{"ruleId":"D1","level":"warning","message":{"text":"_config._apply_cli_options_to_deploy_config (cyclomatic 33): _config._apply_cli_options_to_deploy_config has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_config.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d3ca34caff5fad9b5cfa522d01fd97c5539447c0018a42e8c35b3d27408b55"}},{"ruleId":"D1","level":"warning","message":{"text":"deployment.run (cyclomatic 33): deployment.run has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deployment.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"f618c87a2a90ac734a7c3e5f293d0d60fc6a88ea2dcb2a0e4e186281482888d1"}},{"ruleId":"D1","level":"warning","message":{"text":"runner.adeploy (cyclomatic 32): runner.adeploy has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (runner.deploy) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30d442854324ae2db81c7a70dd012c601e48a9abdc51094e38b2ee81173c8e3"}},{"ruleId":"D1","level":"warning","message":{"text":"runner.deploy (cyclomatic 32): runner.deploy has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (runner.adeploy) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"0038b934c0858f1fb107154c8dd771863d1ceebe4df11131c4b12b5db955b92e"}},{"ruleId":"D1","level":"warning","message":{"text":"importtools.safe_load_namespace (cyclomatic 32): importtools.safe_load_namespace has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/importtools.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8fb13daa9e34b05302f1aae321dfd25cf40127097b1e5274ea2e8d7f172d30"}},{"ruleId":"D1","level":"warning","message":{"text":"work-pool-create-wizard.WorkPoolCreateWizard (cyclomatic 32): work-pool-create-wizard.WorkPoolCreateWizard has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 8 of the 32 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 58, handleSubmit, a function literal at line 60, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/create/work-pool-create-wizard.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4206d5cfd1dae7176639f79259145fa5cdb49ea6b4bb487ba2a1eaf5e657682c"}},{"ruleId":"D1","level":"warning","message":{"text":"ECSWorker._prepare_task_definition (cyclomatic 31): ECSWorker._prepare_task_definition has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01b840361c8e1873531dd7cf7c5c04c906ca72cd22385c432e33865f49e9892"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_run.logs (cyclomatic 31): flow_run.logs has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/flow_run.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"030d687fcb1cc53e2358da0a8b0dca2f0711b66d4618ecdbe0013269dc443575"}},{"ruleId":"D1","level":"warning","message":{"text":"index.FlowRunTooltip (cyclomatic 31): index.FlowRunTooltip has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 13 of the 31 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 467, 524, 517, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/flow-run-activity-bar-graph/index.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"7166fdd07e1435e29ecc07396cf24ea08279172f990b451b155934f52ad1cafb"}},{"ruleId":"D1","level":"warning","message":{"text":"SPCSWorkerConfiguration.prepare_for_flow_run (cyclomatic 30): SPCSWorkerConfiguration.prepare_for_flow_run has cyclomatic complexity 30 (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":"src/integrations/prefect-snowflake/prefect_snowflake/experimental/workers/spcs.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"005cee4f46bb7007440cadd06e1dde757714251649209ba3bfb14b657a2f6d87"}},{"ruleId":"D1","level":"warning","message":{"text":"config.view (cyclomatic 30): config.view has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/config.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6b7e326660413796f7efca192a8e1cd01cd95f01034ce023cc55b19b26c88a"}},{"ruleId":"D1","level":"warning","message":{"text":"deployment._set_schedule_activation (cyclomatic 30): deployment._set_schedule_activation has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deployment.py"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37c219ff2206dcce7cbbb8c1c1ab3c6e6a108cc6fcd0931d30ffc9b9db1e7a6"}},{"ruleId":"D1","level":"warning","message":{"text":"task_run_recorder._record_bulk_task_run_events (cyclomatic 30): task_run_recorder._record_bulk_task_run_events has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/task_run_recorder.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1c1417a57cb4b112ed40a5071763fa34d20f58f4565bf88c0acf9287d7ca32"}},{"ruleId":"D1","level":"warning","message":{"text":"script.loadAmplitude (cyclomatic 30): script.loadAmplitude has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 10 function items inside it that branch (a function literal at line 330, getScrollPercent, a function literal at line 279, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/script.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"4159a4f16fc839736afa4a6c8a6300342303d10bef1f3b746f5aef8764a810b4"}},{"ruleId":"D1","level":"warning","message":{"text":"fetcher.fetch_sdk_data (cyclomatic 28): fetcher.fetch_sdk_data has cyclomatic complexity 28 (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":"src/prefect/_sdk/fetcher.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a069b837e98fd626a40acebf3a0a4620e29a764b2cc9495552f45fa3812f2a0d"}},{"ruleId":"D1","level":"warning","message":{"text":"api.api_request (cyclomatic 28): api.api_request has cyclomatic complexity 28 (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":"src/prefect/cli/api.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cd2aca282087c57ccb64db0c116c14a351afe9fcabf7b7c190d37df4416fac"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncFlowRunEngine.initialize_run (cyclomatic 28): AsyncFlowRunEngine.initialize_run has cyclomatic complexity 28 (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":"src/prefect/flow_engine.py"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe2790df5e953d5019619ee40ed16a7f8330e4b9840ea1298f32e1e3e0fbe25"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectDbtOrchestrator._execute_per_node (cyclomatic 27): PrefectDbtOrchestrator._execute_per_node has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96d47888b9f46f8c8c709a110586193da9b3558ab49373488c33325c3f5da15"}},{"ruleId":"D1","level":"warning","message":{"text":"observer._mark_flow_run_as_crashed (cyclomatic 27): observer._mark_flow_run_as_crashed has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"73539e62999b32da2e3338a7607272b0cc0763b21d56e4519d9187e788f67846"}},{"ruleId":"D1","level":"warning","message":{"text":"deployment.create_schedule (cyclomatic 27): deployment.create_schedule has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deployment.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"881330c726de9b658d660753ef8861ec687e9d234b9ec9163bb061b48c402c7c"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_runs.run_deployment (cyclomatic 27): flow_runs.run_deployment has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f2b1823da3cbe43f05074ffec44e2a6eee4298861e9850a8545e3df5a96d4b"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncPostgresConfiguration.engine (cyclomatic 27): AsyncPostgresConfiguration.engine has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/configurations.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b19cb23b6bc1feae8a011ec119ce83b7746a435cd49341edc2a3e547ce96199"}},{"ruleId":"D1","level":"warning","message":{"text":"rich-date-range-selector.RichDateRangeSelector (cyclomatic 27): rich-date-range-selector.RichDateRangeSelector has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 13 of the 27 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 288, a function literal at line 296, a function literal at line 268, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a80fbb6dc261755f9841c43d93f452ac4802e5444043624549dd1ec7843a3c8"}},{"ruleId":"D1","level":"warning","message":{"text":"ecs.mark_runs_as_crashed (cyclomatic 26): ecs.mark_runs_as_crashed has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fa21323d30d77059d79d6ad464bed09929b3555cdfa77a5a057c1c6136ae0a"}},{"ruleId":"D1","level":"warning","message":{"text":"Block._to_block_document (cyclomatic 26): Block._to_block_document has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/core.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"574c4aba62292ee8a96d97eee9e550f737928605d158afdeea4f6035e464f014"}},{"ruleId":"D1","level":"warning","message":{"text":"templating.apply_values (cyclomatic 26): templating.apply_values has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (templating.apply_values) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/templating/__init__.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae1dd62c0efd7406705e6dc4154853a98138cb8b9bb06a872f273c3ceec8d6a"}},{"ruleId":"D1","level":"warning","message":{"text":"templating.apply_values (cyclomatic 26): templating.apply_values has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (templating.apply_values) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/templating/__init__.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc87615ad2c60b30fa2d7f93dfae73b7b3f557c9d10ff38cc79a93407220a42e"}},{"ruleId":"D1","level":"warning","message":{"text":"MigratableAutomation.get_dependencies (cyclomatic 25): MigratableAutomation.get_dependencies has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/automations.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bd779577722730af46c519b4f54a2b455f3f8170ff472c36ce4939d0c47900"}},{"ruleId":"D1","level":"warning","message":{"text":"work_pool.create (cyclomatic 25): work_pool.create 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":"src/prefect/cli/work_pool.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4ecccace1e8e99ac7aa62727e76c2e6fe75a41d32405b532e3fb48f1b70229"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_runs.arun_deployment (cyclomatic 25): flow_runs.arun_deployment has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6d7068dce58445c955ef4d3bb9dd297892b53fcaaee3346c2bf4f7ef329429"}},{"ruleId":"D1","level":"warning","message":{"text":"text_search_parser.parse_text_search_query (cyclomatic 25): text_search_parser.parse_text_search_query has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/text_search_parser.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc12c42c3d85984bbdd6a8b9b5710e4c392265f6ed0599bd2bd566be95a60119"}},{"ruleId":"D1","level":"warning","message":{"text":"Task.with_options (cyclomatic 25): Task.with_options 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":"src/prefect/tasks.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c61d0c1174a08ebd0e836be5d8afd6240ac4aa65d946e9d1e2c4cc435cd50b4"}},{"ruleId":"D1","level":"warning","message":{"text":"flow-run-graph.FlowRunGraph (cyclomatic 25): flow-run-graph.FlowRunGraph has cyclomatic complexity 25 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aca5882a7858f5616c6d6135bfdb9b325ba953869c44fb99cd08961ea2e2f87"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectDbtOrchestrator._execute_per_wave (cyclomatic 24): PrefectDbtOrchestrator._execute_per_wave has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f69f7e37e7195c5177d68f273fa6a991c92a8dd658f5bae29ec02b5952fec60"}},{"ruleId":"D1","level":"warning","message":{"text":"DockerWorker._submit_adhoc_run (cyclomatic 24): DockerWorker._submit_adhoc_run has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"72510a8fd181a134e7883b651f3e78d70f964d6521078c53ddffa3e8f6127e55"}},{"ruleId":"D1","level":"warning","message":{"text":"ValidatedFunction.validate_call_args (cyclomatic 24): ValidatedFunction.validate_call_args has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/pydantic/validated_func.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"163cf103fbd9624fe3426569483689c747f318ccd407428c00df3d927b435202"}},{"ruleId":"D1","level":"warning","message":{"text":"plugins._diagnose_plugins (cyclomatic 24): plugins._diagnose_plugins has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/plugins.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9595bb0daeb77c29843fde47d8be6133d14c5387802d13eba37ac35bca073cd4"}},{"ruleId":"D1","level":"warning","message":{"text":"deployments.bulk_create_flow_runs_from_deployment (cyclomatic 24): deployments.bulk_create_flow_runs_from_deployment has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f19ae06dc367081f92e681b50533c063e72ba6bdff95aa70035b2f67136933c"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.invoke_and_assert (cyclomatic 24): cli.invoke_and_assert has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/testing/cli.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57a9d8abfafbdcbbe7675016652d7743b7d65ab247136b07e566449c972e56f"}},{"ruleId":"D1","level":"warning","message":{"text":"event-resource-combobox.EventResourceCombobox (cyclomatic 24): event-resource-combobox.EventResourceCombobox has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 65, a function literal at line 139, a function literal at line 128, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2142567e75c9dbc4b109f7760ba15e777dd7bb8891c7c4a4d9b3603da423d715"}},{"ruleId":"D1","level":"warning","message":{"text":"states.return_value_to_state_sync (cyclomatic 23): states.return_value_to_state_sync has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/states.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc57017af04bdbe929cf6047c8f0aa983f26640755dab965b047022d45d64bda"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlChannel._handle_connection (cyclomatic 23): ControlChannel._handle_connection has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/_control_channel.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2e510a29be13ad939535ee519bec79d98d3850c599d253e6bc8f6a462a3cef"}},{"ruleId":"D1","level":"warning","message":{"text":"states.return_value_to_state (cyclomatic 23): states.return_value_to_state has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/states.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"f076e2644193799d6566c8d317d04481baa640112d681b5d5ee183cd765a684e"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.RouteComponent (cyclomatic 23): dashboard.RouteComponent has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 792, 956, 868, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b27ef003b91658e49613930a3e6816b1b64e4d05a3b8754db0940b5ac03db6"}},{"ruleId":"D1","level":"warning","message":{"text":"schema-form-property.SchemaFormProperty (cyclomatic 23): schema-form-property.SchemaFormProperty has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 71, a function literal at line 124, a function literal at line 146, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-property.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcbbf493ee480b01f19437e5caf8d02ac8fd2ed058aea3f1c0b9dc74a951ba2"}},{"ruleId":"D1","level":"warning","message":{"text":"control_listener._reader_loop (cyclomatic 22): control_listener._reader_loop has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/control_listener.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"826ed3c8300cca6d5e3f3aca1b2254ea12de03b09997d2086dca967af8e3761d"}},{"ruleId":"D1","level":"warning","message":{"text":"automation.create (cyclomatic 22): automation.create has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/automation.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17ecc6fd3afa7f7ad6dad76a70f480b2fcb503619f826886fcb5e4453f3a70c"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.init (cyclomatic 22): _commands.init has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_commands.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e221cc509bab29f02abc22290e2ebbca34770d7a656ca1a60556a7c59a08cb6d"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_run.retry (cyclomatic 22): flow_run.retry has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/flow_run.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf08853c0a7a8d442872f456e4e6e7dbe7fb2fd32f8a09bbaf0889751fbf49a"}},{"ruleId":"D1","level":"warning","message":{"text":"worker.start (cyclomatic 22): worker.start has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/worker.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98dfeb1e90b3a2298f27b41fe907590fcb052f18eac29bb6324a4f21baae30d"}},{"ruleId":"D1","level":"warning","message":{"text":"SecureTaskConcurrencySlots.before_transition (cyclomatic 22): SecureTaskConcurrencySlots.before_transition has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f3064e664a8f2bf88e3ec19e50b0a2dc76bd08974a51bfaa86645c04374de5"}},{"ruleId":"D1","level":"warning","message":{"text":"Settings.post_hoc_settings (cyclomatic 22): Settings.post_hoc_settings has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/models/root.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a7735579bc5155d3969bcb36787616eb3aaa3a151230a9703f1a654f9e6a21"}},{"ruleId":"D1","level":"warning","message":{"text":"ProcessPoolTaskRunner._forward_subprocess_messages (cyclomatic 22): ProcessPoolTaskRunner._forward_subprocess_messages has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"64826cb9cf2bc49bc8a2d514c956f1526a0b7c48c4a9879de2098934c1f612b3"}},{"ruleId":"D1","level":"warning","message":{"text":"jobs._build_trigger_job_run_options (cyclomatic 21): jobs._build_trigger_job_run_options has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e440a71fe5bea7d4b99d8d0c7103e864403f404682f8508c9aeeff8ec489ef0"}},{"ruleId":"D1","level":"warning","message":{"text":"DbtCoreExecutor._invoke (cyclomatic 21): DbtCoreExecutor._invoke has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c73d335df866130acf066940f523f040c7c3edc2ee5a89e0332b2108ee6821"}},{"ruleId":"D1","level":"warning","message":{"text":"ast_utils.find_prefect_decorated_functions_in_file (cyclomatic 21): ast_utils.find_prefect_decorated_functions_in_file has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/ast_utils.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a1bd784025c32565fe68f180726e93f6c264c6ac600ed17da643842fc75e3d"}},{"ruleId":"D1","level":"warning","message":{"text":"automation.delete (cyclomatic 21): automation.delete has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/automation.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"b020c10b48acb63b8808e6d60c56f5fdadd09b9e6328b3e41582ef01df05dbf7"}},{"ruleId":"D1","level":"warning","message":{"text":"task_run.ls (cyclomatic 21): task_run.ls has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/task_run.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7feb53f78affe838a2a66ac310a87093e475340766e24944516f5cc64dc8ae9"}},{"ruleId":"D1","level":"warning","message":{"text":"task_run.logs (cyclomatic 21): task_run.logs has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/task_run.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"406ba25355b4a1cc606d32bada1f2ad867cf11827ec7b2bbce7bb36354d03d76"}},{"ruleId":"D1","level":"warning","message":{"text":"work_queue.ls (cyclomatic 21): work_queue.ls has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_queue.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4ae8bd725c8473cfaa4e7f1519151ecb8c65239c073beaabadf1046c775ab7"}},{"ruleId":"D1","level":"warning","message":{"text":"RunnerDeployment._create (cyclomatic 21): RunnerDeployment._create has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (RunnerDeployment._create_sync) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ded268f77c555147bf2253cb5ca33bf16925dc72a0915012796d10ca15f7d4"}},{"ruleId":"D1","level":"warning","message":{"text":"RunnerDeployment._create_sync (cyclomatic 21): RunnerDeployment._create_sync has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (RunnerDeployment._create) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"d475b9f5914d5e85db3cd0b9927d6046795eefa5b9032e3c87645d4ec0850f3c"}},{"ruleId":"D1","level":"warning","message":{"text":"Flow.with_options (cyclomatic 21): Flow.with_options has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc2a8cc67554fea11e790a5ddeabf2766862a288c95b4854256e6439d8a29c1"}},{"ruleId":"D1","level":"warning","message":{"text":"CancellationManager.cancel (cyclomatic 21): CancellationManager.cancel has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/_cancellation_manager.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5976ed2a9349f8b59f411582b64083e9e888fa30f9cd4f6a99c34ecc02f07274"}},{"ruleId":"D1","level":"warning","message":{"text":"triggers.evaluate (cyclomatic 21): triggers.evaluate has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/triggers.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b2e197edd0344fdbc25a2dcabb82482e07880ac7edf71a40941cfa4dc4e799"}},{"ruleId":"D1","level":"warning","message":{"text":"Task.create_run (cyclomatic 21): Task.create_run has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/tasks.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b6eef8e46dc7430b65820e3d09f86ea95739ec8f7b749596208f6598b72ab6"}},{"ruleId":"D1","level":"warning","message":{"text":"Task.create_local_run (cyclomatic 21): Task.create_local_run has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/tasks.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d1f913422ac1fb4e8051e996fcbe90ac1f83e04dcd457bdc8a5c68ce3c1da2"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseWorker._submit_adhoc_run (cyclomatic 21): BaseWorker._submit_adhoc_run has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"37045f542f7db968ef48832b10b0a651bfc8dc24043a2709679831c738bddcc6"}},{"ruleId":"D1","level":"warning","message":{"text":"index.FlowRunsCard (cyclomatic 21): index.FlowRunsCard has cyclomatic complexity 21 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 10 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-card/index.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd1c000b5e4bde721ca7d759c7633f8b0d594688ee9ac5373376f8197d2fc8b"}},{"ruleId":"D1","level":"warning","message":{"text":"flow-run-action.FlowRunDialogBody (cyclomatic 21): flow-run-action.FlowRunDialogBody has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/flow-run-action/flow-run-action.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01ba65f57f8095b7847315f05b947bb58e16c4d5e4b3caab25924c6cada6abc"}},{"ruleId":"D1","level":"warning","message":{"text":"data-table.DataTable (cyclomatic 21): data-table.DataTable has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 90, 147, 130, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/data-table.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7984779d792e083a85779805c7975563b8b30ec26aa13a8ef9ad93e802087a76"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.update_work_pool_defaults (cyclomatic 20): utils.update_work_pool_defaults has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/_cli/utils.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"3def3d34b116bc6e894b25eb7a225a925f371ab36617093bc894dfb6cddb3412"}},{"ruleId":"D1","level":"warning","message":{"text":"automation.inspect (cyclomatic 20): automation.inspect has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/automation.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcb9281042037359b115948b3baf2c867f2178cb9a71cc279384ebc7c5a9cba"}},{"ruleId":"D1","level":"warning","message":{"text":"_config._format_validation_error (cyclomatic 20): _config._format_validation_error 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":"src/prefect/cli/deploy/_config.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ba3aac6d3ac9b6e3d4854d3fa157980de3cd5af0ddbe004c1fad0315e292d7"}},{"ruleId":"D1","level":"warning","message":{"text":"deployment.delete (cyclomatic 20): deployment.delete 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":"src/prefect/cli/deployment.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"457242284d79f6d26251a9774d507390d1d98cc48f283af162dbfcdd4f529437"}},{"ruleId":"D1","level":"warning","message":{"text":"server.start (cyclomatic 20): server.start has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/server.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d05cdabee362e57bd17c29f734e5f405925ebc5c716108142331745d3d97e21"}},{"ruleId":"D1","level":"warning","message":{"text":"work_pool.slots (cyclomatic 20): work_pool.slots has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_pool.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d385bf30124ad2a131dbb38ef9a0d4e804e15b28ed8d97b74b390b45ecfbf7"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectClient.__init__ (cyclomatic 20): PrefectClient.__init__ 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. This shape REPEATS in the file: one other method here (SyncPrefectClient.__init__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4735b452083c44cf592c630e9b38bf96b324f8c05c4351df61a15d3dcc2d1e9"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncPrefectClient.__init__ (cyclomatic 20): SyncPrefectClient.__init__ 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. This shape REPEATS in the file: one other method here (PrefectClient.__init__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa350d9d0f6b70eb551b964eb1e6d83a809809d3ff1d0fa889453c530d64dd94"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowRunEngine.initialize_run (cyclomatic 20): FlowRunEngine.initialize_run 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":"src/prefect/flow_engine.py"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d640bd8b81eb8821bc59215035f5c7d28cd3700fc454eff2a403937dea0d69"}},{"ruleId":"D1","level":"warning","message":{"text":"block_documents.update_block_document (cyclomatic 20): block_documents.update_block_document 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":"src/prefect/server/models/block_documents.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a3896fc6f25bb675a4e54f472da50f94300eea18c3d7782e673c725f25b6f0"}},{"ruleId":"D1","level":"warning","message":{"text":"workers.update_work_queue (cyclomatic 20): workers.update_work_queue 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":"src/prefect/server/models/workers.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ff9c8db0c154ffe749e54877263fc39946597dd251f4a2867ad046cee0e097"}},{"ruleId":"D1","level":"warning","message":{"text":"callables.parameters_to_args_kwargs (cyclomatic 20): callables.parameters_to_args_kwargs 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":"src/prefect/utilities/callables/__init__.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa31084c1d645787651c08ece67f2fcb2b15a773400e944eddc2bb25825530bb"}},{"ruleId":"D1","level":"warning","message":{"text":"schema-form-input.SchemaFormInput (cyclomatic 20): schema-form-input.SchemaFormInput has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a40fb38dacb61b7049f66954ff2432fd85e62cd0ccd9f5d406b7957c72a49b"}},{"ruleId":"D1","level":"warning","message":{"text":"task-run-details.TaskRunDetails (cyclomatic 20): task-run-details.TaskRunDetails has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"297e4513bff1a77e7472e020c75ee923a08cec5b76995cddb258103b41f8ac80"}},{"ruleId":"D1","level":"warning","message":{"text":"rich-date-range-selector.RangeView (cyclomatic 20): rich-date-range-selector.RangeView has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 717, commit, a function literal at line 676, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba962d4c0f80606acc4b63ee1bd9a79733ef0ebf17f61936748740ed630d26a"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectDbtOrchestrator._prepare_build (cyclomatic 19): PrefectDbtOrchestrator._prepare_build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eba6655b309f2fb86604b72caf53b17340d93d9ecaf9f2dceec791aaf2563b9"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectDbtOrchestrator._build_cache_options_for_node (cyclomatic 19): PrefectDbtOrchestrator._build_cache_options_for_node 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":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"a439a94eb5de04c69b698470d1f0e273ad0593856db96b0e5ecd8f17afb15162"}},{"ruleId":"D1","level":"warning","message":{"text":"diagnostics._parse_scheduler_message (cyclomatic 19): diagnostics._parse_scheduler_message has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/diagnostics.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"946c81cebf2834fbb90175b585a7efdedba8c0493e13b66f45ba924c966e5fbd"}},{"ruleId":"D1","level":"warning","message":{"text":"Consumer.run (cyclomatic 19): Consumer.run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/messaging.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7fb1f3caa8308c58ffc0cb37cd9cb1da7a983fc2d2517faf9c27868d564282"}},{"ruleId":"D1","level":"warning","message":{"text":"SPCSWorker._watch_service (cyclomatic 19): SPCSWorker._watch_service has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-snowflake/prefect_snowflake/experimental/workers/spcs.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"0862e75e4b14b9ae42e3242d53cd634c97e48216176437733e8bc82a267b0221"}},{"ruleId":"D1","level":"warning","message":{"text":"ObservationDelivery._run (cyclomatic 19): ObservationDelivery._run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/_observation_delivery.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bfaa69385cb2054ca99dab6fb5b0e929aa842ec18be6e9a1c52b696e8f8912"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.deploy (cyclomatic 19): _commands.deploy has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_commands.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8dae189e2b226a0b9f3b15584b058fbb18f255731c9e6f44a7e19189f6fca1"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_runs.pause_flow_run (cyclomatic 19): flow_runs.pause_flow_run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"24891fff2c1e637db1202bbf957f47b4dbb680f973bb289c5180944cd4d54f0a"}},{"ruleId":"D1","level":"warning","message":{"text":"ElasticContainerServicePushProvisioner.provision (cyclomatic 19): ElasticContainerServicePushProvisioner.provision has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/infrastructure/provisioners/ecs.py"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"3357863c36fabdc5db0ab17a7fd7233117b662d8bcf5dc06d2fd4a3da2842016"}},{"ruleId":"D1","level":"warning","message":{"text":"storage._format_token_from_credentials (cyclomatic 19): storage._format_token_from_credentials 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":"src/prefect/runner/storage.py"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f8d4f56b4adf7596078179abd80ea58b5914058c06a1615e9faca5d13d9d1e"}},{"ruleId":"D1","level":"warning","message":{"text":"stream.log_matches_filter (cyclomatic 19): stream.log_matches_filter has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/logs/stream.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58755337999560d99ace119c3b445f34c905aad60ac82f91765fb2f43ca5795"}},{"ruleId":"D1","level":"warning","message":{"text":"RRuleSchedule.from_rrule (cyclomatic 19): RRuleSchedule.from_rrule has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/schedules.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fb876a49ee0641bb8327fc4c1a8ae2be8da1b2e1eb23c337c38878af20bdae"}},{"ruleId":"D1","level":"warning","message":{"text":"cancellation_cleanup.handle_cancelling_timeout (cyclomatic 19): cancellation_cleanup.handle_cancelling_timeout has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/cancellation_cleanup.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc058abdfe6770103997a288934074e2f172fe077a39d53d128e92563e00427f"}},{"ruleId":"D1","level":"warning","message":{"text":"states.get_state_exception (cyclomatic 19): states.get_state_exception 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":"src/prefect/states.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9738ba74d7b1f69a36cb0659976dccb02884ec73a5109e3473c3ed1599fb91"}},{"ruleId":"D1","level":"warning","message":{"text":"index.buildPaginationBody (cyclomatic 19): index.buildPaginationBody has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"021b18912fbb17bdb55f16da9a20a38b1c4ff0dfb1820a6a61b2dc61374e94a9"}},{"ruleId":"D1","level":"warning","message":{"text":"date-time-picker.DateTimePicker (cyclomatic 19): date-time-picker.DateTimePicker has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (handleTimeChange, a function literal at line 134, a function literal at line 94, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fb7e5202ec9a5bf496f6eb6d581f4f14e9933a6a828aacc408e6a8a9b2954e"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.organizeFlowRunsWithGaps (cyclomatic 19): utils.organizeFlowRunsWithGaps has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 8 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/flow-run-activity-bar-graph/utils.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5dbeace9ae36f3d1d39d2ed68dd9e060e569cff8c45c1c4b906b18869df6b51"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectDbtOrchestrator._precompute_all_cache_keys (cyclomatic 18): PrefectDbtOrchestrator._precompute_all_cache_keys has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1711}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ee07779089524dd75eaf59368659c275922376a47c44d3135dc53c3d860fb0"}},{"ruleId":"D1","level":"warning","message":{"text":"version_checking.check_server_version (cyclomatic 18): version_checking.check_server_version 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":"src/prefect/_internal/version_checking.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d12a83b826cee757de79155d5dc28d82920123c395a9155a8cc74bf9dd5defd"}},{"ruleId":"D1","level":"warning","message":{"text":"unions.split_union_top_level (cyclomatic 18): unions.split_union_top_level has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_sdk/unions.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd1f1ea5f43ad9704f6724d089326ede2649b6b876079a83cea1697554c7e68"}},{"ruleId":"D1","level":"warning","message":{"text":"MigratableAutomation.migrate (cyclomatic 18): MigratableAutomation.migrate has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/automations.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9486cc0274fa40bd48b490e2dd7f60eee5637f14bfc3639da4e9460b143739"}},{"ruleId":"D1","level":"warning","message":{"text":"work_pool.storage_inspect (cyclomatic 18): work_pool.storage_inspect has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_pool.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8b1e4844b82dd3d4dd8d21e9ce0be01822280db3019f1c1b88bfc235b17b35"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectHttpxAsyncClient._send_with_retry (cyclomatic 18): PrefectHttpxAsyncClient._send_with_retry has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (PrefectHttpxSyncClient._send_with_retry) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/base.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"defac748c5507a7f31b78387a88b26272faa65e22e44a88069ebd391668c0029"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectHttpxSyncClient._send_with_retry (cyclomatic 18): PrefectHttpxSyncClient._send_with_retry has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (PrefectHttpxAsyncClient._send_with_retry) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/base.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"109588785cff62f6cb1b5ef814c0b1964cef755a90690f4a9357ce3de37c991e"}},{"ruleId":"D1","level":"warning","message":{"text":"related.related_resources_from_run_context (cyclomatic 18): related.related_resources_from_run_context has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/related.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"476c8ecbda6e3955afeb6c13fd7a30ee4fdc5a39ac61dcebff44e1e80789ece7"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_runs.apause_flow_run (cyclomatic 18): flow_runs.apause_flow_run has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"84bcd6e1e2e98a45dd83fd48a895b86ec7939266e9e2e36f67e841f3c3affa0b"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowRunExecutor.submit (cyclomatic 18): FlowRunExecutor.submit 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":"src/prefect/runner/_flow_run_executor.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fba3300578c89506926ab6bc180485c8e2c8fbd479d65d449c9d9bf1f781098"}},{"ruleId":"D1","level":"warning","message":{"text":"deployments.create_deployment (cyclomatic 18): deployments.create_deployment has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e263f2aa4a516784418506501ccdf9033b2c7408dbe7681137292730ec815437"}},{"ruleId":"D1","level":"warning","message":{"text":"deployments.update_deployment (cyclomatic 18): deployments.update_deployment has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/deployments.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"64060fb76784c259f63c8436c6625cb460fba84daa77adbdf22774d8a41ac5f2"}},{"ruleId":"D1","level":"warning","message":{"text":"use-get-automation-action-resources.getResourceSets (cyclomatic 18): use-get-automation-action-resources.getResourceSets has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/automations/use-get-automation-action-resources/use-get-automation-action-resources.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e900e2e89037ecde8e9298e298f19d5dcf2a63038af2ce37a27dcbd25860f486"}},{"ruleId":"D1","level":"warning","message":{"text":"resource-routes.getResourceRoute (cyclomatic 18): resource-routes.getResourceRoute has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/event-resource-display/resource-routes.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"549f70b643c3279efad22f6f3b1c8def45814a7b476597dd2cb29357318d260b"}},{"ruleId":"D1","level":"warning","message":{"text":"flow-run-task-runs.FlowRunTaskRuns (cyclomatic 18): flow-run-task-runs.FlowRunTaskRuns has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 belong to 3 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-task-runs.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f4e61fcef9fa4f70fea4a5871700126b110f73c41bd4b9199efd30897e4315"}},{"ruleId":"D1","level":"warning","message":{"text":"selection.isSelected (cyclomatic 18): selection.isSelected has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/selection.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"51823b87696ecafda3859496dd3c73db2343da885a86986bcf385a6b4ce49ceb"}},{"ruleId":"D1","level":"warning","message":{"text":"ecs._forward_cloudwatch_logs (cyclomatic 17): ecs._forward_cloudwatch_logs has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a7248c48fb270f4e1471706051acc6cc91d5c061300f26ad3bbd172f0a87fa"}},{"ruleId":"D1","level":"warning","message":{"text":"ecs.replicate_ecs_event (cyclomatic 17): ecs.replicate_ecs_event has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e410824d2b8dc9d349860568b367712e61dc560a15d954efe20bee71b5966a5"}},{"ruleId":"D1","level":"warning","message":{"text":"DaskTaskRunner.client (cyclomatic 17): DaskTaskRunner.client has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dask/prefect_dask/task_runners.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"974b51bbc5f913af15fc64f77b7d4281e5843e6e58d24e6923f62fa1fd2cfe8e"}},{"ruleId":"D1","level":"warning","message":{"text":"DbtCloudJobRun._build_trigger_job_run_options (cyclomatic 17): DbtCloudJobRun._build_trigger_job_run_options has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f15e2cbc3711531d9d129abdb3a4e724a90e7c140a74733f6d78eff5ffa8bb"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefectDbtOrchestrator.run_build (cyclomatic 17): PrefectDbtOrchestrator.run_build 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":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"361f2f59df1c770523966c2cd455068cc0dcb7e560061bc2a5a865de2e10cbf7"}},{"ruleId":"D1","level":"warning","message":{"text":"KubernetesWorker._create_job (cyclomatic 17): KubernetesWorker._create_job has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/worker.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"39478ab5aa7ded4092b9b97458576f344bef7ffd84eadb6c10ab8850686fac95"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_run.ls (cyclomatic 17): flow_run.ls has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/flow_run.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa825730ef13fb702bdf319b2175b16825312935fcaa25f75ad92a3baa5daae5"}},{"ruleId":"D1","level":"warning","message":{"text":"server.status (cyclomatic 17): server.status has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/server.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"279b6712bc7558c1a57db572cf8eeaf482d4d5c6f3026be4b249979704a3cbe1"}},{"ruleId":"D1","level":"warning","message":{"text":"task.serve (cyclomatic 17): task.serve has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/task.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbba193e42daeab2478b9b8fb1e63eeb851a41fa65b3d84d58036ed6fa86d662"}},{"ruleId":"D1","level":"warning","message":{"text":"DeploymentClient.create_deployment (cyclomatic 17): DeploymentClient.create_deployment has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (DeploymentAsyncClient.create_deployment) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0469524aea7903d1be3c99fc90e4e3ba80535f63da2e1815586b5ba6b10de01b"}},{"ruleId":"D1","level":"warning","message":{"text":"DeploymentAsyncClient.create_deployment (cyclomatic 17): DeploymentAsyncClient.create_deployment has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (DeploymentClient.create_deployment) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf849b609b0c57e9dbf90bf9331987761d62a1863e0c71d1751733f251501b07"}},{"ruleId":"D1","level":"warning","message":{"text":"RRuleSchedule.from_rrule (cyclomatic 17): RRuleSchedule.from_rrule 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":"src/prefect/client/schemas/schedules.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cf870188e6b8df819874165698f018af3ded92c8dccf46a3833d606adf284e"}},{"ruleId":"D1","level":"warning","message":{"text":"RunnerDeployment.from_flow (cyclomatic 17): RunnerDeployment.from_flow has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"334aa5c039039f69df6e8531bb42490088ea47c6f7fb2a734c348c28e3fd2a2b"}},{"ruleId":"D1","level":"warning","message":{"text":"core.run_steps (cyclomatic 17): core.run_steps has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/steps/core.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c7297d7961ddd4eade14884e7207c2c0303cf98dc5675407af13a82b7cd498"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowRunEngine.call_hooks (cyclomatic 17): FlowRunEngine.call_hooks 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. This shape REPEATS in the file: one other method here (AsyncFlowRunEngine.call_hooks) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61e01dff011e14054c1867ed529bee67d78632367793887c88e49014ecbca35"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncFlowRunEngine.call_hooks (cyclomatic 17): AsyncFlowRunEngine.call_hooks 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. This shape REPEATS in the file: one other method here (FlowRunEngine.call_hooks) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7411deaca41f4a6092fef07b3cdbe39b92ad3995ee4434122d23d115feb2fc"}},{"ruleId":"D1","level":"warning","message":{"text":"flows.load_flow_from_flow_run (cyclomatic 17): flows.load_flow_from_flow_run has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":3259}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d90f07c2c64b497844d3004b4cb432df16f0afecc49ab40280cb182e6e41c3c"}},{"ruleId":"D1","level":"warning","message":{"text":"GitRepository.__init__ (cyclomatic 17): GitRepository.__init__ 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":"src/prefect/runner/storage.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab617060378895bbe795715390dc93b6bfadd9493d8c0ae33e84f9e4a94501c1"}},{"ruleId":"D1","level":"warning","message":{"text":"concurrency_limits.increment_concurrency_limits_v1 (cyclomatic 17): concurrency_limits.increment_concurrency_limits_v1 has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9761451276cb264be3ab2e38d16a4bafcaa5cc0ec37be430f59d1e691a41d7"}},{"ruleId":"D1","level":"warning","message":{"text":"work_queues.update_work_queue (cyclomatic 17): work_queues.update_work_queue has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/work_queues.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a6051699f45d3455fbb26e97defda6f8ac26485ff913bf06eea2a96ce124c6"}},{"ruleId":"D1","level":"warning","message":{"text":"ValidateDeploymentConcurrencyAtRunning.before_transition (cyclomatic 17): ValidateDeploymentConcurrencyAtRunning.before_transition 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":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72c575d4ab30d716877e3b6e1e43ec66b045842639d36b63c541274ed60aa8c"}},{"ruleId":"D1","level":"warning","message":{"text":"ReleaseFlowConcurrencySlots.after_transition (cyclomatic 17): ReleaseFlowConcurrencySlots.after_transition 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":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"3432a8df0ed63c45eef2645343edb69449776b6ea09d224fe32bc2dc7c752d8d"}},{"ruleId":"D1","level":"warning","message":{"text":"subscriptions.accept_prefect_socket (cyclomatic 17): subscriptions.accept_prefect_socket has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/subscriptions.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f04b38882557d88c100b7e32cae0c48631549f7c2255a03de78df0bbfa9e91"}},{"ruleId":"D1","level":"warning","message":{"text":"states.aget_state_exception (cyclomatic 17): states.aget_state_exception 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":"src/prefect/states.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5a881a08a2c7ea35914b9e21ee0d435d987b9b753b12c9202ea4e40841ee1a"}},{"ruleId":"D1","level":"warning","message":{"text":"Transaction.commit (cyclomatic 17): Transaction.commit has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (AsyncTransaction.commit) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"644cb2aa6f68e04b9c36ca0d90130fd9ac3c8c756b3c85dd5bb6e226a680969d"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncTransaction.commit (cyclomatic 17): AsyncTransaction.commit has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (Transaction.commit) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf0ed60cb2d9a659f10961d1222dd6acf07160b179277614e153117daf05c29"}},{"ruleId":"D1","level":"warning","message":{"text":"callables._generate_signature_from_source (cyclomatic 17): callables._generate_signature_from_source has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/callables/__init__.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"e589adc9182334e237b1a4c6c9241095f3781b7cb9e96616779f919701cf2cd0"}},{"ruleId":"D1","level":"warning","message":{"text":"index.buildHistoryFilter (cyclomatic 17): index.buildHistoryFilter has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"322bd5558a2467a05dd980e64ad9f4ee90bd53f43f6be3044f7ab39d2a492f80"}},{"ruleId":"D1","level":"warning","message":{"text":"index.AutomationDeploymentCombobox (cyclomatic 17): index.AutomationDeploymentCombobox has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 112, renderSelectedDeployments, a function literal at line 50, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc4f453ab52f84e7c0b67a2e12cb2b1cb496aaf77e445c9bf66834ea5efdf17"}},{"ruleId":"D1","level":"warning","message":{"text":"state-filter.StateFilter (cyclomatic 17): state-filter.StateFilter has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (renderSelectedTags, a function literal at line 37, handleSelectFilter, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/state-filter.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6c4f96078fccef6f7f95292bf9ab2b015492208856cecf3c7c5d56b8a54e42"}},{"ruleId":"D1","level":"warning","message":{"text":"data-table.FlowsTable (cyclomatic 17): data-table.FlowsTable has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 176, a function literal at line 97, a function literal at line 86, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/data-table.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"132dad2cdf09d915df24c30eba27422ea9be1c4829b10c46051d7a71b1d7045a"}},{"ruleId":"D1","level":"warning","message":{"text":"tags-select.TagsSelect (cyclomatic 17): tags-select.TagsSelect has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 91, a function literal at line 45, a function literal at line 54, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/tags-select/tags-select.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef3db774315c799db194fbcb75fe596e233195ef56096d1aadc61c21ad88f56"}},{"ruleId":"D1","level":"warning","message":{"text":"infrastructure-type-step.InfrastructureTypeStep (cyclomatic 17): infrastructure-type-step.InfrastructureTypeStep has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 38, 72, 36, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/create/infrastructure-type-step/infrastructure-type-step.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c829b333bc36776d410b2ac1930d11d90d75d0fab1e579c0b4f7e7980ba1a5c3"}},{"ruleId":"D1","level":"warning","message":{"text":"seconds.secondsToApproximateString (cyclomatic 17): seconds.secondsToApproximateString has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/utils/seconds.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"550380ff5ed10b828404a573a49bf79541d2d7409975e2c97c447159a9e8f414"}},{"ruleId":"D1","level":"warning","message":{"text":"ECSWorker._task_definitions_equal (cyclomatic 16): ECSWorker._task_definitions_equal has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ebafa1f77a1a439e719765a5df5cb63323be0c4c024b490de127dbb8f4a6ff"}},{"ruleId":"D1","level":"warning","message":{"text":"DbtConfigs._populate_configs_json (cyclomatic 16): DbtConfigs._populate_configs_json has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cli/configs/base.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"26597500eb42d7f04a8db03b7f2dbcd5b18ea7275f7721db9bac5cbce69bc8dd"}},{"ruleId":"D1","level":"warning","message":{"text":"_artifacts.create_summary_markdown (cyclomatic 16): _artifacts.create_summary_markdown has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_artifacts.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3abfc484eda7bf4515459b3db985803a900c0918d9c0d4477e8db6b7735bc8"}},{"ruleId":"D1","level":"warning","message":{"text":"KubernetesJobRun.await_for_completion (cyclomatic 16): KubernetesJobRun.await_for_completion has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4612777b5805056ab61886f0562336efb9c77c7e4bd9f609ac14bec8827d6b34"}},{"ruleId":"D1","level":"warning","message":{"text":"_SuspensionWatch._confirm (cyclomatic 16): _SuspensionWatch._confirm has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/observers.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b12986fa499347314deb23c7b76924a2e436b53be3d421f40745940c69e13da"}},{"ruleId":"D1","level":"warning","message":{"text":"_config._pick_deploy_configs (cyclomatic 16): _config._pick_deploy_configs has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_config.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"537471a4bbb811cc3f127b4f12c67ea9a0031836e2761a39fca6a0a468addb41"}},{"ruleId":"D1","level":"warning","message":{"text":"events.emit (cyclomatic 16): events.emit has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/events.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8af32943ed833503fbc6e752a21afaaa90615fb0504a7077cb91355d8cde4a3"}},{"ruleId":"D1","level":"warning","message":{"text":"base.initialize_project (cyclomatic 16): base.initialize_project 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":"src/prefect/deployments/base.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b1558ed2c2332d610f10c6a7a252f319942095ada4039f2a374a83fd7a6cdb"}},{"ruleId":"D1","level":"warning","message":{"text":"engine.handle_engine_signals (cyclomatic 16): engine.handle_engine_signals has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/engine.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"093b66a026c580f4c03b094d30b6bb6257f4023b9d9a8327b2ec9882ec4f2d4e"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteFileSystem._resolve_path (cyclomatic 16): RemoteFileSystem._resolve_path has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/filesystems.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcfa7055c90afb7f7ec79e12eaf7a0f97a6adc61bdbf7ad4011f68e57587341"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_runs.asuspend_flow_run (cyclomatic 16): flow_runs.asuspend_flow_run has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (flow_runs.suspend_flow_run) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"83208762c78b5bde310776836fa37c7e412ffd198ef9a7e7f9ec53d1b9e720bd"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_runs.suspend_flow_run (cyclomatic 16): flow_runs.suspend_flow_run has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (flow_runs.asuspend_flow_run) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6802c76996174203f9f28b187e4725355c672e52144babeb116711ac866a2bb"}},{"ruleId":"D1","level":"warning","message":{"text":"flow_runs.resume_flow_run (cyclomatic 16): flow_runs.resume_flow_run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/flow_runs.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb869f3d11cd346d2d38c0ce7a0e6a466a3c864ef168f5bcc79445093f11539"}},{"ruleId":"D1","level":"warning","message":{"text":"workers.update_work_pool (cyclomatic 16): workers.update_work_pool has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/workers.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f042cc8da8cd42ad65c5daa99d092b6f966eeec0fe25a2060de547d1b4d53f"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowRunFilter._get_filter_list (cyclomatic 16): FlowRunFilter._get_filter_list 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":"src/prefect/server/schemas/filters.py"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b0243de16570f9c6bf5b9a9911858f976f5eb90e1bc98f710bce9507b8d0c2"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkerChannelConnection.dispatch_one_cleanup_message (cyclomatic 16): WorkerChannelConnection.dispatch_one_cleanup_message has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/worker_channel.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eceb571f8f86096e8ba5136ce8ebbfdd651a9d7dea2d699a31a78b8924c3eaa"}},{"ruleId":"D1","level":"warning","message":{"text":"task_worker.aserve (cyclomatic 16): task_worker.aserve has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"4714306b455cc508771e710ba57fc734b690dc5c9370c8a1a395bc7b3992dec5"}},{"ruleId":"D1","level":"warning","message":{"text":"use-deployment-form.useDeploymentForm.onSave (cyclomatic 16): use-deployment-form.useDeploymentForm.onSave has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-form/use-deployment-form.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6787e7f27d7aedcbc5e84e4e6722578a27805cb9a67110389e270001a1424d8c"}},{"ruleId":"D2","level":"warning","message":{"text":"IntervalSchedule._get_dates_generator (cognitive 111): IntervalSchedule._get_dates_generator has cognitive complexity 111 (threshold 15). Drivers by points: if/else 27 (51 pts), ternaries 8 (25 pts), boolean chains 21, loops 6 (14 pts) (nesting depth added 49). 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":"src/prefect/server/schemas/schedules.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"885dab3a744b655e2926dac3db5b89d834c390de0388f48fe6eb0c22d974702a"}},{"ruleId":"D2","level":"warning","message":{"text":"importtools.safe_load_namespace (cognitive 104): importtools.safe_load_namespace has cognitive complexity 104 (threshold 15). Drivers by points: if/else 17 (50 pts), error handling 6 (27 pts), loops 5 (13 pts), ternaries 2 (10 pts), boolean chains 4 (nesting depth added 70). 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":"src/prefect/utilities/importtools.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"674914ca11b261c6276e43a113047d0b8748cef5fc764e28464ed3ef48518896"}},{"ruleId":"D2","level":"warning","message":{"text":"_core._run_single_deploy (cognitive 97): _core._run_single_deploy has cognitive complexity 97 (threshold 15). Drivers by points: if/else 39 (61 pts), boolean chains 25, ternaries 5 (7 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_core.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eefb05dde1084e23cd9779f35cfdeb5b7bc089e779b1d17add99426a72a540f"}},{"ruleId":"D2","level":"warning","message":{"text":"collections.visit_collection (cognitive 78): collections.visit_collection has cognitive complexity 78 (threshold 15). Drivers by points: if/else 27 (57 pts), loops 2 (8 pts), ternaries 4 (6 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 40). 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":"src/prefect/utilities/collections.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0be1c1907b1ff1a31310245cae44baa8bd981cf7961832f4890ce834b51a18"}},{"ruleId":"D2","level":"warning","message":{"text":"nearestParentVertical.getVerticalNearestParentLayout (cognitive 76): nearestParentVertical.getVerticalNearestParentLayout has cognitive complexity 76 (threshold 15). Drivers by points: if/else 40 (56 pts), boolean chains 8, loops 5 (6 pts), ternaries 2 (6 pts) (nesting depth added 21). Most of this is not in the body itself: 3 of the 76 points are its own statements and the rest belongs to 16 function items inside it that branch (getNearestParentPosition, argueWithCompetingUpstreamPlacement, placeNearUpstreamNode, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/workers/layouts/nearestParentVertical.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a38cbd592da9e429548b0f14800ef68140b8c374a969732f3759104885f9ff"}},{"ruleId":"D2","level":"warning","message":{"text":"deployments.update_deployment (cognitive 73): deployments.update_deployment has cognitive complexity 73 (threshold 15). Drivers by points: if/else 25 (44 pts), error handling 4 (8 pts), loops 5 (8 pts), boolean chains 7, ternaries 3 (6 pts) (nesting depth added 29). 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":"src/prefect/server/api/deployments.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fc9fafe9c8fea2404e498492977c84ddcfe40a24d0cecdae7ad2d400e84c36"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.__init__ (cognitive 71): Task.__init__ has cognitive complexity 71 (threshold 15). Drivers by points: if/else 28 (37 pts), boolean chains 19, ternaries 6 (7 pts), error handling 2 (4 pts), loops 2 (4 pts) (nesting depth added 14). 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":"src/prefect/tasks.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"92880acf9d38e8c21588f85b50833e96a7c2f9f3c980227a17086af4940ed188"}},{"ruleId":"D2","level":"warning","message":{"text":"observer._replicate_pod_event (cognitive 69): observer._replicate_pod_event has cognitive complexity 69 (threshold 15). Drivers by points: if/else 23 (39 pts), error handling 5 (13 pts), ternaries 5 (8 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 28). 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":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d624efa562c74bd28f066601ad25f470f4c1805b8c6bea7d26f47da2196059"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectDbtOrchestrator._execute_per_wave (cognitive 68): PrefectDbtOrchestrator._execute_per_wave has cognitive complexity 68 (threshold 15). Drivers by points: if/else 9 (29 pts), ternaries 4 (19 pts), loops 5 (12 pts), boolean chains 5, error handling 2 (3 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7fbb5ffb01753cd12232e5b73f6ecde310d4c044d1cf6ac4fb2745ae3a1950"}},{"ruleId":"D2","level":"warning","message":{"text":"Consumer.run (cognitive 63): Consumer.run has cognitive complexity 63 (threshold 15). Drivers by points: if/else 8 (30 pts), error handling 6 (23 pts), loops 4 (10 pts) (nesting depth added 45). 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":"src/integrations/prefect-redis/prefect_redis/messaging.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2ebc243d76de1e4ce8c0183cb687f054c91dbe8f60449486c52132e27a3e7a"}},{"ruleId":"D2","level":"warning","message":{"text":"cloud.login (cognitive 63): cloud.login has cognitive complexity 63 (threshold 15). Drivers by points: if/else 27 (43 pts), boolean chains 13, loops 3 (5 pts), error handling 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/cloud/__init__.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f071b4f4e15b157cf2bd517c7da170e03b5d6b3d8b337368d42acdd1f24b69bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Flow.__init__ (cognitive 62): Flow.__init__ has cognitive complexity 62 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 15, ternaries 6 (9 pts), error handling 4 (8 pts), loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf64a14943b7997cb7adbd18c9bef6f3e1dc09e2b901abfa6050b2488847559"}},{"ruleId":"D2","level":"warning","message":{"text":"deployment._set_schedule_activation (cognitive 60): deployment._set_schedule_activation has cognitive complexity 60 (threshold 15). Drivers by points: if/else 16 (34 pts), loops 4 (11 pts), ternaries 4 (8 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deployment.py"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6837afb9d6a5c5d69404bbc4021a8785a885c7066e9fc19496f9064a24769fa"}},{"ruleId":"D2","level":"warning","message":{"text":"_config._apply_cli_options_to_deploy_config (cognitive 59): _config._apply_cli_options_to_deploy_config has cognitive complexity 59 (threshold 15). Drivers by points: if/else 13 (31 pts), loops 5 (13 pts), boolean chains 10, error handling 1 (5 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_config.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"761be149921bf67a4bfb64f64a768bbe04275a042180e88dd0ce6415c62cbabb"}},{"ruleId":"D2","level":"warning","message":{"text":"MigratableAutomation.get_dependencies (cognitive 56): MigratableAutomation.get_dependencies has cognitive complexity 56 (threshold 15). Drivers by points: if/else 16 (35 pts), error handling 4 (16 pts), boolean chains 4, loops 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/automations.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"437db0c96869660bbb3e1259ef5904a9d282ce3fe8b4fc0d1a8bd0911ce6245f"}},{"ruleId":"D2","level":"warning","message":{"text":"templating.apply_values (cognitive 55): templating.apply_values has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (45 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (templating.apply_values) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/templating/__init__.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c10e6648bbf14513513f118fdd44e1331c4a6fb767102312fa0e6ed30cf5ff"}},{"ruleId":"D2","level":"warning","message":{"text":"templating.apply_values (cognitive 55): templating.apply_values has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (45 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (templating.apply_values) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/templating/__init__.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f9effc5a889e46332ad03c9230159bc42a8b729594d3e19841926479451d83"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncPostgresConfiguration.engine (cognitive 54): AsyncPostgresConfiguration.engine has cognitive complexity 54 (threshold 15). Drivers by points: if/else 21 (46 pts), loops 1 (3 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 29). 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":"src/prefect/server/database/configurations.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a318b87bb556ec86794bd6926d489122946bf70361868fb0b33a0e9ce98a3be"}},{"ruleId":"D2","level":"warning","message":{"text":"fetcher.fetch_sdk_data (cognitive 53): fetcher.fetch_sdk_data has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (41 pts), loops 5 (8 pts), boolean chains 3, ternaries 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_sdk/fetcher.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d93319ad81a4ce8e2dc125e551293141960731c0950e5ccd99a2c48e77faa16"}},{"ruleId":"D2","level":"warning","message":{"text":"SecureTaskConcurrencySlots.before_transition (cognitive 53): SecureTaskConcurrencySlots.before_transition has cognitive complexity 53 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 5 (16 pts), error handling 1 (5 pts), boolean chains 3 (nesting depth added 32). 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":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"878aea5fe0d9c5a1a49225a6dbdff82c3a0cc249326c20cf9714abc04717983f"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectDbtOrchestrator._precompute_all_cache_keys (cognitive 52): PrefectDbtOrchestrator._precompute_all_cache_keys has cognitive complexity 52 (threshold 15). Drivers by points: if/else 8 (29 pts), loops 7 (18 pts), error handling 1 (5 pts) (nesting depth added 36). 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":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1711}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b14a692378fe59e916c27146c391c8782a7ac8c0640fd321ec77a2c19cf32f"}},{"ruleId":"D2","level":"warning","message":{"text":"task_run_recorder._record_bulk_task_run_events (cognitive 52): task_run_recorder._record_bulk_task_run_events has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (26 pts), loops 13 (20 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/task_run_recorder.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4907707d7ab8d6061f8e11aeab18a0818ad1596aa9f3f2540a1a21e3547a800"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectDbtOrchestrator._execute_per_node (cognitive 51): PrefectDbtOrchestrator._execute_per_node has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (30 pts), loops 6 (13 pts), boolean chains 5, error handling 1 (2 pts), ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7512dad1128200b1107a6da95557ae36a2221337529527649ffb2784b425a3"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_run.retry (cognitive 51): flow_run.retry has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (21 pts), error handling 6 (16 pts), ternaries 4 (11 pts), boolean chains 3 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/flow_run.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"379c120bf226bc3720cf2ded9b1aab518795b5ca2ae543505d6f620752b49e4e"}},{"ruleId":"D2","level":"warning","message":{"text":"text_search_parser.parse_text_search_query (cognitive 50): text_search_parser.parse_text_search_query has cognitive complexity 50 (threshold 15). Drivers by points: if/else 16 (37 pts), loops 3 (7 pts), boolean chains 6 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/text_search_parser.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bef4046427cfa07c6cf5ba008c3b5b96fe3fa251a95601f70b88095f914ce19"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectDbtRunner.invoke (cognitive 49): PrefectDbtRunner.invoke has cognitive complexity 49 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 8, ternaries 5 (7 pts), loops 4, error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/runner.py"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c467de3547a61b87840664beadc1397d609a2ee65ddb5515bbdb8592b72ccf"}},{"ruleId":"D2","level":"warning","message":{"text":"ast_utils.find_prefect_decorated_functions_in_file (cognitive 49): ast_utils.find_prefect_decorated_functions_in_file has cognitive complexity 49 (threshold 15). Drivers by points: if/else 9 (31 pts), loops 3 (9 pts), boolean chains 7, error handling 2 (nesting depth added 28). 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":"src/prefect/_internal/ast_utils.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a5c370e2e721e1029ad8fe66e3274205610badb400af446caf0c63e3c11375"}},{"ruleId":"D2","level":"warning","message":{"text":"deployment.run (cognitive 48): deployment.run has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (27 pts), error handling 6 (11 pts), boolean chains 7, ternaries 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deployment.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e2787cc157c89afb27692c61ae8ae1c6aba697c214d9184b8c9c2d023cf908"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_run.logs (cognitive 48): flow_run.logs has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 9, ternaries 3 (5 pts), error handling 2 (3 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/flow_run.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d996205d519bae120fc5acbd86577957042ba9a2c02f154ca8daa2a6b56d15"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlChannel._handle_connection (cognitive 47): ControlChannel._handle_connection has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (29 pts), error handling 5 (10 pts), ternaries 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/_control_channel.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9ef10f05af93b3b9e07ac7972d202f601516410a5995bed0d5eb4fb08f437f"}},{"ruleId":"D2","level":"warning","message":{"text":"plugins._diagnose_plugins (cognitive 46): plugins._diagnose_plugins has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 3 (9 pts), ternaries 4 (9 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/plugins.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d53dbf429ffec98e2b2b1952c5f6c6a632909378be305bf4c0ccd582717c97"}},{"ruleId":"D2","level":"warning","message":{"text":"ECSWorker._prepare_task_definition (cognitive 45): ECSWorker._prepare_task_definition has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (31 pts), boolean chains 7, loops 4 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5592daa26b05e0f7b97ef784b6c098b272400dea6e31921590dde233416091d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ObservationDelivery._run (cognitive 45): ObservationDelivery._run has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (40 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 28). 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":"src/prefect/_internal/_observation_delivery.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7886d976fbb5dcb8be6bf5e2473132acba3cc58f44af74a4f45b65dc833dc941"}},{"ruleId":"D2","level":"warning","message":{"text":"api.api_request (cognitive 43): api.api_request has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (22 pts), ternaries 4 (8 pts), error handling 4 (7 pts), boolean chains 6 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/api.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5447ab5322a6002e1c2735988bdf6f3c2078787168a7d9b3571f56a93e6e21"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.init (cognitive 43): _commands.init has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 4 (11 pts), boolean chains 5, error handling 1, ternaries 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_commands.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc249aaf5cd9a204d1b61b9968dcc3550f5a06f0efaa4ec98148df8597d810ff"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncFlowRunEngine.initialize_run (cognitive 43): AsyncFlowRunEngine.initialize_run has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 6, error handling 5, ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"1877d3ef38451cd884e60ccc6c167a5738e7487063ffce7ed1e84e07881b7213"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.invoke_and_assert (cognitive 43): cli.invoke_and_assert has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19 (30 pts), loops 3 (8 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/testing/cli.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f4e378014d0e3fa9526dc2dab3df296ccedb38fb17f5793a61940c8f41fdb4"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidatedFunction.validate_call_args (cognitive 42): ValidatedFunction.validate_call_args has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (28 pts), loops 4 (5 pts), ternaries 1 (5 pts), boolean chains 3, error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/pydantic/validated_func.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"e240622339dc4c6c0e7307852a20262ce755da10b304cf3f850e93635863048d"}},{"ruleId":"D2","level":"warning","message":{"text":"work_queue.ls (cognitive 42): work_queue.ls has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (20 pts), ternaries 4 (12 pts), boolean chains 4, loops 2 (4 pts), error handling 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_queue.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"09760b32a23c4adceaf03e9cd65129d73ef27eecf08f55458ce7eb9d7f81c867"}},{"ruleId":"D2","level":"warning","message":{"text":"block_documents.update_block_document (cognitive 42): block_documents.update_block_document has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 4 (10 pts), boolean chains 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/block_documents.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"023727f06c6ebe71a27195900519841b1a5f6deb8381339c10a352b8a9a28f70"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessPoolTaskRunner._forward_subprocess_messages (cognitive 42): ProcessPoolTaskRunner._forward_subprocess_messages has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (31 pts), error handling 4 (8 pts), loops 2, boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"c359baa67e191e242b3f9bc08f091c8e4c5c11144555b65cf364746b59ff5ff8"}},{"ruleId":"D2","level":"warning","message":{"text":"config.view (cognitive 41): config.view has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 7 (9 pts), boolean chains 5, ternaries 3 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/config.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ee2219eb55e8e34bb3e41a5de9ac604647fe750ec00d4984ed44de7eada1cf"}},{"ruleId":"D2","level":"warning","message":{"text":"callables.parameters_to_args_kwargs (cognitive 41): callables.parameters_to_args_kwargs has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (31 pts), boolean chains 5, ternaries 1 (4 pts), loops 1 (nesting depth added 21). 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":"src/prefect/utilities/callables/__init__.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbd989bdf09b0e72c1be23ae028d0aa14f308f3647c9a6f5c1b10adf7387774"}},{"ruleId":"D2","level":"warning","message":{"text":"ECSWorker._prepare_task_run_request (cognitive 40): ECSWorker._prepare_task_run_request has cognitive complexity 40 (threshold 15). Drivers by points: if/else 24 (32 pts), boolean chains 7, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9edaa1e638385cdc6c83c95c8092f4f1a36cb33f5a70a1b8d7be5dd7ca9c160"}},{"ruleId":"D2","level":"warning","message":{"text":"deployment.create_schedule (cognitive 40): deployment.create_schedule has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (23 pts), error handling 4 (9 pts), boolean chains 5, loops 1 (2 pts), ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deployment.py"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae77fc61f50087a1ad0e6cdae251c615bd1c79d3b04baf8fe50f49bc65e5688"}},{"ruleId":"D2","level":"warning","message":{"text":"runner.adeploy (cognitive 40): runner.adeploy has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 10, error handling 2 (3 pts), loops 2, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (runner.deploy) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"10117588d15e0f80d796f8ca88e0197a3f62759c630d65a6b46564b8ebca8c1a"}},{"ruleId":"D2","level":"warning","message":{"text":"runner.deploy (cognitive 40): runner.deploy has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 10, error handling 2 (3 pts), loops 2, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (runner.adeploy) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8664a42877d1f611605117850750b48d4600c775d27e89ffc65bdc058b416b1"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_runs.run_deployment (cognitive 39): flow_runs.run_deployment has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 8, ternaries 3 (5 pts), error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b50842bc77911f82f755b092658aa1ff00e7e1b835ac90d6b17a034bc363466"}},{"ruleId":"D2","level":"warning","message":{"text":"validation.build_error_obj (cognitive 39): validation.build_error_obj has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (26 pts), loops 4 (12 pts), boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/schema_tools/validation.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"722d7cd49fe2d8f1435e561ff1e235d4c3a2fcc46ceb0dc041edb4be04d2b629"}},{"ruleId":"D2","level":"warning","message":{"text":"_config._format_validation_error (cognitive 38): _config._format_validation_error has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 4 (8 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_config.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c8fedde34810ac9dbde60d2095a52e0db226d115012d042aacafd8cfdde0c1"}},{"ruleId":"D2","level":"warning","message":{"text":"deployments.bulk_create_flow_runs_from_deployment (cognitive 38): deployments.bulk_create_flow_runs_from_deployment has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (19 pts), error handling 5 (11 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e14eb627ee1c14cba0783c770b1e9ee7cc9fe328bb151a1de786051d3818cab"}},{"ruleId":"D2","level":"warning","message":{"text":"DaskTaskRunner.client (cognitive 37): DaskTaskRunner.client has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (31 pts), error handling 2 (5 pts), boolean chains 1 (nesting depth added 20). 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":"src/integrations/prefect-dask/prefect_dask/task_runners.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09d7e618de727f6e7047d34de2a65952aef61af4b0729931a149c68499fcf60"}},{"ruleId":"D2","level":"warning","message":{"text":"observer._mark_flow_run_as_crashed (cognitive 37): observer._mark_flow_run_as_crashed has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 7, error handling 3 (5 pts), ternaries 2 (4 pts), loops 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":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78225c08d2ceb08e987a25b1d99956fb7f7a8452cbceff5a10269f1de61116d"}},{"ruleId":"D2","level":"warning","message":{"text":"task_run.ls (cognitive 37): task_run.ls has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 6 (13 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/task_run.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5811edfb8d5e8895985eabbbc9b8a42529f9a246a1e26d17c8b37b7f26f7f2"}},{"ruleId":"D2","level":"warning","message":{"text":"core.run_steps (cognitive 37): core.run_steps has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (23 pts), error handling 2 (7 pts), loops 2 (4 pts), ternaries 2 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/steps/core.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c457e7513b609cfef37bf4d96bd4284c78ab5e0cf951da3f44abaae54d4cb57"}},{"ruleId":"D2","level":"warning","message":{"text":"workers.update_work_queue (cognitive 37): workers.update_work_queue has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/workers.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbac3462fad363213b154be51d493273523ca4ff8a5e688fc518d2a02496da3"}},{"ruleId":"D2","level":"warning","message":{"text":"urls.url_for (cognitive 37): urls.url_for has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (26 pts), boolean chains 7, ternaries 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/urls.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e0b33787ad83277720f3c902ef84895d6c9f0a94c3e39d9a264da511114042"}},{"ruleId":"D2","level":"warning","message":{"text":"control_listener._reader_loop (cognitive 36): control_listener._reader_loop has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (21 pts), error handling 8 (13 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/control_listener.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"42983d002e64b8b655542717652472b68799599a8ce33b6f8b8de4dba8ef7882"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_runs.arun_deployment (cognitive 36): flow_runs.arun_deployment has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 7, ternaries 3 (5 pts), error handling 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a028578d3505a86f02e39cc40233506ef2f6fb0664fe9c12674b67ed0c266991"}},{"ruleId":"D2","level":"warning","message":{"text":"RRuleSchedule.from_rrule (cognitive 36): RRuleSchedule.from_rrule has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (24 pts), ternaries 3 (9 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/schedules.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed59e27ab78a3ef8edc91da6b95c3c0d7efd7e633dba04c009c5118d31b56b70"}},{"ruleId":"D2","level":"warning","message":{"text":"ecs.mark_runs_as_crashed (cognitive 35): ecs.mark_runs_as_crashed has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 7, error handling 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"05887f1c709c047b7733e5fb9f10a555ce9b1752f52f950381d2938fabfbc9eb"}},{"ruleId":"D2","level":"warning","message":{"text":"jobs._build_trigger_job_run_options (cognitive 35): jobs._build_trigger_job_run_options has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 7, error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fff35fd4199db314622af0c93154bc70a4df33b0bb7541e4ee4d6de45076415"}},{"ruleId":"D2","level":"warning","message":{"text":"action-details.ActionDetailsType (cognitive 35): action-details.ActionDetailsType has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 5, match/switch 1 (nesting depth added 17). 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":"ui-v2/src/components/automations/action-details/action-details.tsx"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8e713a6d0993e78a366469409e8b0a429963ac61be9918cbf9d8fa30aaa440"}},{"ruleId":"D2","level":"warning","message":{"text":"states.return_value_to_state_sync (cognitive 34): states.return_value_to_state_sync has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (21 pts), error handling 4 (11 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/states.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"278243ab79a4b2276bbdd29672f5894c581fddab33c739fa70973b5051db88b6"}},{"ruleId":"D2","level":"warning","message":{"text":"automation.delete (cognitive 34): automation.delete has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/automation.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"79637c622ac420be1e8600fede51d5073867fe0d2df5ba7977343512b2722ee6"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectClient.__init__ (cognitive 34): PrefectClient.__init__ has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (27 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SyncPrefectClient.__init__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80166448911415e020a352193e517a6116682148dcf8b96835664b5728d5a44"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncPrefectClient.__init__ (cognitive 34): SyncPrefectClient.__init__ has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (27 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (PrefectClient.__init__) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"871c2a494f1b9af40c0c9cc8e9f531f9225249274c932d31a4b0b8beeb7fe554"}},{"ruleId":"D2","level":"warning","message":{"text":"_asyncio._format_http_status_error (cognitive 34): _asyncio._format_http_status_error has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 1 (3 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 19). 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":"src/prefect/concurrency/_asyncio.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c5f81dafc1282979303803cc02a411b9532f207cd7861d3adc069acce8243b"}},{"ruleId":"D2","level":"warning","message":{"text":"RunnerDeployment.from_flow (cognitive 34): RunnerDeployment.from_flow has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (22 pts), error handling 2 (7 pts), boolean chains 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"911f46f59bdbacbb4cc43fd6c3d7e9ef57ff69ee78c0c566202ec483a214ebbd"}},{"ruleId":"D2","level":"warning","message":{"text":"GitRepository._pull_code_locked (cognitive 34): GitRepository._pull_code_locked has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (23 pts), error handling 2 (7 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 19). 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":"src/prefect/runner/storage.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"001f707833985ae76c4e4758a2b78bf5eadb1967eeba5f96d1b24bbcd92c3f14"}},{"ruleId":"D2","level":"warning","message":{"text":"states.return_value_to_state (cognitive 34): states.return_value_to_state has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (21 pts), error handling 4 (11 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/states.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"de178dd336b687a847d0e287be0edf8f9ed98c56dde7c64040fc65ff5ecd25ca"}},{"ruleId":"D2","level":"warning","message":{"text":"script.loadAmplitude (cognitive 34): script.loadAmplitude has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (21 pts), ternaries 5 (9 pts), boolean chains 3, loops 1 (nesting depth added 6). None of this is in the body itself: all 34 points belong to 10 function items inside it that branch (a function literal at line 330, a function literal at line 279, getScrollPercent, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/script.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"22af90e2789a83dac19098d7f132f20c0f7b301b5d7a859a77c88d92ab4cad28"}},{"ruleId":"D2","level":"warning","message":{"text":"flow-run-header.FlowRunHeader (cognitive 34): flow-run-header.FlowRunHeader has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 26, ternaries 6, if/else 2. Of this number, 30 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"04357ba81c476e76ee471332685dfad921f0fe7aaac9473fcf7400f70095e136"}},{"ruleId":"D2","level":"warning","message":{"text":"DockerWorker._submit_adhoc_run (cognitive 33): DockerWorker._submit_adhoc_run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (21 pts), error handling 5 (7 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4d16120f4ed9e002ef14951d52e562eaf35936682f11dc2215e7ea6c253a9d"}},{"ruleId":"D2","level":"warning","message":{"text":"IgnoreFilter.filter (cognitive 33): IgnoreFilter.filter has cognitive complexity 33 (threshold 15). Drivers by points: error handling 4 (12 pts), if/else 5 (12 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_ignore_filter.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb05220ec05afd6ce0b2c870f52649c6a5b4c9f06551db2b9cb65e574222a39"}},{"ruleId":"D2","level":"warning","message":{"text":"server.status (cognitive 33): server.status has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 3, error handling 1 (3 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/server.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d567d343a92005f4a7663769733412e893e8033d2dfaf8713c2420e13dd7e77"}},{"ruleId":"D2","level":"warning","message":{"text":"task_run.logs (cognitive 33): task_run.logs has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 3 (8 pts), boolean chains 5, loops 2 (4 pts), error handling 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":"src/prefect/cli/task_run.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f7ec81692af6d2099239480bd6f7e280839739ed4b40b1a730b3694ae83081"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseWorker._submit_adhoc_run (cognitive 33): BaseWorker._submit_adhoc_run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (24 pts), error handling 4 (5 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef9efbd8577252079a55bc43991832a8bdd87e3555ac0bfa82399e4bdc4fea1"}},{"ruleId":"D2","level":"warning","message":{"text":"SPCSWorker._watch_service (cognitive 32): SPCSWorker._watch_service has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 5, error handling 2 (5 pts), loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-snowflake/prefect_snowflake/experimental/workers/spcs.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee7daa801178b7d37b83d63023a007c4c5437a1debdeccb7d707c380280debd"}},{"ruleId":"D2","level":"warning","message":{"text":"automation.create (cognitive 32): automation.create has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (18 pts), loops 3 (6 pts), boolean chains 4, error handling 2 (4 pts) (nesting depth added 8). 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":"src/prefect/cli/automation.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30e480104d51178ccfb9f8869d815912f9ed82b8d3e34f1e23ca7be1c7e97bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ElasticContainerServicePushProvisioner.provision (cognitive 32): ElasticContainerServicePushProvisioner.provision has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 5 (11 pts), boolean chains 3, error handling 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":"src/prefect/infrastructure/provisioners/ecs.py"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"42942667368ee03ea040ca14fc2827b463cea2f2413d921174b3f645cc26f6b8"}},{"ruleId":"D2","level":"warning","message":{"text":"ecs._forward_cloudwatch_logs (cognitive 31): ecs._forward_cloudwatch_logs has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 3, error handling 2 (3 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc98f950daa327fd60e5273bf670e38802b04f5795ce8cddaffdb98b93e07af"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectDbtOrchestrator._augment_immediate_test_edges (cognitive 31): PrefectDbtOrchestrator._augment_immediate_test_edges has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 7 (13 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa03cc9b7eb85549c23b519580abdc5e37fc48b34eff89b100a574b30ff54aa7"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.deploy (cognitive 31): _commands.deploy has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 4 (6 pts), loops 2 (4 pts), boolean chains 2, error handling 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_commands.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6013a762652eb884ab9189633bc3d12e36df14a953e78b702d239a48509c56a"}},{"ruleId":"D2","level":"warning","message":{"text":"deployment.delete (cognitive 31): deployment.delete has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (7 pts), boolean chains 5, error handling 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deployment.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"c658875004a35256c25f227fc96c35b36ceb4878649de8096795909e2c068d64"}},{"ruleId":"D2","level":"warning","message":{"text":"engine.handle_engine_signals (cognitive 31): engine.handle_engine_signals has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (25 pts), error handling 5, 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":"src/prefect/engine.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"deef5533f41c4ab36f2c472e2bf9b4a11eccf9bc6e3da621d477e35e14e405ac"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectEventSubscriber.__anext__ (cognitive 31): PrefectEventSubscriber.__anext__ has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/clients.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e5a25261f427a0cd359169e47dda99d1ecbe755c638f9c8b85bbf93d0a9103"}},{"ruleId":"D2","level":"warning","message":{"text":"concurrency_limits.decrement_concurrency_limits_v1 (cognitive 31): concurrency_limits.decrement_concurrency_limits_v1 has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 4 (8 pts), ternaries 1 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cdd809f569dda1b149450a7842a0096469d3385195ed819623cdc4249fed25"}},{"ruleId":"D2","level":"warning","message":{"text":"stream.log_matches_filter (cognitive 31): stream.log_matches_filter has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/logs/stream.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62e56b6c5eb7ecc3bd833a6174329cb3f7f8b8f523a21083c5da51d1348744d"}},{"ruleId":"D2","level":"warning","message":{"text":"ECSWorker._task_definitions_equal (cognitive 30): ECSWorker._task_definitions_equal has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1457e95aa1f9be682967142f4b8b09b19595fb798d3353205aceefadba742cf"}},{"ruleId":"D2","level":"warning","message":{"text":"work_pool.create (cognitive 30): work_pool.create has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (16 pts), error handling 5 (7 pts), boolean chains 5, ternaries 2 (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":"src/prefect/cli/work_pool.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef3e2dfd10198cdb16e3bdbda7278f5b3068e60150a99bf986681fe416d080d"}},{"ruleId":"D2","level":"warning","message":{"text":"work_pool.storage_inspect (cognitive 30): work_pool.storage_inspect has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (6 pts), boolean chains 5, ternaries 1 (3 pts), error handling 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":"src/prefect/cli/work_pool.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7d2b3d068f44a78675da9e4c6758c089625c412787a25b3daadd00bf9dcc67"}},{"ruleId":"D2","level":"warning","message":{"text":"CancellationManager.cancel (cognitive 30): CancellationManager.cancel has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (21 pts), error handling 4 (5 pts), boolean chains 3, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/_cancellation_manager.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"283d8d91cad6b8d0563a3966feaa11ad92c0e676fc7592557948b3c658b4f538"}},{"ruleId":"D2","level":"warning","message":{"text":"SubprocessASGIServer.start (cognitive 30): SubprocessASGIServer.start has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (22 pts), error handling 2 (5 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/server.py"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6eb2fca04628d4d319e2cf47e605001be1aec85d99ca66da1d44383459b787"}},{"ruleId":"D2","level":"warning","message":{"text":"work_queues.update_work_queue (cognitive 30): work_queues.update_work_queue has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/work_queues.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc7be201d7dac0b95eded7695399105d495e7513ca1baa77ba96985eafdfb53"}},{"ruleId":"D2","level":"warning","message":{"text":"Settings.post_hoc_settings (cognitive 30): Settings.post_hoc_settings has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (21 pts), ternaries 2 (4 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 8). 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":"src/prefect/settings/models/root.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21c38e35eac4e0b86a31cd4b1f693145081121816befb9ff417d80172a0c07e"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.organizeFlowRunsWithGaps (cognitive 30): utils.organizeFlowRunsWithGaps has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 8 (17 pts), if/else 7 (10 pts), boolean chains 2, loops 1 (nesting depth added 12). Of this number, 15 points are the body\u0027s own statements and 15 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/flow-run-activity-bar-graph/utils.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b963739198dca4d4828018d87fc9944a8b3bee188a7460aec3c44cb73fbc8d1a"}},{"ruleId":"D2","level":"warning","message":{"text":"observer._reconcile_pod_lifecycle_states (cognitive 29): observer._reconcile_pod_lifecycle_states has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (6 pts), boolean chains 1, error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a977e4e2c1503cca384aad8b5e82869abe1e5a00aaf31c33e1a309358965e936"}},{"ruleId":"D2","level":"warning","message":{"text":"SPCSWorkerConfiguration.prepare_for_flow_run (cognitive 29): SPCSWorkerConfiguration.prepare_for_flow_run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, boolean chains 8. 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":"src/integrations/prefect-snowflake/prefect_snowflake/experimental/workers/spcs.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48825b1122319a104424e18c85431ce6a350296280e5757a5174eb73bb6828a"}},{"ruleId":"D2","level":"warning","message":{"text":"Block._to_block_document (cognitive 29): Block._to_block_document has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 12, loops 2, error handling 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/core.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1fe433f91decacbed6b21a2f4c155eb4a8c19049b9dc79d2b8aa22ba34a1cf"}},{"ruleId":"D2","level":"warning","message":{"text":"MigratableBlockSchema.get_dependencies (cognitive 29): MigratableBlockSchema.get_dependencies has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/blocks.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"898fd0ff1792e3072a2a4d137eca44ebc3c3bb068f2f7805c26ad96107bc9669"}},{"ruleId":"D2","level":"warning","message":{"text":"worker.start (cognitive 29): worker.start has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (25 pts), ternaries 1 (2 pts), boolean chains 1, error handling 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":"src/prefect/cli/worker.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"970f16a5ae40f34dc73ea22e285d29c030e493c8ad50546a7b1044e07811a956"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectHttpxAsyncClient._send_with_retry (cognitive 29): PrefectHttpxAsyncClient._send_with_retry has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (PrefectHttpxSyncClient._send_with_retry) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/base.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8675b995812696223f8121d169c36d33c82d473e8b2595818dcb4e92f6d9d87e"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectHttpxSyncClient._send_with_retry (cognitive 29): PrefectHttpxSyncClient._send_with_retry has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (PrefectHttpxAsyncClient._send_with_retry) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/base.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"37647267d52f9616ebd48ebdbd18936256acebf37f768e5669713ade9d420ff0"}},{"ruleId":"D2","level":"warning","message":{"text":"base._save_deployment_to_prefect_file (cognitive 29): base._save_deployment_to_prefect_file has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/base.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f41404510da1609f446af94d52c80f40d7cd36f060b47c0c7845fc97300c334"}},{"ruleId":"D2","level":"warning","message":{"text":"RunnerDeployment._create (cognitive 29): RunnerDeployment._create has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 5, error handling 2, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RunnerDeployment._create_sync) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d5f8b13e630476499163659fd658952bea49a3ba2fc4ca6b466736853c8b95"}},{"ruleId":"D2","level":"warning","message":{"text":"RunnerDeployment._create_sync (cognitive 29): RunnerDeployment._create_sync has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 5, error handling 2, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (RunnerDeployment._create) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50939b80177704131762a94635c4d6b45f04fc5b90b4bb4edb78c5d6d56a764"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowRunEngine.initialize_run (cognitive 29): FlowRunEngine.initialize_run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (20 pts), error handling 5, boolean chains 3, ternaries 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":"src/prefect/flow_engine.py"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d89fc16d1c170f9ee4195a10529a00d40912903d8118b3b057d28b707d2e613"}},{"ruleId":"D2","level":"warning","message":{"text":"task_engine.run_generator_task_async (cognitive 29): task_engine.run_generator_task_async has cognitive complexity 29 (threshold 15). Drivers by points: error handling 4 (14 pts), if/else 5 (9 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1893}}}],"partialFingerprints":{"codehealthFindingId/v1":"01349e36de56d035aa2c789c7c35d8879a76c66cbf5d5c951005a0081d522a4c"}},{"ruleId":"D2","level":"warning","message":{"text":"KubernetesJobRun.await_for_completion (cognitive 28): KubernetesJobRun.await_for_completion has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ba9c421e85a8a9d1f7c49a8addfe3cb0b4c884d452499de57f77008173f368"}},{"ruleId":"D2","level":"warning","message":{"text":"Consumer.process_pending_messages (cognitive 28): Consumer.process_pending_messages has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (18 pts), ternaries 1 (4 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/messaging.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb00a91a66b54a072b6eecb301b3fef9dc8eb1a7f9239a2a0327237ba8e4f014"}},{"ruleId":"D2","level":"warning","message":{"text":"triggers.evaluate (cognitive 28): triggers.evaluate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 8, ternaries 3 (4 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":"src/prefect/server/events/triggers.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db595f9dbd64313bd379d822771e5eef7d04618b2b57941e7f33170ce0490e4"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerCleanupExecutor._renew_until_finished (cognitive 28): WorkerCleanupExecutor._renew_until_finished has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/_cleanup.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"908405178ab48c0dbca1f091fa39b601c64e74cbe9ec4431d16b6c530ef7c709"}},{"ruleId":"D2","level":"warning","message":{"text":"_artifacts.create_summary_markdown (cognitive 27): _artifacts.create_summary_markdown has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 5 (15 pts), loops 4 (7 pts), if/else 4 (5 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_artifacts.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"de96901384f152dc927e3162f03ecaf993b1b759329e19d1eb78b44f700d9153"}},{"ruleId":"D2","level":"warning","message":{"text":"FileCollector.collect (cognitive 27): FileCollector.collect has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (9 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_file_collector.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"796a910b25db39f0a5faed8511a0192e1ed216ae532e10d29ac95677b4568a37"}},{"ruleId":"D2","level":"warning","message":{"text":"flows.load_flow_arguments_from_entrypoint (cognitive 27): flows.load_flow_arguments_from_entrypoint has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (4 pts), loops 2 (4 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":3573}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91d8598960b6a27e1211859e49d04319ac7fab6b4b0d024a90b2b18aebf835a"}},{"ruleId":"D2","level":"warning","message":{"text":"workers.update_work_pool (cognitive 27): workers.update_work_pool has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/workers.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"628fec5d615d4be99e62dd37b50f9dcb7c12638391eb0bb322a464edb582f4b4"}},{"ruleId":"D2","level":"warning","message":{"text":"task_worker.aserve (cognitive 27): task_worker.aserve has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 5 (6 pts), loops 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ae20c8f1e41131daa1a68992de6d27be1b6edf762a18a0bef99638c871e05e"}},{"ruleId":"D2","level":"warning","message":{"text":"jobs.run_dbt_cloud_job (cognitive 26): jobs.run_dbt_cloud_job has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (6 pts), error handling 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"9078c6713841d92a774e37e23ec0612cca9af7017b0d22244cf9e5ce2fb71d52"}},{"ruleId":"D2","level":"warning","message":{"text":"DbtCoreExecutor._invoke (cognitive 26): DbtCoreExecutor._invoke has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 2, ternaries 2, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fc56018d391d0d8ac6777fdda79ea9c5d42862d4aed909bdd75d4b36efb1c6"}},{"ruleId":"D2","level":"warning","message":{"text":"BuildPlan.__str__ (cognitive 26): BuildPlan.__str__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"82527535760260e018212f126d60c511c080c2340f11ece87f6fd2f935644949"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectDbtOrchestrator._prepare_build (cognitive 26): PrefectDbtOrchestrator._prepare_build has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7, loops 1 (2 pts), 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":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e38e82e705c9532e0a92a76596ac50d80de260ed8828914bc85254a3a0c565d"}},{"ruleId":"D2","level":"warning","message":{"text":"diagnostics._parse_scheduler_message (cognitive 26): diagnostics._parse_scheduler_message has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (23 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/diagnostics.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5181c16e80a8b332f2f4c60f9454b28efe659586462cee6f80a6ff1646af00"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_run.ls (cognitive 26): flow_run.ls has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 3 (5 pts), loops 2 (4 pts), boolean chains 3 (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":"src/prefect/cli/flow_run.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0309dbb698250706e3ec7a1b3ee4eca7f6508bc4ee9dddd934e2bf800384555"}},{"ruleId":"D2","level":"warning","message":{"text":"task.serve (cognitive 26): task.serve has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (7 pts), error handling 2 (6 pts), ternaries 2 (5 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/task.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd9dc0bb2f1b597770e6e531a8dd6f71014eaea958f652cdb08f39731ffcffe"}},{"ruleId":"D2","level":"warning","message":{"text":"work_pool.slots (cognitive 26): work_pool.slots has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 6 (8 pts), boolean chains 6, ternaries 1 (3 pts), error handling 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":"src/prefect/cli/work_pool.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6f636ac09d04f5eab42fa009eae3388a4a0a773f56048b88154b08d95bdbff"}},{"ruleId":"D2","level":"warning","message":{"text":"ConcurrencySlotAcquisitionWithLeaseService.acquire (cognitive 26): ConcurrencySlotAcquisitionWithLeaseService.acquire has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (19 pts), error handling 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/concurrency/services.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"021f1c0d62dde39b55dab10c8a6c807db55b8a5e8f1c487a35cf828a01aa4b17"}},{"ruleId":"D2","level":"warning","message":{"text":"ReleaseTaskConcurrencySlots.after_transition (cognitive 26): ReleaseTaskConcurrencySlots.after_transition has cognitive complexity 26 (threshold 15). Drivers by points: loops 4 (12 pts), if/else 4 (9 pts), error handling 1 (4 pts), boolean chains 1 (nesting depth added 16). 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":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fadb14759857c11e689f6d6929a19b8c6c4a09700fed0be315e27d229908b36"}},{"ruleId":"D2","level":"warning","message":{"text":"subscriptions.accept_prefect_socket (cognitive 26): subscriptions.accept_prefect_socket has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 5 (10 pts), boolean chains 4, error handling 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":"src/prefect/server/utilities/subscriptions.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d26d92b01ad0b5ef0bbf9c887097d42a84d3963ea26f34b251d220128df5d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"services.critical_service_loop (cognitive 26): services.critical_service_loop has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 2 (4 pts), loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/services.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"519caf7a6e68246c14f41a0d298cb1d9cb1891fdc01264dcc4b1cc8640486af0"}},{"ruleId":"D2","level":"warning","message":{"text":"index.FlowRunTooltip (cognitive 26): index.FlowRunTooltip has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11, boolean chains 9, ternaries 5 (6 pts) (nesting depth added 1). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 467, 517, 524, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/flow-run-activity-bar-graph/index.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"59635fb1450ddf244084002a22be97bbb39765033f4299ab7b812146925395d5"}},{"ruleId":"D2","level":"warning","message":{"text":"EcsObserver.run (cognitive 25): EcsObserver.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (6 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fe0b981d227e8bc89654acac3f48aa0458db90653e78ca2120f7eb02d9fb55"}},{"ruleId":"D2","level":"warning","message":{"text":"DbtConfigs._populate_configs_json (cognitive 25): DbtConfigs._populate_configs_json has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 4, loops 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":"src/integrations/prefect-dbt/prefect_dbt/cli/configs/base.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c7af9225d8a820ec0bdcb9fb656b429127748c0e06cd6d8ef1eb02f46a5e44"}},{"ruleId":"D2","level":"warning","message":{"text":"DbtCloudJobRun._build_trigger_job_run_options (cognitive 25): DbtCloudJobRun._build_trigger_job_run_options has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 7, error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e04f40146267e2e2e17d2a4fc67bd602e789bec8ca48c5d0a5d8341b97f97f"}},{"ruleId":"D2","level":"warning","message":{"text":"bundles.create_bundle_for_flow_run (cognitive 25): bundles.create_bundle_for_flow_run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), error handling 1 (2 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/__init__.py"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"da121ca2e666bfdeb877ba8016e4b862bf47a4d212115a4af5310d06ea1dcfa8"}},{"ruleId":"D2","level":"warning","message":{"text":"MigratableAutomation.migrate (cognitive 25): MigratableAutomation.migrate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/automations.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08e79db42b54ce19e18ceba9b2018c384345dfec6c3129f4c4cc61da2b27cc7"}},{"ruleId":"D2","level":"warning","message":{"text":"server.create_ui_app (cognitive 25): server.create_ui_app has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 1 (4 pts), loops 2 (4 pts), boolean chains 1, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/server.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9cd0952beee665fd3712a7e2fe128e7de3865541b18541e8cd164ad9f9a5b8"}},{"ruleId":"D2","level":"warning","message":{"text":"cancellation_cleanup.handle_cancelling_timeout (cognitive 25): cancellation_cleanup.handle_cancelling_timeout has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5, error handling 1 (2 pts), ternaries 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":"src/prefect/server/services/cancellation_cleanup.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5ff4a579211819b25f468a2114d56bd0d9a379821208de5d4acc00d13bc22b"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerChannelConnection._receive_loop (cognitive 25): WorkerChannelConnection._receive_loop has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), error handling 4 (9 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/worker_channel.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8276ad1a631ba40ea02cd392084a9e284de92b4febcfa36791a585bf9cba4b"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerCleanupQueue.reserve (cognitive 25): WorkerCleanupQueue.reserve has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (4 pts), boolean chains 2, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/worker_communication/cleanup_queue/memory.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"264351f0f7002aff136b762f3bc764324d2d52ee7e604fb2d1122812f53eb29f"}},{"ruleId":"D2","level":"warning","message":{"text":"task_engine.run_generator_task_sync (cognitive 25): task_engine.run_generator_task_sync has cognitive complexity 25 (threshold 15). Drivers by points: error handling 5 (15 pts), if/else 3 (4 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbb147120f9bf2309f18df91858d2b176771cc35bcaa1dc778d47c37ecaf616"}},{"ruleId":"D2","level":"warning","message":{"text":"schema-form-input.SchemaFormInput (cognitive 25): schema-form-input.SchemaFormInput has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (22 pts), ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9bc425f26760ec1469c8d352e8d9c60e3a4ecbc0b99fc1a53dc920325e18c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ecs.replicate_ecs_event (cognitive 24): ecs.replicate_ecs_event has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), error handling 3 (7 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57996ab4d12547cba96dd0dd62e711637db5403cd1c53be1a53102486eaee8a"}},{"ruleId":"D2","level":"warning","message":{"text":"commands._create_unsuccessful_markdown (cognitive 24): commands._create_unsuccessful_markdown has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 4 (12 pts), loops 4 (8 pts), if/else 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cli/commands.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a642a55c52cbf29f260e2fbcbe665bb85601478bfaf6999c82866a747d0c1a1"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerCleanupQueue._run_operation (cognitive 24): WorkerCleanupQueue._run_operation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), error handling 1 (2 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/cleanup_queue.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbef1be4e62530ef3b0111e9b9a9998d7c1adff6f49abe2de97d4eb1c1d8ae77"}},{"ruleId":"D2","level":"warning","message":{"text":"_SuspensionWatch._confirm (cognitive 24): _SuspensionWatch._confirm has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, error handling 2 (4 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/observers.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6334d13d0aa67f2d470c8418fff82bba3723054d1707530bbc7b8bcadc57a7"}},{"ruleId":"D2","level":"warning","message":{"text":"_prompts.prompt_push_custom_docker_image (cognitive 24): _prompts.prompt_push_custom_docker_image has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 3 (10 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/_prompts.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8301b56fbcfb9358e645c9be59ff327dd28e2bc1152d7ff9f2446868e265bc2"}},{"ruleId":"D2","level":"warning","message":{"text":"events.emit (cognitive 24): events.emit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 3 (6 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/events.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c7a483e38ef5dee34e97e3748787fc2b4f7bfb85569878e1d07e100a9c246f"}},{"ruleId":"D2","level":"warning","message":{"text":"related.related_resources_from_run_context (cognitive 24): related.related_resources_from_run_context has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 3 (6 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/related.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"02df5261094f2dfe067ec7220d4e358f127251d822dca61e5d69a0f9dbe0fd20"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_runs.pause_flow_run (cognitive 24): flow_runs.pause_flow_run has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e979f4b250ba7c249984cbd7fa1d7433383728f1ddc75360507a8fbdfc76084"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectLogsSubscriber.__anext__ (cognitive 24): PrefectLogsSubscriber.__anext__ has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/logging/clients.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"630bdeedab4e7782a68023adf5a4523a3b1722068eb502c3bac5f5d41de7d6b1"}},{"ruleId":"D2","level":"warning","message":{"text":"concurrency_limits.reset_concurrency_limit_by_tag (cognitive 24): concurrency_limits.reset_concurrency_limit_by_tag has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ec3d1a578516228098ce2459f3e82a02d023747684f151ac76403134331245"}},{"ruleId":"D2","level":"warning","message":{"text":"triggers.reactive_evaluation (cognitive 24): triggers.reactive_evaluation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 1 (3 pts), boolean chains 2, loops 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":"src/prefect/server/events/triggers.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"13852055917fc915e3cc8dfe6398604e120819ff843722b7acf690318064aa74"}},{"ruleId":"D2","level":"warning","message":{"text":"legacy._get_settings_fields (cognitive 24): legacy._get_settings_fields has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 2 (6 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/legacy.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ea2fdca859e88b4df5df0efa8c2c7f3bb1bc2ac92cabad4a0480850a68a72c"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.with_options (cognitive 24): Task.with_options has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 14, boolean chains 10. 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":"src/prefect/tasks.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c5e4ab2e8f55335802e384fc248c2fff0756cc05519b0ea294264f77433396"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.create_local_run (cognitive 24): Task.create_local_run has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 7, loops 1, 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":"src/prefect/tasks.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7728f3dd4ea7cf83168f308a8ad2068a4392a438f2fe61ce381ce77b6d4561"}},{"ruleId":"D2","level":"warning","message":{"text":"CycloptsCliRunner.invoke (cognitive 24): CycloptsCliRunner.invoke has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 2 (4 pts), loops 1 (2 pts), boolean chains 1, error handling 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":"src/prefect/testing/cli.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3da5a32611d3da5be1392c4d1ce19d47db107522228b989770ae3d553f7545"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction.commit (cognitive 24): Transaction.commit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, error handling 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AsyncTransaction.commit) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"266baac04cd5cd17aac45b6c214b77013d2e324343a93edd511c7589dcb4d925"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncTransaction.commit (cognitive 24): AsyncTransaction.commit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3, error handling 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (Transaction.commit) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"56afe3e41162cedb1806eab99f9f2aa976be563b05d2f1d0995198dfe1590a43"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerCleanupExecutor._send_operation_until_resolved (cognitive 24): WorkerCleanupExecutor._send_operation_until_resolved has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2, error handling 1 (2 pts), loops 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":"src/prefect/workers/_cleanup.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cddc61058f8971c8816a416765ee0d884f1303ebcfb5612f2bf979df516cc9"}},{"ruleId":"D2","level":"warning","message":{"text":"rich-date-range-selector.RichDateRangeSelector (cognitive 24): rich-date-range-selector.RichDateRangeSelector has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, if/else 9, ternaries 4 (5 pts) (nesting depth added 1). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 268, a function literal at line 288, a function literal at line 296, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e86b590d1532d63bae81d677914ea508a48bb6f3c2b74b4b22c21143d545d9"}},{"ruleId":"D2","level":"warning","message":{"text":"use-animated-reorder.useAnimatedReorder (cognitive 24): use-animated-reorder.useAnimatedReorder has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 4 (6 pts), ternaries 2 (6 pts), boolean chains 2 (nesting depth added 11). None of this is in the body itself: all 24 points belong to one function literal inside it that branches (line 39). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/hooks/use-animated-reorder.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c56642b4b5daf7de06bb93bff2930945766d9c70e65030f1a831f1d17da4f6b"}},{"ruleId":"D2","level":"warning","message":{"text":"ManifestParser.compute_execution_waves (cognitive 23): ManifestParser.compute_execution_waves has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 6 (10 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_manifest.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9589b64fb199d92f83075525807fd37c8c4db03d869aa887ecf78e2705e17f"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectDbtOrchestrator._build_cache_options_for_node (cognitive 23): PrefectDbtOrchestrator._build_cache_options_for_node has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5, ternaries 3, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7792d85e6d85143bf9d440ebf62bdb7307d912fdf703036258fb999988602b"}},{"ruleId":"D2","level":"warning","message":{"text":"server.start (cognitive 23): server.start has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (17 pts), error handling 4 (6 pts) (nesting depth added 3). 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":"src/prefect/cli/server.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"687713c7465511ec4b72619040d669e1b4a54d330a8d9b4480162ae064486c4a"}},{"ruleId":"D2","level":"warning","message":{"text":"attribution.get_attribution_headers (cognitive 23): attribution.get_attribution_headers has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/attribution.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1260cb0acf48174ae6d25bd223415cfa58e2f5228e61990516334ad0f816b94c"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetContext.from_task_and_inputs (cognitive 23): AssetContext.from_task_and_inputs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (5 pts), ternaries 3, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/context.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b579f76a87f787dc192dbee8c606962f8cb7724dc75d44ff9678c91b06dc3e"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteFileSystem._resolve_path (cognitive 23): RemoteFileSystem._resolve_path has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/filesystems.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0992e6124d5c032726e33f92211a66d6aef7d8d053b4213b534c86a12e0322"}},{"ruleId":"D2","level":"warning","message":{"text":"flows.load_flow_from_flow_run (cognitive 23): flows.load_flow_from_flow_run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, error handling 2 (3 pts), 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":"src/prefect/flows.py"},"region":{"startLine":3259}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c9b9fa598976c1889332b25438d6900d16d1387082fb7289d425b26963e1d7"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectBaseSettings.to_environment_variables (cognitive 23): PrefectBaseSettings.to_environment_variables has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/base.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22a5ce4ec4a7d7095fa6dac74eb5b57b779478a5eb550a99cbb965fe2229561"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.create_run (cognitive 23): Task.create_run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 5, loops 1, 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":"src/prefect/tasks.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63240c212812a8f863bc20a96f2b063ec8f30fb9349d5684cba05b51a8b6119"}},{"ruleId":"D2","level":"warning","message":{"text":"callables._generate_signature_from_source (cognitive 23): callables._generate_signature_from_source has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (8 pts), loops 5, 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":"src/prefect/utilities/callables/__init__.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9a243e38f8f01dd5b7c6a923285206e5a30a720519527a90d04e34f04533d9"}},{"ruleId":"D2","level":"warning","message":{"text":"schema-form-property.SchemaFormProperty (cognitive 23): schema-form-property.SchemaFormProperty has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 8, ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 146, a function literal at line 71, a function literal at line 124, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-property.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d70076088cb2b9bb4920f30a96230b70bb7d4e041fcf2aa48202e7277e8de2"}},{"ruleId":"D2","level":"warning","message":{"text":"data-table.DataTable (cognitive 23): data-table.DataTable has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, ternaries 6 (9 pts), if/else 1 (3 pts) (nesting depth added 5). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 90, 147, 130, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/data-table.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4d9b83bfde4b63dd2eb799ceab5953bd22ce47341c4031745024edcb1539fe"}},{"ruleId":"D2","level":"warning","message":{"text":"work-pool-create-wizard.WorkPoolCreateWizard (cognitive 23): work-pool-create-wizard.WorkPoolCreateWizard has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts), ternaries 3 (4 pts), match/switch 2 (nesting depth added 2). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 9 function items inside it that branch (handleNext, handleSubmit, a function literal at line 60, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/create/work-pool-create-wizard.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6053e4eed3539b7fe407d587a7578d2b99fd41e6a504db40afa20177b4a9503e"}},{"ruleId":"D2","level":"warning","message":{"text":"_freshness.filter_stale_nodes (cognitive 22): _freshness.filter_stale_nodes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 7 (9 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":"src/integrations/prefect-dbt/prefect_dbt/core/_freshness.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"275d4e61e10a61e45123acc6fd8c41c4059fca6c28e90945dcacbb002a05d290"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.push_docker_image (cognitive 22): steps.push_docker_image has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/deployments/steps.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"25afbfecbbd52018bfc2432fc2d1d6c4f71b20ceee0da1aa35b9951f7d77ad77"}},{"ruleId":"D2","level":"warning","message":{"text":"MigratableBlockDocument.get_dependencies (cognitive 22): MigratableBlockDocument.get_dependencies has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/blocks.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a9c1ff43e3a84435e09b5ba183d289e9f8f7828ba364b4f10dfe7d0a40a9fa"}},{"ruleId":"D2","level":"warning","message":{"text":"work_pool.ls (cognitive 22): work_pool.ls has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (6 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_pool.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"c748dd472b52e18c2c4b08ed5a82cdf3c2b9a2ca451dc2ef27f7e50b76477ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"RRuleSchedule.from_rrule (cognitive 22): RRuleSchedule.from_rrule has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/schedules.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb4f8fa73fb9635652f84785a686a7dd88bdf994be2c9e62ddebb49c0212b72"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_runs.apause_flow_run (cognitive 22): flow_runs.apause_flow_run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"506722a7cf44d793edb0a7b2dde3773aea7cb2a0b4f6275268933953144b2c94"}},{"ruleId":"D2","level":"warning","message":{"text":"flows._sanitize_and_load_flow (cognitive 22): flows._sanitize_and_load_flow has cognitive complexity 22 (threshold 15). Drivers by points: error handling 5 (11 pts), if/else 6 (8 pts), loops 3 (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":"src/prefect/flows.py"},"region":{"startLine":3456}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d47751ddb84d1993d1b2a39dfd110be15f00df224f76149be9d1cc1f6b34ad1"}},{"ruleId":"D2","level":"warning","message":{"text":"concurrency_limits.increment_concurrency_limits_v1 (cognitive 22): concurrency_limits.increment_concurrency_limits_v1 has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 5 (8 pts), boolean chains 3 (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":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e066e0c16c19503cabe78478f3a4ea559de790d665fc97eda56e8ec896bc564"}},{"ruleId":"D2","level":"warning","message":{"text":"events.stream_workspace_events_out (cognitive 22): events.stream_workspace_events_out has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (6 pts), error handling 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/events.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9283ca40d45bdbdcdf638307a4f692f29f3710f206f424ee1a2a72889a53494"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_runs.resume_flow_run (cognitive 22): flow_runs.resume_flow_run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 4 (8 pts), boolean chains 5 (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":"src/prefect/server/api/flow_runs.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8dca7b562e9182dfe0054339136ab1b3478cf5c9979aad7668cd9308e10483"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationCore.prevent_run_deployment_loops (cognitive 22): AutomationCore.prevent_run_deployment_loops has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 1 (4 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/schemas/automations.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"43750edbca0810c0b9716acd234984cc9a9fa7f51f17cb0d21b58e33b5f31293"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerChannelConnection.dispatch_one_cleanup_message (cognitive 22): WorkerChannelConnection.dispatch_one_cleanup_message has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), error handling 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/worker_channel.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33544c2bf5a275a1fdf21993251c97f09871d4f28053aa092235a654e95ee0d"}},{"ruleId":"D2","level":"warning","message":{"text":"rich-date-range-selector.RangeView (cognitive 22): rich-date-range-selector.RangeView has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (9 pts), ternaries 4 (nesting depth added 2). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 12 function items inside it that branch (commit, a function literal at line 717, a function literal at line 676, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de6a8db908d0d83ca949865ca7e3edd7ef0cce385aae5140fbddd7c683a3204"}},{"ruleId":"D2","level":"warning","message":{"text":"KubernetesWorker._create_job (cognitive 21): KubernetesWorker._create_job has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/worker.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fda6ca5524753a1faf6b948f7a50249cf3cf7dac9a2aed3eb325214cf6a277b"}},{"ruleId":"D2","level":"warning","message":{"text":"startup.run_startup_hooks (cognitive 21): startup.run_startup_hooks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2 (3 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":"src/prefect/_internal/plugins/startup.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a5f00a51cce22ea17aa8e18aaf279d141722add7c557fab4cc2b07b1de4302"}},{"ruleId":"D2","level":"warning","message":{"text":"version_checking.check_server_version (cognitive 21): version_checking.check_server_version has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (17 pts), error handling 2, boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/version_checking.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5d7e17f87a1eb3ed14d6635a8adad460c29339d12a73c8b208e541c5f11a38"}},{"ruleId":"D2","level":"warning","message":{"text":"automation.inspect (cognitive 21): automation.inspect has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 8, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/automation.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3687ebed589400d2c9b80cd9ff5ffb39c04a3039f1e3d3fda58c28a6ab810525"}},{"ruleId":"D2","level":"warning","message":{"text":"_config._pick_deploy_configs (cognitive 21): _config._pick_deploy_configs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4 (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":"src/prefect/cli/deploy/_config.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"7805d9fe4ec3f96485805b5edab651d974a86b5da89a3c11673d69e99179f50f"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_run.execute (cognitive 21): flow_run.execute has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (7 pts), boolean chains 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":"src/prefect/cli/flow_run.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca2cc36b9b8227dca9399a30fe12211635e2bad6bd2383cc7796559ec894e46"}},{"ruleId":"D2","level":"warning","message":{"text":"deployments.create_deployment (cognitive 21): deployments.create_deployment has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b414e853e8368ac7d1e4c93d2d7f9d2aee6f777e702d3ccb09cecb886c45de9"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerCleanupConnectionRegistry.dispatch_available (cognitive 21): WorkerCleanupConnectionRegistry.dispatch_available has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (6 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/worker_channel_cleanup.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9336a2a05abeac8cf616af572b8c59068f5e18920da332ef21f2bb6e26bd4b"}},{"ruleId":"D2","level":"warning","message":{"text":"root._get_settings_accessors (cognitive 21): root._get_settings_accessors has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (5 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/models/root.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2c50ab9502a38d11fc7ff379f6c304c888d7cc187b82be75282fb684baa055"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncTaskRunEngine.handle_success (cognitive 21): SyncTaskRunEngine.handle_success has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 1 (4 pts), boolean chains 2, ternaries 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. This shape REPEATS in the file: one other method here (AsyncTaskRunEngine.handle_success) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db217a26f376eaec64def8472b7b017d78875dc627f15545eb63a1384d2bd09"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncTaskRunEngine.handle_success (cognitive 21): AsyncTaskRunEngine.handle_success has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 1 (4 pts), boolean chains 2, ternaries 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. This shape REPEATS in the file: one other method here (SyncTaskRunEngine.handle_success) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15d055a6dfdb14137be441c5080ac4fae70b990828e708201d7b79aab4f1361"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseWorker._submit_scheduled_flow_runs (cognitive 21): BaseWorker._submit_scheduled_flow_runs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 3 (7 pts), loops 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":"src/prefect/workers/base.py"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"da73503b9d0e03080314dd663be0755a1794e47d36d7dc910bfe174638d0c686"}},{"ruleId":"D2","level":"warning","message":{"text":"DockerWorker._build_container_settings (cognitive 20): DockerWorker._build_container_settings has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (4 pts), ternaries 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c4dacbf293cfb8995b7d9d9cdb01f41b74e4775732ccaba73cd9d749c3287c"}},{"ruleId":"D2","level":"warning","message":{"text":"Consumer._run_without_consumer_group (cognitive 20): Consumer._run_without_consumer_group has cognitive complexity 20 (threshold 15). Drivers by points: error handling 2 (8 pts), loops 3 (6 pts), ternaries 1 (4 pts), if/else 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/messaging.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0473cdc4c4cac75d4a6d42af6bcce2df20d74d78d1203900c5cc8fd1d241302"}},{"ruleId":"D2","level":"warning","message":{"text":"unions.split_union_top_level (cognitive 20): unions.split_union_top_level has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_sdk/unions.py"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7e6881ababf804de9015f4c22dd4c546df9cbeee87132344cd808b22da5b7d"}},{"ruleId":"D2","level":"warning","message":{"text":"bundles._is_local_module (cognitive 20): bundles._is_local_module has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/__init__.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a62fc2ccf90944070c3931507b8a2c07da56d2060f4d46adce6cc30665ac4d"}},{"ruleId":"D2","level":"warning","message":{"text":"profile.check_server_connection (cognitive 20): profile.check_server_connection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 6 (9 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":"src/prefect/cli/profile.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d17e64153c3310f6668da2c15ceff797e9df62ecbf25cf1bf58b0121683215"}},{"ruleId":"D2","level":"warning","message":{"text":"MigratableDeployment.get_dependencies (cognitive 20): MigratableDeployment.get_dependencies has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (20 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/deployments.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaf26da3634f507a1b37ec270cb2468944adb6cc0b850b651751f40dc26b3dd"}},{"ruleId":"D2","level":"warning","message":{"text":"DeploymentClient.create_deployment (cognitive 20): DeploymentClient.create_deployment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (DeploymentAsyncClient.create_deployment) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a07b76ec6bd317d31861e5549219c8d30172d44c1bd72fe840aa7ec8df1132"}},{"ruleId":"D2","level":"warning","message":{"text":"DeploymentAsyncClient.create_deployment (cognitive 20): DeploymentAsyncClient.create_deployment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (DeploymentClient.create_deployment) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ef56595586387cdab9fe4a87eb7b2776d7c13e6ca2deac47e589723a8c417e"}},{"ruleId":"D2","level":"warning","message":{"text":"base._format_deployment_for_saving_to_prefect_file (cognitive 20): base._format_deployment_for_saving_to_prefect_file has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/base.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b38bbdcd017086855a66b0b5dc79cf6f78b892c964a7436b67bcecae5070a5"}},{"ruleId":"D2","level":"warning","message":{"text":"Flow.with_options (cognitive 20): Flow.with_options has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10, boolean chains 9, if/else 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":"src/prefect/flows.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c27bb04faf1ec888fa35294dfce9ae12695cd981e4db1ba1ccf4c5f151a3be8"}},{"ruleId":"D2","level":"warning","message":{"text":"CoiledPushProvisioner.provision (cognitive 20): CoiledPushProvisioner.provision has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, error handling 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":"src/prefect/infrastructure/provisioners/coiled.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eaec3f909276d786679890d6fb3afc15e24346e6776b56186928c2ae58ed5b5"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowRunExecutor.submit (cognitive 20): FlowRunExecutor.submit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 5, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/_flow_run_executor.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d83fbb3a769a0604208c881e2b70ff8a24408b85f2a8a269c0b5d581ee257ba"}},{"ruleId":"D2","level":"warning","message":{"text":"validation._get_base_config_defaults (cognitive 20): validation._get_base_config_defaults has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 1 (4 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/validation.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ee7786b9d53fca6909319bc624dfbbf918b24e23c4163fcbbceda41ed25d8d"}},{"ruleId":"D2","level":"warning","message":{"text":"EventRelatedFilter.build_where_clauses (cognitive 20): EventRelatedFilter.build_where_clauses has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/filters.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95a082167275176a3d891a2631604f41ed41a2c28d19c21aee7bd09e435ec7c"}},{"ruleId":"D2","level":"warning","message":{"text":"postgres_listener._normalize_asyncpg_dsn_query_params (cognitive 20): postgres_listener._normalize_asyncpg_dsn_query_params has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/postgres_listener.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bee49f80d502968def3b0223b96de12f90b3b185381423cb03fb71fefeba5e4"}},{"ruleId":"D2","level":"warning","message":{"text":"postgres_listener.pg_listen (cognitive 20): postgres_listener.pg_listen has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 6 (9 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/postgres_listener.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b50449c26a14dedb095b70e66df99f9bd8986d720d59caf497d1bd1700b7625"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileSettingsTomlLoader.get_field_value (cognitive 20): ProfileSettingsTomlLoader.get_field_value has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/sources.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadf50fcb396bf8769cfb8acf622b9bbb8215e78da73d5fbfea4bcf937d55db4"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncTaskRunEngine.handle_retry (cognitive 20): SyncTaskRunEngine.handle_retry has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AsyncTaskRunEngine.handle_retry) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b37af67626c7231ee33dcda828399a9c3bd3e31de7e96836804938fc294f862"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncTaskRunEngine.handle_retry (cognitive 20): AsyncTaskRunEngine.handle_retry has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SyncTaskRunEngine.handle_retry) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1811e9d61e54364d55c96e1a79f7479faf1dc175c3b6d84af981b3a0325febb5"}},{"ruleId":"D2","level":"warning","message":{"text":"event-resource-combobox.EventResourceCombobox (cognitive 20): event-resource-combobox.EventResourceCombobox has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, loops 3, match/switch 1 (2 pts), ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 8 function items inside it that branch (a function literal at line 139, a function literal at line 65, a function literal at line 128, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf07a1f0ce6ad237bacc4898341d85d7107d72edb1b506f93b78a9207e358ae"}},{"ruleId":"D2","level":"warning","message":{"text":"index.FlowRunsCard (cognitive 20): index.FlowRunsCard has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 8, ternaries 1. Of this number, 10 points are the body\u0027s own statements and 10 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-card/index.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32ba36c72734e34f0c2a32c426be43ceed2a0e7425c13ba99e169deb90f8c59"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.update_work_pool_defaults (cognitive 19): utils.update_work_pool_defaults has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 6, error handling 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/_cli/utils.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94e3a1334558e243e138201646c4b3f0c15720be1e999730623401556a34189"}},{"ruleId":"D2","level":"warning","message":{"text":"DockerWorker._create_and_start_container (cognitive 19): DockerWorker._create_and_start_container has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 3 (7 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaa67ba9ad696b7bce46ac710c8c1b09219f7b47424ea771c3c2605c1ec3ffa"}},{"ruleId":"D2","level":"warning","message":{"text":"Block.ser_model (cognitive 19): Block.ser_model has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, loops 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":"src/prefect/blocks/core.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47ca49934f936e4d126ad37695d2fbfc8a4839bb075679a9805f4cee848b26e"}},{"ruleId":"D2","level":"warning","message":{"text":"automation.update (cognitive 19): automation.update has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 4 (5 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":"src/prefect/cli/automation.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d9f72c73c62f89bae135b175ef9ac22a3b970710305d6a190e4a40ad976a56"}},{"ruleId":"D2","level":"warning","message":{"text":"_actions._generate_default_pull_action (cognitive 19): _actions._generate_default_pull_action has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 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":"src/prefect/cli/deploy/_actions.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbd1e7a67739d2aa8546d937e5928809b811b888a5730bf4cf8b37ba117231b"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_runs.wait_for_flow_run (cognitive 19): flow_runs.wait_for_flow_run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (3 pts), boolean chains 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":"src/prefect/flow_runs.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f3d067f5599954fa565c70063accd41c95cd532353ef2c751de57d7653fe57"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_runs.asuspend_flow_run (cognitive 19): flow_runs.asuspend_flow_run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (flow_runs.suspend_flow_run) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebe46d037dfcd0ea857420fa8bce07f7886fc9e9c2889359aa57b2903179611"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_runs.suspend_flow_run (cognitive 19): flow_runs.suspend_flow_run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (flow_runs.asuspend_flow_run) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b366dce878fd27116567c7183724833d47acafb2f9e60b7c6e525bd3f5274a"}},{"ruleId":"D2","level":"warning","message":{"text":"APILogHandler.prepare (cognitive 19): APILogHandler.prepare has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (4 pts), boolean chains 3 (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":"src/prefect/logging/handlers.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c631232b0f5f0de2c6d938737c74cc2e028f568c9d34f4ae805bea1288fa649c"}},{"ruleId":"D2","level":"warning","message":{"text":"GitRepository.__init__ (cognitive 19): GitRepository.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, loops 1 (2 pts), ternaries 2 (nesting depth added 3). 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":"src/prefect/runner/storage.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df058013d7727bddab4a3a30b6ce5f6c1b61957a08fcc8030f2dd42f61409d8"}},{"ruleId":"D2","level":"warning","message":{"text":"GitRepository._git_config (cognitive 19): GitRepository._git_config has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (7 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/storage.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"89271164fdfa40604acb76eeed5b34329d0019b7b60dd8bc5396ddf812334277"}},{"ruleId":"D2","level":"warning","message":{"text":"storage._format_token_from_credentials (cognitive 19): storage._format_token_from_credentials has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 4, boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/storage.py"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d13bd8b5694179db8bc1c9f6d797efa9a804695d008bd07db2f6ae07bf6a00"}},{"ruleId":"D2","level":"warning","message":{"text":"concurrency_limits.delete_concurrency_limit (cognitive 19): concurrency_limits.delete_concurrency_limit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (concurrency_limits.delete_concurrency_limit_by_tag) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11d895ca5be326e824cfa3c050acbdb8dfaf9353a7a6493d2e7290d6eaa7baf"}},{"ruleId":"D2","level":"warning","message":{"text":"concurrency_limits.delete_concurrency_limit_by_tag (cognitive 19): concurrency_limits.delete_concurrency_limit_by_tag has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (concurrency_limits.delete_concurrency_limit) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a534f7345d4f32252e3684481e61da7e508730348d5222308524215a9995c2"}},{"ruleId":"D2","level":"warning","message":{"text":"2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.upgrade (cognitive 19): 2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.upgrade has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (8 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f75815e361c6721478a6617d47baf058d725412699604a3b571a6a1ae9dd4f9"}},{"ruleId":"D2","level":"warning","message":{"text":"2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.upgrade (cognitive 19): 2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.upgrade has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (8 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69e8ba5d037881d18cee8b073ad5d0685a3038614fbb99debb7b2fa9ef0d918"}},{"ruleId":"D2","level":"warning","message":{"text":"triggers.listen_for_automation_changes (cognitive 19): triggers.listen_for_automation_changes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 3 (7 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/triggers.py"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8831c7ba61b6fe15367194ea3ccef0075d74d948ced252254d3cb2e24e854c23"}},{"ruleId":"D2","level":"warning","message":{"text":"block_schemas._register_nested_block_schemas (cognitive 19): block_schemas._register_nested_block_schemas has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/block_schemas.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"60132fe5c8dcd5a64267d69599fb21d34038dba1c1f801dca9f2b97c3ce7cd7c"}},{"ruleId":"D2","level":"warning","message":{"text":"deployments.update_deployment (cognitive 19): deployments.update_deployment has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/deployments.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb66323d739ee3ba12960bbbd26e6667c2940cbc205684b468f39701e4b69f9"}},{"ruleId":"D2","level":"warning","message":{"text":"flow_runs.count_flow_runs (cognitive 19): flow_runs.count_flow_runs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3 (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":"src/prefect/server/models/flow_runs.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2003fb05968d4e8e5182aaaac811848d2c03dc3046518a95f306f5f72d5496b"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidateDeploymentConcurrencyAtRunning.before_transition (cognitive 19): ValidateDeploymentConcurrencyAtRunning.before_transition has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"86297e228dcb3225503657932a1e887fcbcaa55cac78a853baf9034004cdfd08"}},{"ruleId":"D2","level":"warning","message":{"text":"schedules._seek_calendar_interval (cognitive 19): schedules._seek_calendar_interval has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/schedules.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdf463e2d637f96574d1f3ad301ba53cc96832edcde3c1836f66eef730a4070"}},{"ruleId":"D2","level":"warning","message":{"text":"states.get_state_exception (cognitive 19): states.get_state_exception has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/states.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b32dc03908d3bd8b422979d9628e9eddc243854f6e8da242bdcbb73aa24815"}},{"ruleId":"D2","level":"warning","message":{"text":"tasks._infer_parent_task_runs (cognitive 19): tasks._infer_parent_task_runs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/tasks.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ef1d7a608a63c0cb3584dd0bcddf6562ced55bb55d780b92b8539491a45d48"}},{"ruleId":"D2","level":"warning","message":{"text":"_datetime.in_local_tz (cognitive 19): _datetime.in_local_tz has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (6 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/types/_datetime.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1933d6b22a3bc8d0735f8db1a46b9e1e8bd1cb0494916e7e4d9f3da8980972d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerChannelProtocolHandler._receive_loop (cognitive 19): WorkerChannelProtocolHandler._receive_loop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/_worker_channel/_protocol.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3119c9269f9c6266185ee40bde65a926477a53aab102ee6bd15685ab8c5a2b9"}},{"ruleId":"D2","level":"warning","message":{"text":"task-run-details.TaskRunDetails (cognitive 19): task-run-details.TaskRunDetails has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 10, boolean chains 8, if/else 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":"ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eef43ba2fde71c0b8d9f71894a1f1b9e87527e902324cb8445a4f67274ecb6f"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectDbtOrchestrator.run_build (cognitive 18): PrefectDbtOrchestrator.run_build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 1 (2 pts), error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be7145d9a1d0b4422b00b2fca5909460683c032a5a9a5f0ac14dc564a7cb0ea"}},{"ruleId":"D2","level":"warning","message":{"text":"steps.build_docker_image (cognitive 18): steps.build_docker_image has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/deployments/steps.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"41499938af0ee8442bcfca995c655b25bdc05f4b81424332459bbc530856f03b"}},{"ruleId":"D2","level":"warning","message":{"text":"observer._fetch_pod_container_logs_ordered (cognitive 18): observer._fetch_pod_container_logs_ordered has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34f950cdbea862976f81546fbe6a8813c8efb571c0de7d11d7af66e902c9dc4"}},{"ruleId":"D2","level":"warning","message":{"text":"messaging._trim_stream_to_lowest_delivered_id (cognitive 18): messaging._trim_stream_to_lowest_delivered_id has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/messaging.py"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cf5d1661964ba9dcb704bb065138765907342bfa211c1226c30e6a85806a86"}},{"ruleId":"D2","level":"warning","message":{"text":"buildx.buildx_build_image (cognitive 18): buildx.buildx_build_image has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/buildx.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91f973af7df4c370d0cfc22afc83e40821cf45e82322ab8dfe1f487ea4ddf44"}},{"ruleId":"D2","level":"warning","message":{"text":"naming.to_class_name (cognitive 18): naming.to_class_name has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_sdk/naming.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e96cc6a5c2b8d5e7b52f861291aa4ae2b19617f25bdeed4a2f7b10895432286"}},{"ruleId":"D2","level":"warning","message":{"text":"Block._save (cognitive 18): Block._save has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/core.py"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1928c085b38dfe248b2709e3f18c617d0ac47b7bc89994c695e506ee885fe1"}},{"ruleId":"D2","level":"warning","message":{"text":"block.register (cognitive 18): block.register has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (4 pts), ternaries 2 (3 pts) (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":"src/prefect/cli/block.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c110cf4e1497a4da06aae213c3edef39bbac8ec13fb9d109f6ac3a71b077c14"}},{"ruleId":"D2","level":"warning","message":{"text":"_schedules._schedule_config_to_deployment_schedule (cognitive 18): _schedules._schedule_config_to_deployment_schedule has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 1 (2 pts), 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":"src/prefect/cli/deploy/_schedules.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c46975ae9ba5ae50e91d19a74204a682a91405b3ac32e88737229f1250c48da"}},{"ruleId":"D2","level":"warning","message":{"text":"profile.inspect (cognitive 18): profile.inspect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/profile.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd78e0cdb843268a4a90bdf551543ce2d6db0ea2e60924d88e00260ff293c86"}},{"ruleId":"D2","level":"warning","message":{"text":"work_queue.preview (cognitive 18): work_queue.preview has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, error handling 2 (4 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 3). 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":"src/prefect/cli/work_queue.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"e819b96c800e97cc80c2502a132f639a85068489b3d49b01c44822ae29886997"}},{"ruleId":"D2","level":"warning","message":{"text":"Subscription._ensure_connected (cognitive 18): Subscription._ensure_connected has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, ternaries 2, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/subscriptions.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05dd85fc13cf05b0e1ff17fa969ba2c14ec4fadde6e46ec387da98a2df52be7"}},{"ruleId":"D2","level":"warning","message":{"text":"utility.run_shell_script (cognitive 18): utility.run_shell_script has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/steps/utility.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e11b4b4f7a3859c002bebefb703b5a75697ba77278734b816e65903fae07c74"}},{"ruleId":"D2","level":"warning","message":{"text":"InfrastructureBoundFlow.submit_to_work_pool (cognitive 18): InfrastructureBoundFlow.submit_to_work_pool has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":2633}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48c1a0c5078a9ffae059fc70a13f75b6f0a7c131fec60a0157d5cec1c917b8b"}},{"ruleId":"D2","level":"warning","message":{"text":"AzureCLI.run_command (cognitive 18): AzureCLI.run_command has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/infrastructure/provisioners/container_instance.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f006a6fb82dd4ecf513aa6b177c3f2a1fa5ae411e087ddcee0d093e068b8c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ModalPushProvisioner.provision (cognitive 18): ModalPushProvisioner.provision has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, error handling 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":"src/prefect/infrastructure/provisioners/modal.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2fc186bf8e2a5ec6135ecc0945942b249bc27cde8bfae13fd3b71097d46bb0"}},{"ruleId":"D2","level":"warning","message":{"text":"ResultStore.aupdate_for_task (cognitive 18): ResultStore.aupdate_for_task has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4 (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. This shape REPEATS in the file: one other method here (ResultStore.update_for_task) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/results.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"189e17f47d633236cb21e71d1d006d0b6b853cffc0e58dfd235dfc81d3075b4e"}},{"ruleId":"D2","level":"warning","message":{"text":"ResultStore.update_for_task (cognitive 18): ResultStore.update_for_task has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4 (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. This shape REPEATS in the file: one other method here (ResultStore.aupdate_for_task) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/results.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"d002a392ff4d214009b7c7b55f55743d932d876a3e6e7543d4852ecc1bc00203"}},{"ruleId":"D2","level":"warning","message":{"text":"GitRepository._clone_repo (cognitive 18): GitRepository._clone_repo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/storage.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd4583db3716a4c34cf6500f7693431a263df3a2a592c219f3a2433187cad3d"}},{"ruleId":"D2","level":"warning","message":{"text":"deployments.create_flow_run_from_deployment (cognitive 18): deployments.create_flow_run_from_deployment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 3 (5 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"05169997f90a63cf35d5989655ba757a8410a13e50cd34da51e93329f62d909e"}},{"ruleId":"D2","level":"warning","message":{"text":"task_runs.scheduled_task_subscription (cognitive 18): task_runs.scheduled_task_subscription has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 3 (5 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/task_runs.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c361e93b46c1afea3bfdca78723586ff89cac077dbd052470bf10c8d1169818"}},{"ruleId":"D2","level":"warning","message":{"text":"env.include_object (cognitive 18): env.include_object has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, ternaries 1 (4 pts) (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/env.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0310487c618015ed41f71ade3a82dcc3eb85f304c4068277585bfef3d96426a0"}},{"ruleId":"D2","level":"warning","message":{"text":"SecureFlowConcurrencySlots.before_transition (cognitive 18): SecureFlowConcurrencySlots.before_transition has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 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":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86a29efb10815d7734c8287aaf6a061841a220c8922c7c61e4a936be7fc6fcb"}},{"ruleId":"D2","level":"warning","message":{"text":"validation.validate (cognitive 18): validation.validate has cognitive complexity 18 (threshold 15). Drivers by points: error handling 5 (10 pts), if/else 6 (8 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/schema_tools/validation.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b89c050367fb94cd0d291a8b61b7d4be533d2f33455b74ec3ad4241b62bf71b"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerChannelProtocolHandler.run_session (cognitive 18): WorkerChannelProtocolHandler.run_session has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (4 pts), boolean chains 1, error handling 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":"src/prefect/workers/_worker_channel/_protocol.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd68fca1181a238e0982c74f66cf29c79f912164f4f45c3367472b27fcc26afb"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkPoolWorkerChannel._sync_rest_work_pool (cognitive 18): WorkPoolWorkerChannel._sync_rest_work_pool has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (4 pts), boolean chains 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":"src/prefect/workers/_worker_channel/_sync.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"712a7d647dea27fb2a194d908f7c320309b29dce01dae8d18741dbf14f3d67a6"}},{"ruleId":"D2","level":"warning","message":{"text":"use-get-automation-action-resources.getResourceSets (cognitive 18): use-get-automation-action-resources.getResourceSets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), match/switch 1 (2 pts), loops 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":"ui-v2/src/api/automations/use-get-automation-action-resources/use-get-automation-action-resources.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6dc7b8b30f988fae296c03ac975bc83659d173c01fefd1aaec6c72f067dce5"}},{"ruleId":"D2","level":"warning","message":{"text":"index.AutomationDeploymentCombobox (cognitive 18): index.AutomationDeploymentCombobox has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, ternaries 3, loops 2 (nesting depth added 1). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 112, handleSelectDeployment, renderSelectedDeployments, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"55963712038e5e9ab8dc60d1e985dde607d4b9f20c535b26605c036868ca78ef"}},{"ruleId":"D2","level":"warning","message":{"text":"interval-schedule-form.IntervalScheduleForm (cognitive 18): interval-schedule-form.IntervalScheduleForm has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 3). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 163, handleSave, a function literal at line 223, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"66765040771d03cd6e15623adf620281c2de837d4f4073174ea1216b72ca9d3d"}},{"ruleId":"D2","level":"warning","message":{"text":"schema-form-input-object.SchemaFormInputObject (cognitive 18): schema-form-input-object.SchemaFormInputObject has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (5 pts), boolean chains 2, loops 2 (nesting depth added 4). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 78, 42, 52, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input-object.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c448d209313c3208498c008e399140248eae0e282dc5d804b1b2b24483bddda5"}},{"ruleId":"D2","level":"warning","message":{"text":"uiSettings.getVisibleBasePrefix (cognitive 18): uiSettings.getVisibleBasePrefix has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 5 (8 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/services/uiSettings.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9330168012355bdd6e6349b55c6281b144084452b16ae10e855d0d2ec8c90d7"}},{"ruleId":"D2","level":"warning","message":{"text":"ecs_worker.deploy_service (cognitive 17): ecs_worker.deploy_service has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/_cli/ecs_worker.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb0c679ac565332660e698b9b741fa4989b60349215e5d66eb5eddbd59a7d44"}},{"ruleId":"D2","level":"warning","message":{"text":"Automation.aread (cognitive 17): Automation.aread has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, error handling 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. This shape REPEATS in the file: one other method here (Automation.read) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/automations.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c12926e00483a5165bdff6d9c946e04941aff328c606e6e896c1563a643389"}},{"ruleId":"D2","level":"warning","message":{"text":"Automation.read (cognitive 17): Automation.read has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, error handling 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. This shape REPEATS in the file: one other method here (Automation.aread) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/automations.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"99aaa8571d463dc9f9aa944da30592c9b9c3f0e64b52fe89a7d8641e9a048be8"}},{"ruleId":"D2","level":"warning","message":{"text":"FileCollector._matches_exclusion (cognitive 17): FileCollector._matches_exclusion has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_file_collector.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2a1eedb4487af968d7a0842823553c63039ed0c837db985aa7056f781bdfa7"}},{"ruleId":"D2","level":"warning","message":{"text":"FileCollector._validate_file_path (cognitive 17): FileCollector._validate_file_path has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (FileCollector._collect_single_file) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_file_collector.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1dfbdbffff2fb4e64ad172596a7f0d48615c32adecaf4c62e465e85255c448a"}},{"ruleId":"D2","level":"warning","message":{"text":"FileCollector._collect_single_file (cognitive 17): FileCollector._collect_single_file has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (FileCollector._validate_file_path) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_file_collector.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7391e7e1746059b7824d43caf0d54fb1457abda34a900601a27e5a2b1fbb510"}},{"ruleId":"D2","level":"warning","message":{"text":"cloud.workspace_set (cognitive 17): cloud.workspace_set has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), error handling 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":"src/prefect/cli/cloud/__init__.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdea60134f244b4c5cb7337842cb9b200929333bb800719f3c800ba60e59884b"}},{"ruleId":"D2","level":"warning","message":{"text":"futures.wait (cognitive 17): futures.wait has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (6 pts), boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/futures.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a9ff17a19047ee6d0df4c038c8322d48fbc233015f3e89892588360b52cf63"}},{"ruleId":"D2","level":"warning","message":{"text":"loggers.get_run_logger (cognitive 17): loggers.get_run_logger has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/logging/loggers.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"03396bcd098ff306c5c1259eea4382acc2a83bf30a0bc8f4f35722e32251bc78"}},{"ruleId":"D2","level":"warning","message":{"text":"EngineCommandStarter.start (cognitive 17): EngineCommandStarter.start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 4, error handling 2 (3 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/_starter_engine.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccd4a81f603cf9b3fd0ff8f84593be0ac7a3a6c936e607c6917f37bf912e25f"}},{"ruleId":"D2","level":"warning","message":{"text":"EventAnyResourceFilter.build_where_clauses (cognitive 17): EventAnyResourceFilter.build_where_clauses has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/filters.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8d20494d9031af0a2def3f30a1a69a7ed31d117db6f08cfe3d4f2626b24256"}},{"ruleId":"D2","level":"warning","message":{"text":"ReleaseFlowConcurrencySlots.after_transition (cognitive 17): ReleaseFlowConcurrencySlots.after_transition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 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":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46841724b25c11802d35950e8475bb57a5915095572829c285a72e4c9d7231f"}},{"ruleId":"D2","level":"warning","message":{"text":"HandleFlowTerminalStateTransitions.before_transition (cognitive 17): HandleFlowTerminalStateTransitions.before_transition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8172c9cfefb1c814aa6aad56f7f22638e28eeca04b869d8ec5146ff4e7a46c"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementFlowRunCount.before_transition (cognitive 17): IncrementFlowRunCount.before_transition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 2 (nesting depth added 9). 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":"src/prefect/server/orchestration/global_policy.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad3b21508e53e0ba1222b61b6e9ade481037a12812d4f13194c8059eff99115"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskOrchestrationContext._validate_proposed_state (cognitive 17): TaskOrchestrationContext._validate_proposed_state has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/rules.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a9ece9c7fed395623ab54c88760c9d55114dd8b876ed3c8b12a1f6138e2163"}},{"ruleId":"D2","level":"warning","message":{"text":"CronSchedule._get_dates_whenever (cognitive 17): CronSchedule._get_dates_whenever has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/schedules.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfded2f424e56a3bd69281008b528080441d29084999fde4450abe7b27474d03"}},{"ruleId":"D2","level":"warning","message":{"text":"RRuleSchedule.to_rrule (cognitive 17): RRuleSchedule.to_rrule has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (8 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/schedules.py"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"571e4d1b85e0d6173ec3a5114bdae74715d43e35b30bc1dfbf8280a0c9fd23ca"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerCleanupConnectionRegistry._dispatch_loop (cognitive 17): WorkerCleanupConnectionRegistry._dispatch_loop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/worker_channel_cleanup.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aedc71657c1b8ed03d062d16e199532988e23168c94abe30edf84fcc8727536"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefectBaseSettings._ser_model (cognitive 17): PrefectBaseSettings._ser_model has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/base.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa786a0d0e5dfdc01c329e9eb786a6750e731255b978d3d18ba82bd2e39f0067"}},{"ruleId":"D2","level":"warning","message":{"text":"base._add_environment_variables (cognitive 17): base._add_environment_variables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/base.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ae3f145b9a01382a1a61f51925d65f60b712c27050746dac03cf5218033a1f"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskRunner.map (cognitive 17): TaskRunner.map has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 5 (7 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25936b7a370b9664a537cf06626a412d96a12c9c2c97368e3a4b19baac078ca"}},{"ruleId":"D2","level":"warning","message":{"text":"engine.capture_sigterm (cognitive 17): engine.capture_sigterm has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, error handling 3 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e26d461ef0f9b16f91b2e7e62b943e57cac9b194bd8af30d603d73cc904674d"}},{"ruleId":"D2","level":"warning","message":{"text":"engine.propose_state (cognitive 17): engine.propose_state has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (17 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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"379ccca36e2bf4cb15f92adab8a278e7ea968780a2e922702529f4401bb060f7"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseJobConfiguration.from_template_and_values (cognitive 17): BaseJobConfiguration.from_template_and_values has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f7e43534858594b5bcf543d600f8b973e41f3c5cf95d3b3c26ca74709fe968"}},{"ruleId":"D2","level":"warning","message":{"text":"activity-chart.FlowRunsBarChart (cognitive 17): activity-chart.FlowRunsBarChart has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 4, boolean chains 2, loops 1 (nesting depth added 3). None of this is in the body itself: all 17 points belong to 6 function literals inside it that branch (lines 57, 70, 82, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/activity-chart/activity-chart.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"af476627c5f5e6d254ed7d761fcf7ceae2373bab09be847e4ddffb4fa77beb82"}},{"ruleId":"D2","level":"warning","message":{"text":"flow-run-graph.FlowRunGraph (cognitive 17): flow-run-graph.FlowRunGraph has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, ternaries 4 (5 pts), if/else 2 (nesting depth added 1). Of this number, 13 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46330ba3795b44762e4a2184b69035ca47db19ad3e631856258b23b8fed0899"}},{"ruleId":"D2","level":"warning","message":{"text":"date-time-picker.DateTimePicker (cognitive 17): date-time-picker.DateTimePicker has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 4 (5 pts), ternaries 5 (nesting depth added 1). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (handleTimeChange, a function literal at line 134, a function literal at line 94, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"058f9cf6d65c8c6c6fcd3e01cc57696d9db31f5f44447b69a7d4df47f3cf50a1"}},{"ruleId":"D2","level":"warning","message":{"text":"infrastructure-type-step.InfrastructureTypeStep (cognitive 17): infrastructure-type-step.InfrastructureTypeStep has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (8 pts) (nesting depth added 3). None of this is in the body itself: all 17 points belong to 5 function literals inside it that branch (lines 38, 72, 36, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/create/infrastructure-type-step/infrastructure-type-step.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0600daa5d98e821e60e93f6126a40656106d6a8de5f4b380e73e3f48b13a5e61"}},{"ruleId":"D2","level":"warning","message":{"text":"uiVersion.getVisibleBasePrefix (cognitive 17): uiVersion.getVisibleBasePrefix has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 4 (7 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":"ui/src/utilities/uiVersion.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f94c4330f9231f8cc3d0d806a396164c1177330b4cb9c58946e9b3ca0a6954"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.deploy_stack (cognitive 16): utils.deploy_stack has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 3 (4 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/_cli/utils.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d0732b819bd11c427fc93a91fd6ffd2e54b22b8ab94f6e9fca15b5fc45cf13"}},{"ruleId":"D2","level":"warning","message":{"text":"ECSWorker._get_or_register_task_definition (cognitive 16): ECSWorker._get_or_register_task_definition has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 2 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e0c29a2d96680432cbae62f400b8a2ae69daf3a9d4f0875027d38f5feaeb15"}},{"ruleId":"D2","level":"warning","message":{"text":"ECSWorker._validate_task_definition (cognitive 16): ECSWorker._validate_task_definition has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a12ccc921c8a199909555e234b8f17fe3874ed25fb9b65964e24b1187f3428"}},{"ruleId":"D2","level":"warning","message":{"text":"ecs_worker._drop_empty_keys_from_dict (cognitive 16): ecs_worker._drop_empty_keys_from_dict has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5ad53a63c9a3c59b578a31bf385d2059cc5b96efd2eb6092fe66ae33512971"}},{"ruleId":"D2","level":"warning","message":{"text":"BigQueryTargetConfigs.get_configs (cognitive 16): BigQueryTargetConfigs.get_configs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cli/configs/bigquery.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"03024f460b8dab83953655632384218a94d1ab65ee05e19604ce675090ff69f8"}},{"ruleId":"D2","level":"warning","message":{"text":"client.get_async_redis_client (cognitive 16): client.get_async_redis_client has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (9 pts), boolean chains 4, if/else 2 (3 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/client.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"965e0ef3c52fd0aa3c275a8ef826321f91759b58da5a18236a509f958a9e3a5b"}},{"ruleId":"D2","level":"warning","message":{"text":"connection._split_members (cognitive 16): connection._split_members has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/connection.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"104a1efc122df11867891ffa2b42b16aaee041634e32ba2cc4f0fa0f5d5b2bf5"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidatedFunction._build_fields (cognitive 16): ValidatedFunction._build_fields has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/pydantic/validated_func.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b815b050defd428fccaa32e6964e45e619e5f9696b6d24692d3455a0ab77f00"}},{"ruleId":"D2","level":"warning","message":{"text":"Block.get_code_example (cognitive 16): Block.get_code_example has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 1 (2 pts), boolean chains 1, ternaries 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":"src/prefect/blocks/core.py"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08304516a0d4c46435283b02ee502391573e7fbeda03f25d5c2929a9509a8e8"}},{"ruleId":"D2","level":"warning","message":{"text":"Block._save_sync (cognitive 16): Block._save_sync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/core.py"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c46d83866ff05b5fd7f24cd44cc8af3253d6dd4b89d446fc61661764434ab8"}},{"ruleId":"D2","level":"warning","message":{"text":"bundles._process_module_dependencies (cognitive 16): bundles._process_module_dependencies has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), error handling 3 (6 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/__init__.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea09048ce372b5b080f14475cc2041a84cc2f4b77c1fb40c843575ca188aa77"}},{"ruleId":"D2","level":"warning","message":{"text":"_server_utils.prestart_check (cognitive 16): _server_utils.prestart_check has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 1 (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":"src/prefect/cli/_server_utils.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f17e3a966b5a02845f01cad1fe3933d1c5cb36f1a882f6b8c82bf2489d52742"}},{"ruleId":"D2","level":"warning","message":{"text":"artifact.delete (cognitive 16): artifact.delete has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/artifact.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca45374e6cdb08b63a6852934580a9fe06cf34923376ac8281fff64342b1ad4"}},{"ruleId":"D2","level":"warning","message":{"text":"config.set_ (cognitive 16): config.set_ has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 3 (6 pts), error handling 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/config.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"70721c36d1834e75f7737ed6816457fc0ef1e1a115655ded2fa27e8f3f0719c2"}},{"ruleId":"D2","level":"warning","message":{"text":"profile.populate_defaults (cognitive 16): profile.populate_defaults has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/profile.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5774741122a70be7eafa6a993a4dafb3d37ed9877b138cfbc7adacc22364e8a"}},{"ruleId":"D2","level":"warning","message":{"text":"orchestration.get_client (cognitive 16): orchestration.get_client has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f831ba607e1914268537c3f8da91c3c60f440b2b0495b1636ac2f02dfc46f1"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationClient.find_automation (cognitive 16): AutomationClient.find_automation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AutomationAsyncClient.find_automation) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_automations/client.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"744f905d23fa2dcab8b2c0a025ec4116e75b454b669af48fc1713e1d74dab47e"}},{"ruleId":"D2","level":"warning","message":{"text":"AutomationAsyncClient.find_automation (cognitive 16): AutomationAsyncClient.find_automation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (AutomationClient.find_automation) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_automations/client.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"568139f8352bed42de67afccd9bdee8347119160c8d3926ffd9afdf109d9f6d1"}},{"ruleId":"D2","level":"warning","message":{"text":"context.hydrated_context (cognitive 16): context.hydrated_context has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 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":"src/prefect/context.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ec0b924739c3d5e31653aaeeb6a78d98c27738fb041a85f9ed5dd05b82715c"}},{"ruleId":"D2","level":"warning","message":{"text":"flows.safe_load_flow_from_entrypoint (cognitive 16): flows.safe_load_flow_from_entrypoint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":3403}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa194b53adc36200ce9e996580330b1eec9eefd42844722ed3871f93aadae8a"}},{"ruleId":"D2","level":"warning","message":{"text":"futures.as_completed (cognitive 16): futures.as_completed has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (4 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/futures.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba67cb0b6cbdbb3b8c6a9e8a316902697e69f41879e202a1e96edef850998637"}},{"ruleId":"D2","level":"warning","message":{"text":"configuration.setup_logging (cognitive 16): configuration.setup_logging has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 2 (4 pts), boolean chains 2, ternaries 2, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/logging/configuration.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b561a645ead27e209ced58eb3f500b21cc9eb14bc5939d25f4ce204e9826f93"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlChannel.signal (cognitive 16): ControlChannel.signal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (6 pts), error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/_control_channel.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1f6a40cf3708ee64e07988a1f58b858017ca429af5efd42624005433b1a429"}},{"ruleId":"D2","level":"warning","message":{"text":"workers.worker_channel_connect (cognitive 16): workers.worker_channel_connect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 5 (6 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/workers.py"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"205d367af9a4f61620c0446b5a56776ee0350a99d4355cd8a4a88ae4a01bb87e"}},{"ruleId":"D2","level":"warning","message":{"text":"EventTextFilter.build_where_clauses (cognitive 16): EventTextFilter.build_where_clauses has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (6 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/filters.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5b653f85a0486ad26de0b482daa7ed53f610c1666b9d542800d504a40b5226"}},{"ruleId":"D2","level":"warning","message":{"text":"work_queues.create_work_queue (cognitive 16): work_queues.create_work_queue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/work_queues.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cfed7a757a02c900f95466b59ba83f51a2b15bf18296727efff28932d28c97"}},{"ruleId":"D2","level":"warning","message":{"text":"LogFilterTextSearch._get_filter_list (cognitive 16): LogFilterTextSearch._get_filter_list has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (6 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d8e148967d0e178d909b096668a4eea45831856118cf0fefa6a53fbbaf4c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"postgres_listener.get_pg_notify_connection (cognitive 16): postgres_listener.get_pg_notify_connection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, error handling 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/postgres_listener.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"454814f2379f908f2c8bf503d1152f1403ae36e817d212f0ba62411ccf5b8eff"}},{"ruleId":"D2","level":"warning","message":{"text":"server._find_unpaired_surrogate (cognitive 16): server._find_unpaired_surrogate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/server.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8029888509d35a4743515884ea5d500e89a916094397f1ace74f26d6f6881f08"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskWorker._submit_scheduled_task_run (cognitive 16): TaskWorker._submit_scheduled_task_run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3396376a68f852f65f988dd6831653e9a17d8a02c58c5b83469e7c5beb83d9e"}},{"ruleId":"D2","level":"warning","message":{"text":"engine.propose_state_sync (cognitive 16): engine.propose_state_sync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5f49b934e845ca66b6831eb9d05ab92b5826550acbdca82fafa260f0afbea4"}},{"ruleId":"D2","level":"warning","message":{"text":"engine.resolve_to_final_result (cognitive 16): engine.resolve_to_final_result has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6 (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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4da5daf09a2585ce6c91f9098d686a3824286ee0efd793b32a9be4cf28c5b4"}},{"ruleId":"D2","level":"warning","message":{"text":"pydantic.handle_secret_render (cognitive 16): pydantic.handle_secret_render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 1 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/pydantic.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"886e3508fad6c2a79f607b62abcfcdf93fb20a4d034e44212e15599b02513ab1"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkPoolWorkerChannel._run (cognitive 16): WorkPoolWorkerChannel._run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (6 pts), loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/_worker_channel/_sync.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"347d03f0a1bfed3988d4d67ce1ff2c48ecbe2f51d669033ed4605118b9f851f2"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.RouteComponent (cognitive 16): dashboard.RouteComponent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 4, ternaries 3, match/switch 2 (nesting depth added 2). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 792, 956, 868, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1c7fe32e7813ddaeb25b9eccfdf4c0c59eb08354640288e9b9102434b16021"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger-step.TriggerStep (cognitive 16): trigger-step.TriggerStep has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, error handling 1 (nesting depth added 4). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 68, 45, 98, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/trigger-step.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d717b6d7cdd6057e60a70d60c300a4682de0583f0741d6321a6f3b578aeec5"}},{"ruleId":"D2","level":"warning","message":{"text":"use-delete-block-document-confirmation-dialog.useDeleteBlockDocumentConfirmationDialog (cognitive 16): use-delete-block-document-confirmation-dialog.useDeleteBlockDocumentConfirmationDialog has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 4 (6 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 7). None of this is in the body itself: all 16 points belong to 4 function items inside it that branch (handleConfirmDelete, handleConfirmDelete::handleDeleteBlockDocuments, a function literal at line 64, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/use-delete-block-document-confirmation-dialog.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc349e209af3e673048aa444de2963a9860e2a88dc25d8a4c9087b329ec6bae3"}},{"ruleId":"D2","level":"warning","message":{"text":"scatter-plot-utils.generateLocalTimeTicks (cognitive 16): scatter-plot-utils.generateLocalTimeTicks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (5 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":"ui-v2/src/components/flow-runs/flow-runs-scatter-plot/scatter-plot-utils.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"78986726aed3c761d81053efc0aaf9c14b83fef18185caea9e9cc5e83327ef5d"}},{"ruleId":"D2","level":"warning","message":{"text":"work-pool-flow-runs-tab.WorkPoolFlowRunsTab (cognitive 16): work-pool-flow-runs-tab.WorkPoolFlowRunsTab has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 2, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 38, 83, 157, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-flow-runs-tab/work-pool-flow-runs-tab.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cd0b007edd26719629ebc7c07c6345c33015648df19c29efa7a8ef2ed445d1"}},{"ruleId":"D2","level":"warning","message":{"text":"work-pool-queue-runs-tab.WorkPoolQueueRunsTab (cognitive 16): work-pool-queue-runs-tab.WorkPoolQueueRunsTab has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 2, ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 41, 96, 174, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-runs-tab/work-pool-queue-runs-tab.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85aa5234a0712af784e6e5d561e6382726c4fab7632d6b80f203f8c40716e57"}},{"ruleId":"D2","level":"warning","message":{"text":"detectHorizontalCollisions.clusterHorizontalCollisions (cognitive 16): detectHorizontalCollisions.clusterHorizontalCollisions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, ternaries 2, loops 1 (nesting depth added 2). None of this is in the body itself: all 16 points belong to 3 function items inside it that branch (checkCollisions, clusterItems, a function literal at line 109). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/utilities/detectHorizontalCollisions.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef89049402f17e5b13e65611196af3b8fe9655d6242cef9895c4121721207cb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/graphql_schema.py: FileTooLong \u2014 18300 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 17800 over it, 36.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/schemas/graphql_schema.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92bac5de3a673c8e482acfd0d3f9933de136d3dfc98e5af2b3e7c200ab2528b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/flows.py: FileTooLong \u2014 2012 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1512 over it, 4.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a7d1024d4cffea08011a719e384d02dd24f068ba4c206480cd86306b6ba786"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_github/repository.py: FileTooLong \u2014 1764 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1264 over it, 3.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/repository.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd63003ec5324051c2603fdde741c152f3019d542f8f483844bf82a7c41d2cab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/flow_engine.py: FileTooLong \u2014 1728 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1228 over it, 3.46\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cddb0f234162562c3cac462477803670c621f205aca1700412cfe41d5bb78d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-state-type-empty-live-image.FlowRunStateTypeEmptyLiveImage: FunctionTooLong \u2014 FlowRunStateTypeEmptyLiveImage runs 345 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 245 over it, 3.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-accordion/flow-run-state-type-empty-live-image.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1d43d3aac79467b448aa91e8867cd8a80f9de6df5d0dd89b0864d2186e6ae6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/filters.py: FileTooLong \u2014 1709 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1209 over it, 3.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2588443b7c39e8db639a4ffc5f5bbc542e6b51554a2f5fdf01c06894cdf812"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: nearestParentVertical.getVerticalNearestParentLayout: FunctionTooLong \u2014 getVerticalNearestParentLayout runs 311 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 211 over it, 3.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/workers/layouts/nearestParentVertical.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ede9cd52a534b58b9384c0eb776a03b10daf2d0685dfbae80e00a78c5dc926"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.RouteComponent: FunctionTooLong \u2014 RouteComponent runs 304 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 204 over it, 3.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad50905c34544609dfd0dbcb5f3ad7c8bd02b532f45e138c014c1e1bfc4c936"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-state-type-empty-bad-terminal-image.FlowRunStateTypeEmptyBadTerminalImage: FunctionTooLong \u2014 FlowRunStateTypeEmptyBadTerminalImage runs 300 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 200 over it, 3.00\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":"ui-v2/src/components/dashboard/flow-runs-accordion/flow-run-state-type-empty-bad-terminal-image.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"696b41200f3ead855233223f5c607ea97ba4293ea0d40df85715784233c7057f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-state-type-empty-good-terminal-image.FlowRunStateTypeEmptyGoodTerminalImage: FunctionTooLong \u2014 FlowRunStateTypeEmptyGoodTerminalImage runs 300 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 200 over it, 3.00\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":"ui-v2/src/components/dashboard/flow-runs-accordion/flow-run-state-type-empty-good-terminal-image.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"10625ac6fb7ed29aa2837701c2cf1964b9e79232b7925be10f8889e8b987c28e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/task_engine.py: FileTooLong \u2014 1497 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 997 over it, 2.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae7d42d797a7718516d81cddce82b140a9410c1d08458ba6dbf82e4262d97db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/_orchestrator.py: FileTooLong \u2014 1444 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 944 over it, 2.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb111af14b38433f18544331d34d2d37cff8d05f8d7fa377bf1ae1caa4e2f47"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workers/base.py: FileTooLong \u2014 1432 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 932 over it, 2.86\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07b29c83e3f39d9694daa8174fdb40e3a35201c4141ae870df295070e59293b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: runs-page.RunsPage: FunctionTooLong \u2014 RunsPage runs 277 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 177 over it, 2.77\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":"ui-v2/src/components/runs/runs-page.tsx"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d6b9166626bf9b03df0c976ee6b60fdec8b8c7e5f4cb3e8a998d8d09c14165"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-header.FlowRunHeader: FunctionTooLong \u2014 FlowRunHeader runs 275 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 175 over it, 2.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b419472ee626bde85c3aec4e1a3a4aa33afec537ae4557d9112f813549dd84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: orchestration/core_policy.py: FileTooLong \u2014 1347 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 847 over it, 2.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be59604acd7f021ab230084c8f0a7935425d5d0ca9730a3b81ad2d40fc64f222"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: nodes.nodesContainerFactory: FunctionTooLong \u2014 nodesContainerFactory runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.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":"ui-v2/src/graphs/factories/nodes.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c637db030256de1a7ea8e59ff5f0b7db7844d3abf9f6c980ef5747558bcc2d88"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: events/actions.py: FileTooLong \u2014 1313 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 813 over it, 2.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/actions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2887e6fb48c88256f34c56509f8e2ea9680d51e00059f1df338250ce09e21465"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: deployments/runner.py: FileTooLong \u2014 1287 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 787 over it, 2.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04a69619e25a8c8f34d8ee32340ae4ef72abea963571dc6f8bd9ba61f8e8c11"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-state-type-empty-awaiting-image.FlowRunStateTypeEmptyAwaitingImage: FunctionTooLong \u2014 FlowRunStateTypeEmptyAwaitingImage runs 255 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 155 over it, 2.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-accordion/flow-run-state-type-empty-awaiting-image.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16c90f0b67bc264add4d182cf22a131a2938b32f010b5873910f76005ae8f88"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_github/user.py: FileTooLong \u2014 1260 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 760 over it, 2.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3e29ff9f48a903118d3a1f2dbcc07277b6233a2a242f3eb5aadb5f1e69ba92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_redis/cleanup_queue.py: FileTooLong \u2014 1241 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 741 over it, 2.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/cleanup_queue.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"948fb29738c951ced312e7f9de9558fecfde9a032954745e457c7c01aaa8f60c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/tasks.py: FileTooLong \u2014 1212 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 712 over it, 2.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/tasks.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e265dc00e875a0c34c3ec95ee9d2614e55827386b771433763013d6f359b5d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blocks/core.py: FileTooLong \u2014 1195 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 695 over it, 2.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/core.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0f3c5c4655d2985ac552a9d1890756c31cbb058658e992813f315d3819cb81"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.FlowRunsCard: FunctionTooLong \u2014 FlowRunsCard runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-card/index.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"591a5315b7063b3ec88be726ddc5d7805c16a98b2998226c2f31fe380bbabb4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: orchestration/__init__.py: FileTooLong \u2014 1194 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 694 over it, 2.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ce3c303c50b2e93865a5c833ea290dfac17de207348e8f45ff52bb432c1809"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/work_pool.py: FileTooLong \u2014 1164 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 664 over it, 2.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_pool.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24594199a2ad2b0b493aeef24d39a80b34646c0d99cb7296b0ad4400945a8b14"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: interval-schedule-form.IntervalScheduleForm: FunctionTooLong \u2014 IntervalScheduleForm runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"689eef4d8e8208fb5d3ce79e59de74f0041bde83b73ba56b9683a1aae4507f2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/objects.py: FileTooLong \u2014 1113 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 613 over it, 2.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/objects.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c7d94b34af5c84496e6d48417f8aff339daced14ae93fbb2a0e7a5eab8b547"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: nodeFlowRun.flowRunContainerFactory: FunctionTooLong \u2014 flowRunContainerFactory runs 219 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 119 over it, 2.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":"ui-v2/src/graphs/factories/nodeFlowRun.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"698b566196792f2bb64a2726d4ff10d472a41096957b617f6cd0a85d003829db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_github/viewer.py: FileTooLong \u2014 1083 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 583 over it, 2.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/viewer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"129f7b255b6eea3adf138804019e337cc50d3adee4b8bb4c81acc4314f9cdd4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/orm_models.py: FileTooLong \u2014 1051 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 551 over it, 2.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/orm_models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4eca047c55a64d92e42cae319d3f9448f3102e0c1f358436db81ebf644ac60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_github/organization.py: FileTooLong \u2014 1046 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 546 over it, 2.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9091d0f41eccddf62804c8afc18d8d7be50f261c2b354694003f3dbdd486bd1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: create-flow-run-form.CreateFlowRunForm: FunctionTooLong \u2014 CreateFlowRunForm runs 199 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\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":"ui-v2/src/components/deployments/create-flow-run-form/create-flow-run-form.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f0dcd2bb119553f8bfed02331f5992455c29184e5fb3248f96c0c7540a01fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_gcp/cloud_storage.py: FileTooLong \u2014 992 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 492 over it, 1.98\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b792b26eec0f88fd97590ca261e341f2e433cff253c7109b6413cd96dc2caf18"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/runner.py: FileTooLong \u2014 968 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 468 over it, 1.94\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/runner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d448bb8482613aaf43ea390262248b1cede3c71cc7dd554565e1988a7f6207"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: deployment-form.DeploymentForm: FunctionTooLong \u2014 DeploymentForm 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":"ui-v2/src/components/deployments/deployment-form/deployment-form.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bdf4b5c1784eae98203b987ebcfa30dd27f8d815826fc7488b623bc44a62e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/deployments.py: FileTooLong \u2014 950 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 450 over it, 1.90\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7366feaeb14f77745fa233c416fdc94326528221c6bf2485259629046fc058d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: events/triggers.py: FileTooLong \u2014 944 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 444 over it, 1.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/triggers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"069622b348be42692dff9df620d3fb217b674acb3cda9e15f69eb217bc00c461"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_aws/s3.py: FileTooLong \u2014 943 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 443 over it, 1.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f0d52bca8361a1bfb3644a2573c2b4eb3a21dd4e3406e8b51558b7504099ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app-sidebar.AppSidebar: FunctionTooLong \u2014 AppSidebar runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/app-sidebar.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c75d4c1a03d0b3fb9f26ae082e2ec55ffbe1737c5f7c3d3968bbc404056b325"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/deployments.py: FileTooLong \u2014 919 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 419 over it, 1.84\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/deployments.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57d8be64522bad8a36cb1bbb4634fff84e532a142cb6d49304a57cba7963d93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/workers.py: FileTooLong \u2014 911 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 411 over it, 1.82\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/workers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d72532da404de657fa8db2eade18285cb9a6d7786f25464d56686977614481"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.FlowDetail: FunctionTooLong \u2014 FlowDetail runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\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":"ui-v2/src/components/flows/detail/index.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c91d56022dd8328aaa6c6481639edf70275220f48b3f4b8ef9050a05ac0917f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkerCleanupQueue: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/cleanup_queue.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6451225a29970003b586023258157828d8bf74c9ecfa6a843a40cbeaa54167"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseWorker: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc346d0355b21f84e3df14ab1533e4aef697f1617f2c87cd2260862ca48390e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-deployments-tab.FlowDeploymentsTab: FunctionTooLong \u2014 FlowDeploymentsTab runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/flow-deployments-tab.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef85b730c1cce230e890c9a3951552cb6bc105cfc9c6424a57eb6eacaa2a8007"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rich-date-range-selector.RangeView: FunctionTooLong \u2014 RangeView runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6282f3af4f1097b85494afee1e0e81f2eaf6cdc85c3f36ec588c71b076e8f25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_kubernetes/observer.py: FileTooLong \u2014 891 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 391 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99601a7560b9d6ebbac24f3cb04b5db8ec7332a243c62cc832053073d40915c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _deployments/client.py: FileTooLong \u2014 891 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 391 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dc3ce011851e78e7ccb402dad2abf2d8ddab9466892915e3422074ed35b6a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/task_runners.py: FileTooLong \u2014 888 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 388 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9650bf7862a3dd697805757e2d86ec176e37bad01c20c317115d04530d71f67"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.FlowRunDetailsPage: FunctionTooLong \u2014 FlowRunDetailsPage runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"ui-v2/src/components/flow-runs/flow-run-details-page/index.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0443f3c02cefa33b68b36542af0ec21c621a219017ddf1f245315b0486cd858"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/server.py: FileTooLong \u2014 882 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 382 over it, 1.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42530a997173e6439410702c75118bc90216e15c344db35c4502a340f81b3c7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workers/cloud_run_v2.py: FileTooLong \u2014 878 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 378 over it, 1.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7245696ae38f2543da0afb0bf42e9838da75ed418a479cea97ff29387dc9b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.FlowRunTooltip: FunctionTooLong \u2014 FlowRunTooltip runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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":"ui-v2/src/components/ui/flow-run-activity-bar-graph/index.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa08c37ca45452d1b2e87f868fb1653deba202bb7547e2cebae0d83b087ad06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/core.py: FileTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 363 over it, 1.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/core.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e6b249dbadc8c1aeedd13b11000bba5ba4efd34128bc77c386cec3b9a23999"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rich-date-range-selector.RichDateRangeSelector: FunctionTooLong \u2014 RichDateRangeSelector runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1f23f30ffd4e6152f7ecb3bf7d0d7f9c414243a8010a7412fe238a0e25e3f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_kubernetes/worker.py: FileTooLong \u2014 827 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 327 over it, 1.65\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55772b14824e05f98b13b7346441543261c965eeb0d84a90e39a2937514f1828"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-graph.FlowRunGraph: FunctionTooLong \u2014 FlowRunGraph runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b407aad7f95f2941c4460066f9f04d291421906083df6f3de45b44f004cb1d6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/results.py: FileTooLong \u2014 816 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 316 over it, 1.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/results.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6ad829701af725ee1fd2ad0d4d0ca307b83714a76df85282502590aab89c75"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: event-resource-combobox.EventResourceCombobox: FunctionTooLong \u2014 EventResourceCombobox runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\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":"ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6e68e2879e774a42bf74910b1b54fa7900b69653d697728b8b617d74b2a771"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: work-pool-create-wizard.WorkPoolCreateWizard: FunctionTooLong \u2014 WorkPoolCreateWizard runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\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":"ui-v2/src/components/work-pools/create/work-pool-create-wizard.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"749ee593f07b57f9354d34d0e117fe1bab86972cca73be7b890e31623851ff25"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_docker/worker.py: FileTooLong \u2014 810 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 310 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ad3a8d7f7eb503c4af32f8950cf0ef50f075e48ea64414e2ca238c4caa02c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: use-runs-filters.useRunsFilters: FunctionTooLong \u2014 useRunsFilters runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/hooks/use-runs-filters.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8081f0b982a5194bd2ceb10dea831eabe22166eceeadb220ca89c578197b5e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: observers/ecs.py: FileTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 308 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4408c6bebef6be9fa480f3119edb3598fb6927e4afa10fb5e250a4ac49a399"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: routes/dashboard.tsx: FileTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 308 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3a8ee3cc6d896638f49b7c5551709b94764f3435af4552594b0a09078d1892"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-task-runs.FlowRunTaskRuns: FunctionTooLong \u2014 FlowRunTaskRuns 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":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-task-runs.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9154fced35c460307ac7ac101db7c8fd6d91e3e54957c7be1b903c8e17872d30"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: script.loadAmplitude: FunctionTooLong \u2014 loadAmplitude runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\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":"docs/script.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ca0d0edee36aa39f9b0c0e02b701fac0f1d10695b1b79e130e7a3cf2da3d38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/flow_runs.py: FileTooLong \u2014 799 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 299 over it, 1.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/flow_runs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0162d65dafc75e8949f2cfb7738d1f47a9b976e1c32502c7c2d68d2da034ac0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/workers.py: FileTooLong \u2014 788 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 288 over it, 1.58\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/workers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a253f51041e9568a47eaee7186bce53b54589593a6b7eee9cbe2b0bde3c177f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: work-pool-queue-runs-tab.WorkPoolQueueRunsTab: FunctionTooLong \u2014 WorkPoolQueueRunsTab runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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":"ui-v2/src/components/work-pools/work-pool-queue-runs-tab/work-pool-queue-runs-tab.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"061d5f2217f6a56a9cfac4f39c62f9e1e60f8f54acfd08843024ac8fe0d8daab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: provisioners/ecs.py: FileTooLong \u2014 784 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 284 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/infrastructure/provisioners/ecs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f036a4c8ee75d248a05d443c9221c8fc360af0ee4e846c911c497078b6e411"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: border.borderFactory: FunctionTooLong \u2014 borderFactory runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\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":"ui-v2/src/graphs/factories/border.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f0b9779336b96047064c21bcb38047b0af775de3f6db8b656f37c3b62e7e49"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: events-page.EventsPage: FunctionTooLong \u2014 EventsPage 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":"ui-v2/src/components/events/events-page/events-page.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b45a1dc116299f4dbb37acc4e9fb713a34d2c3b5cc5a482957a7d16bbbf1da7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-action.FlowRunDialogBody: FunctionTooLong \u2014 FlowRunDialogBody 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":"ui-v2/src/components/flows/flow-run-action/flow-run-action.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d185ad2ffa05a9b1006e1814f77213db8e7ab2c9ab2987fffcf06a6c5d7e29c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cron-schedule-form.CronScheduleForm: FunctionTooLong \u2014 CronScheduleForm 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":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d422ee0e38c840c834dda1d8f23585e4c3666d7125750aa022e877c5e8559748"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: node.nodeContainerFactory: FunctionTooLong \u2014 nodeContainerFactory 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":"ui-v2/src/graphs/factories/node.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"47421206a6ed6c4b407757dc0bdacc435ffd76a1953230fe8b130ac875a05f45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py: FileTooLong \u2014 745 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 245 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6617bfe76574705a0f0f0ec1f44bf1dd57472be1247ff89e908d495bc2a9fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runner/storage.py: FileTooLong \u2014 737 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 237 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/storage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb77ba9506f7e83e00639a509cb36e5afedf2ff1014e629ce4c7bae31e8cfe24"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: send-notification-fields.SendNotificationFields: FunctionTooLong \u2014 SendNotificationFields runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/send-notification-fields.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3132def00cedfe6c16f30bd594f6ede5d4f4f7c20af97be4eafaf22e4eeef2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/deployment.py: FileTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 233 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deployment.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dbf6b1945ca8b19b7d91e54a6034e3c56714a7b64c0f8dc8bc39d4a6ac8144"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: task-run-details.TaskRunDetails: FunctionTooLong \u2014 TaskRunDetails runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef85872b137b508d6621dddbda9c38b27f5dcd805afcd67b798d5677e61c86b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: work-pool-flow-runs-tab.WorkPoolFlowRunsTab: FunctionTooLong \u2014 WorkPoolFlowRunsTab runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-flow-runs-tab/work-pool-flow-runs-tab.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"56abf5d736911ed79b1b09baf5693a0ac8967c37bf933ec1cd4cc8ceace388de"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cumulative-task-runs-card.CumulativeTaskRunsCard: FunctionTooLong \u2014 CumulativeTaskRunsCard runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/flow-stats-summary/cumulative-task-runs-card.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb325e37f627fe05d9bfeab317f442d162ac07d1059f5d8015ee94ec9d5e117c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cloud/jobs.py: FileTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 216 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e063769950f40129e9f43b5c1ade93a251a6a4382764fb43f8cb9871e2cbc93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/actions.py: FileTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 216 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/actions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd22167ddc3b8fae220c924484cee0c8f9f74d870b7761587739177690e9434"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/query_components.py: FileTooLong \u2014 715 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 215 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/query_components.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3f9d518249fc2b66c9a95558cba96ead4104e2a7552b5c2266f116a5a0cd31"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: custom-trigger-fields.CustomTriggerFields: FunctionTooLong \u2014 CustomTriggerFields runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"ui-v2/src/components/automations/automations-wizard/trigger-step/custom-trigger-fields.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff0a5b4ebda61f2aca083523a57b05ebda754dd1ed141cf534faecd7e2a6d91"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: schema-form-input.SchemaFormInput: FunctionTooLong \u2014 SchemaFormInput runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"ui-v2/src/components/schemas/schema-form-input.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52efdf71303f6c31b7fa08ac1d02d5b7b1375aefabc0e3d8bc635376bdd1ea3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 214 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6c87dee7ce2319263b20e9e4cb44aa95a4db2fc367300330c07f2a7eb1704f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: date-range-select/rich-date-range-selector.tsx: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 214 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10afcb70db4fcb9920bb143bfced9b896879cea41f8deb8e12f7b9b153c49b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.AutomationDeploymentCombobox: FunctionTooLong \u2014 AutomationDeploymentCombobox 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":"ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"26706be9d85b5d91db68880d2b8b0d891183ffb1b2d571d4e7c8d4a5dad0fcd4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workers/spcs.py: FileTooLong \u2014 701 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 201 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-snowflake/prefect_snowflake/experimental/workers/spcs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf1a187716773c97fea8d4bfab84ab943ea7d3986d012a8c9148be200ce1bed"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: calendar.Calendar: FunctionTooLong \u2014 Calendar 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":"ui-v2/src/components/ui/calendar.tsx"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d847e78ab8a7114fb7c94d76b786bfa123551cc0a352c0a55edbad1821cc9a6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tag-badge-group.TagBadgeGroup: FunctionTooLong \u2014 TagBadgeGroup 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":"ui-v2/src/components/ui/tag-badge-group.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eec6173742ca48b7c7e8d5a554c3a42e8d0123657a2dbba86722e433b78c548"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: work-pools-card.WorkPoolFlowRunCompleteness: FunctionTooLong \u2014 WorkPoolFlowRunCompleteness runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"e733919c94c63fb06d2bf68e4d7f482c424de29ee67f291b7848ef4267531e1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data-table.FlowsTable: FunctionTooLong \u2014 FlowsTable runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/data-table.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4affa313847b44e4dee943749abe7505633b190ca89dcf0bbe820e0b66e5ac52"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: nodeTaskRun.taskRunContainerFactory: FunctionTooLong \u2014 taskRunContainerFactory runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"ui-v2/src/graphs/factories/nodeTaskRun.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5065d833ff4b897c4d9b9769fbf79dc4cf3dd0d7a4efd7cd2aa9f7bef82a1db9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.DeploymentsDataTable: FunctionTooLong \u2014 DeploymentsDataTable runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/data-table/index.tsx"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1e46a87a5cdcacb2e43c93e511f69b6501a5d3be7eaf7c07b92b06b3a79366"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utilities/worker_channel.py: FileTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 179 over it, 1.36\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/worker_channel.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"358c3559d39935c0b696e2758bddfe3e25cdb2aad90b29a5349f91ef981bc16f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blocks/notifications.py: FileTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 167 over it, 1.33\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/notifications.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9717b0a73da2461a3a4a46ba352b2fddf22f2279a2f8a468baef8d672ed5161"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-subflows.FlowRunSubflows: FunctionTooLong \u2014 FlowRunSubflows 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":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-subflows.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c898f166a4a126784448a9077c4e40135412e53ef632e8f84c109130ff44ab0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: nodeFlowRunState.nodeFlowRunStateFactory: FunctionTooLong \u2014 nodeFlowRunStateFactory 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":"ui-v2/src/graphs/factories/nodeFlowRunState.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e86170c1d285a939afb80e22b6cbdb8949bbcec7db04af78249c38560d121b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: events/clients.py: FileTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 157 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/clients.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c321c147a903163c1ed87b378d716dae858e0b6bd5cf651d6c965ad35bff5e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ui-version-switch-dialog.UiVersionSwitchDialog: FunctionTooLong \u2014 UiVersionSwitchDialog runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"ui-v2/src/components/ui-version-switch/ui-version-switch-dialog.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f457206d641f580170e1852a4308d5e4bd57389bdaf6d930a994d5b48ec4370"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/flow_run.py: FileTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 149 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/flow_run.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8959cf3009cd6bbccf17928952c2cf8c890384fd8f271d768b2ef4dd72305770"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/work_queue.py: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 147 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_queue.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3531a046e78517668d0022eb8aa1051d9eb49c6924364014d8633d85c8cf33c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: schema-form-property.SchemaFormProperty: FunctionTooLong \u2014 SchemaFormProperty runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-property.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9866a18c4e40ecb4a4fdd22a06fe743df8a590af3dced89549e87df7c670dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/filters.py: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 143 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/filters.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cba70d2da5afba9ba7c5f8ea131a7c8e60a17683db2601a2b436fa8f80b069c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tags-select.TagsSelect: FunctionTooLong \u2014 TagsSelect 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":"ui-v2/src/components/ui/tags-select/tags-select.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5696df15858f861d69d9a846763bce6d52be9a097d658f9046adb0ecbc65aa1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: use-deployment-form.useDeploymentForm: FunctionTooLong \u2014 useDeploymentForm 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":"ui-v2/src/components/deployments/deployment-form/use-deployment-form.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fac24ec6ca3352ee6d1d54b444986731fd3f931aa4c0d13dad45d0a22a0822"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cleanup_queue/memory.py: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 132 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/worker_communication/cleanup_queue/memory.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b71c841414d4b6859d8142f1f9a0a310568fa4c577d18389785464b8b0b0d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workers/container_instance.py: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 131 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d0842c43c8cbf9676f3f5fd8acca97d03cdf439aa4ac43a9f610d12c52dcb3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: call-webhook-fields.CallWebhookFields: FunctionTooLong \u2014 CallWebhookFields 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":"ui-v2/src/components/automations/automations-wizard/actions-step/call-webhook-fields.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"235b66b39ab0bcff55ffee3ed83b5e308c4a81e85c0459f20e4e7d603b86c465"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: base-job-template-form-section.BaseJobTemplateFormSection: FunctionTooLong \u2014 BaseJobTemplateFormSection 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":"ui-v2/src/components/work-pools/create/infrastructure-configuration-step/base-job-template-form-section.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"864aafeafbfcf123db84dac6b174491c37c7bc3bfa986675fe66d20970419086"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/actions.py: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 121 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/actions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c532c1f01f5bbd28f8f30935f8d438f7e47bda2a3baa7df9ab3d5860cb6fe25"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flow-run-state-trigger-fields.FlowRunStateTriggerFields: FunctionTooLong \u2014 FlowRunStateTriggerFields 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":"ui-v2/src/components/automations/automations-wizard/trigger-step/flow-run-state-trigger-fields.tsx"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cd9804818834abd1ddfff52e6e8625e36de4ce54827279e8491cda716ec255"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runs/index.tsx: FileTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 119 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"061caf274a2e811317e021133b0289721a1dd38b07995dd0b939c2af4a56c2ba"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: S3Bucket: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"99613d0f33df6ca553aa5b49d101b0ccaa7628b0f7ec73a08aa4d4ebed365435"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.Header: FunctionTooLong \u2014 Header 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":"ui-v2/src/components/task-runs/task-run-details-page/index.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"32181ee2023af57ed3ae407d202ad1ac1d0a73f01b4f9ad36efdaefb7c18dba7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_gcp/bigquery.py: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 112 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe201e32596b2d034e03bf68aae1c51b9dfbb5926512365a4e2293e87170f6b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: state-filter.StateFilter: FunctionTooLong \u2014 StateFilter runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/state-filter.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cfce4b2f9b4922590685dbcf1ac75be10ad4522fad6e917043e5f5f6da02d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: worker/service_stack.py: FileTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 109 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/infra/worker/service_stack.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a945df1dbf0e982d68c9ff3614a739a4717a1416af6b4db97f7968a85236fd6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: engine/__init__.py: FileTooLong \u2014 605 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 105 over it, 1.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c1762418a79c348c51cf741fc91b1a917d3a1738f19ece3acbb0008dac7d98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sidebar/sidebar.tsx: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 100 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/sidebar/sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55cdb3a08f2545f786af590e324dfee424a16dd1a19b615a91d6469430e249e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: schema-form-input-array-list.SchemaFormInputArrayList: FunctionTooLong \u2014 SchemaFormInputArrayList runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input-array-list.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb99df5b0882347468127d61f5c78afafed6dfc0c6bec7119dddafdf7683ac3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: variable-dialog.VariableDialog: FunctionTooLong \u2014 VariableDialog runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/variables/variable-dialog/variable-dialog.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5407d914578e3c300f5cd9e37e287b886c56669126fac1839e5468222132f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workers/cloud_run.py: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dc724e476bfb1bcf4cbedf4bbd7d06d019c127b53701550691839aacdc2faa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect_redis/messaging.py: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 88 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/messaging.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5740bfe33d33c1a66dfdde9897fb6e6c3b8b8f8f3a96e9d983d43a7b03eade3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _flow_runs/client.py: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 88 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5340701c46b39f57e41662b9e8f712eea62b196aad97fc301353dcfc47c1c75"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Task: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/tasks.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"525a9e8fb0c95c08f67863906fe419c6ce457456cf994d82df6af507e7436e11"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.TaskRunsCard: FunctionTooLong \u2014 TaskRunsCard runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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":"ui-v2/src/components/dashboard/task-runs-card/index.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"41066ea5e7ff1157827d42429ea3faeb961dffc13fb884bc43c02c752eff1eb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: use-chart-selection.useChartSelection: FunctionTooLong \u2014 useChartSelection runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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":"ui-v2/src/components/events/events-line-chart/use-chart-selection.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f645e6773bb28c13bc21442c35ece2d1ecba0847a70392a15cad9b3c33b414"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/server.py: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 75 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2885b71379bdfbb15e7f419e362686fc99bdfa7fb9aa92e34666b4559221ad74"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: deployment-metadata.DeploymentMetadata: FunctionTooLong \u2014 DeploymentMetadata runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-metadata.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fd8ffc1edc22f4533506b8add3b027f23144db15f9238a70f15d6211d7ed6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data-table.DataTable: FunctionTooLong \u2014 DataTable 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":"ui-v2/src/components/ui/data-table.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c17a01097bb0ce9269cf2a8549bb0ac1ccfa88a814e9085aaa210ea5f06ecb4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/schedules.py: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 69 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/schedules.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9a7fa11840d3c0a04c56d4405b3be935df8068bb4a15dfd74c1eb8d69bd31d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/context.py: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/context.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ba09e127069494ebdf26f7dfd33a208cf04089bb39e7d43eb39daa278b0f9b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrefectDbtRunner: 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":"src/integrations/prefect-dbt/prefect_dbt/core/runner.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1313e44718ba5c9ebf923301584948f04587c734524635b87ff9b7470c2a1c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: input/run_input.py: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/input/run_input.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51302b7f4001b48ae2ed7ba6103a53762f0604a8aaaa3409257f4cb6eca0ad2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: activity-chart.FlowRunsBarChart: FunctionTooLong \u2014 FlowRunsBarChart 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":"ui-v2/src/components/flow-runs/activity-chart/activity-chart.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde5a7557e3ccf8f1ba02671c6d976488bcd34d2edf852a7201613d13a5a8399"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: date-time-picker.DateTimePicker: FunctionTooLong \u2014 DateTimePicker 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":"ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99955672db46d9479a725313fb3ec0e27cd7941d03985003938f94df97b92e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/task_run_recorder.py: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 55 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/task_run_recorder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d8d23d281b155a432c65d676cdb62046b06b72d3df6e4152972762dc8f9f2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: automation-wizard.AutomationWizard: FunctionTooLong \u2014 AutomationWizard runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/automation-wizard.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce9a2251c68dcee6f84eb1e9230648e2b001cfd55654043db26675192d9c9ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: state-multi-select.StateMultiSelect: FunctionTooLong \u2014 StateMultiSelect runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/state-multi-select.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfdad4fafe01132b29007bd96ae85b30c6ef6abb701feddac952608c60246f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: block-document-create-page.BlockDocumentCreatePage: FunctionTooLong \u2014 BlockDocumentCreatePage runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-create-page/block-document-create-page.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb3aeb00d3a864e68fb43c91d7cce0ca38bb409f68b498490277cccffe0660e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GcsBucket: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"7993a4fba23150f6681138a70d8b10ee2c237826135550a94523113d9845bdbb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: flowRunState.flowRunStateFactory: FunctionTooLong \u2014 flowRunStateFactory runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunState.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7acd3ab1ce5eda1ff5a4135afd028de549c58256cfd074bdc5c089b2822698e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/automations.py: FileTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 48 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/schemas/automations.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d362055af6585ce687686426058689cee3822e6b82f9328d2a31c7d6a33f00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/states.py: FileTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 45 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/states.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3859e7be207a957a312ecc3482bfd72377e03e81cb84ebc375470a807c944661"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _concurrency_limits/client.py: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 37 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1729cd98e5e9f4303eab392a6d5a378d6bf3f82b616441c7c0f8dc24ca189246"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/commands.py: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 36 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cli/commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0dffc39527fe29b5cbafba4cfb0698bfabc1b05b89b49f9c7e86e202686b8fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: quick-run-parameters-dialog.QuickRunParametersDialog: FunctionTooLong \u2014 QuickRunParametersDialog runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"ui-v2/src/components/deployments/quick-run-parameters-dialog/quick-run-parameters-dialog.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27f7ebf8f0bf892dc966138afe60eed974e068fd32e3214c4ee3a6f7ad4fcb6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrefectClient: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"14111df1e91ad1007589e6095d4973f9e917fd3ed328fe2aeead43a94a5ac5c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workers/_cleanup.py: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 33 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/_cleanup.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4a4f4c4c43fbdc4a0449bc1f145460ccf6d91be2c1b891906e78bd978c1448"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/futures.py: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 32 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/futures.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7107c4ba233ed7d58b20ca158dba3e58441c85611be95fbcb2eea6698a127a98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schemas/responses.py: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 32 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/responses.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e12d706feab80d01212c766fd108226f8e8877d08442f790d1615424f2c4b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/filesystems.py: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 31 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/filesystems.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48de22a9f442b2f5963063d46ef57db97297b29c8bfd58b12dacb57595030675"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: work-pool-queue-create-dialog.WorkPoolQueueCreateOrEditDialog: FunctionTooLong \u2014 WorkPoolQueueCreateOrEditDialog 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":"ui-v2/src/components/work-pools/work-pool-queue-create-dialog/work-pool-queue-create-dialog.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c34a9937183a796c60ca5d11c8058140ae9ec76359996e0bdb3fafbd65df91d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/work_queues.py: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 26 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/work_queues.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b701e3d25375114a10e4098d986e75685ccd4dd7e5eb8740c411cbd82ad974c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cancel-flow-run-dialog.CancelFlowRunDialog: FunctionTooLong \u2014 CancelFlowRunDialog runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-actions/cancel-flow-run-dialog.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"73011f2d343b45b620b7d1dcba939184ad8f7532e50a1e4018a7a42fbf18b9c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: work-pool-edit-form.WorkPoolEditForm: FunctionTooLong \u2014 WorkPoolEditForm runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/edit/work-pool-edit-form.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7fd4b42b913aeca44d0d45538bc0a97bb4070b4643271b28b962a2e377e9da"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: artifactNode.artifactNodeFactory: FunctionTooLong \u2014 artifactNodeFactory runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/artifactNode.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31b645607a6e2d14d99743734e5b4f79e3370c932e258d27043e298a41f4069"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/block_documents.py: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/block_documents.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a15ec6756141e6cc210c9644bca926729a10e1ef6bb8a9e09d792fb1b9c032"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bundles/__init__.py: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 18 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e458063c673b5a7e91a5eac0b9441648ffb44d4ec58c2688d461b69d1193c541"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: events/filters.py: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 17 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/filters.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd2a7c7c801eb370ad47be14f69d8c7982963760a12ada32c44e24bdd3fe361"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/block_schemas.py: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 10 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/block_schemas.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c05bc5589b26a72ee1fdec1423fa3e4d28b3e34e29d21b4c1e1c27b94e2d6f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: work-pool-queue-form.WorkPoolQueueForm: FunctionTooLong \u2014 WorkPoolQueueForm runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"ui-v2/src/components/work-pools/work-pool-queue-form/work-pool-queue-form.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b7d113964bb1a9561c344e50c35e0aff1f3f4acf4d3f6eec8fd8765edb3c8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prefect/transactions.py: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cf70441b766449224a8df7da753351d141e84e52d637ea8ed283a7a7ebdc69"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: work-pools-card/work-pools-card.tsx: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33241fbdf50cf881746bea231951e78ff9b34895e15d2e38db82712fe3653e6a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: global-concurrency-limits-create-or-edit-dialog.GlobalConcurrencyLimitsCreateOrEditDialog: FunctionTooLong \u2014 GlobalConcurrencyLimitsCreateOrEditDialog runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/global-concurrency-limits-create-or-edit-dialog.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9583663b80c95afae42bb15744cf3ede97293a6187651c98e476ce8ba6711c2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/events.py: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/events.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7378ec485c902187c517d3d29a774c8f224a0b2101e7bb65e42d9371545f60b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 24 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:38-812 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:23-230 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:23-240 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:244-462 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:36-91 | src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:22-98 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:38-854 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:23-259 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:27-277 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:281-528 | src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py:22-106 \u2014 These 11 members are variants of one another: a block of 24 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b31e4e23bc943183a3cdbbf065faf4ac6dcb2091b78d9b69230c944c58894f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 45 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:22-101 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:23-230 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:23-240 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:244-462 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:22-115 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:23-259 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:27-277 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:281-528 \u2014 These 8 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 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ada6e089e1fcc131546e6c237ced52b55e07f580c06d0cd4112a2f0b8c846e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 58 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:23-230 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:23-240 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:244-462 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:23-259 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:27-277 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:281-528 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000042_f92143d30c24_implement_artifact_table.py:22-157 \u2014 These 7 members are variants of one another: a block of 58 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"637aeda9d88d9a96b25039e336107bdb4cdf5a6cf9eddeda1b0eac45c5b27554"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 55 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:38-812 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:23-120 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:36-178 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:129-221 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:23-134 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:36-192 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:128-234 \u2014 These 7 members are variants of one another: a block of 55 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"510391817dae6f77d87bfb8ee82252d7c721fe964fd599182292f9cadfa46ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 33 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:23-120 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:22-157 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:129-221 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:23-134 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:22-153 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:22-157 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:128-234 \u2014 These 7 members are variants of one another: a block of 33 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"86329afb4a63f24e6beaac1702c373eb6c650d0a4d883513f66fa549863193b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 27 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py:23-57 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:22-101 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:23-230 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:23-240 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:244-462 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_15_211737_28ae48128c75_add_configurations.py:23-64 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:22-115 \u2014 These 7 members are variants of one another: a block of 27 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cc8c22f124ca81ffcb07e75b23025de96db1f007759cb7d1bba94f76336f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 42 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:38-812 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:23-120 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:36-178 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:38-854 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:23-134 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:36-192 \u2014 These 6 members are variants of one another: a block of 42 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e8ad6d197a48e7f62e31158fbde20205d130a2fb9e7bd9dba3e532ce2f0868"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 35 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:23-120 | src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:22-98 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:28-276 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:22-157 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:23-134 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:22-157 \u2014 These 6 members are variants of one another: a block of 35 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9440bdd6d4c0eb025dd8f29fa0efc61fc736ee91c19e426ef7febbd7a6e6279"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 34 shared lines): src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:23-259 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:27-277 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:281-528 | src/prefect/server/database/_migrations/versions/sqlite/2023_04_05_134301_3d46e23593d6_add_variables.py:22-67 | src/prefect/server/database/_migrations/versions/sqlite/2023_08_02_113813_5b0bd3b41a23_create_concurrency_limit_v2_table.py:23-63 \u2014 These 5 members are variants of one another: a block of 34 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 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":"src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fbc201cab32f4183ed59c61114f622db7198de20a85a912985a88c282ff000"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 21 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:38-812 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py:23-57 | src/prefect/server/database/_migrations/versions/postgresql/2023_04_05_134520_310dda75f561_add_variables.py:22-53 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:38-854 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_15_211737_28ae48128c75_add_configurations.py:23-64 \u2014 These 5 members are variants of one another: a block of 21 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 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"090edc56ca2e8fc950c2f0a86d76728e3640070666fa998964c7bcaf6451d2d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 67 shared lines): src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:38-854 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:23-134 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:36-192 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:128-234 \u2014 These 4 members are variants of one another: a block of 67 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":"src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"28309a31d6ee17c9a51152aa732c02149d76a805e6286d5c60e154155163ddb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 45 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:38-812 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:22-101 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:38-854 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:22-115 \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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ca99a5425a6397db508c28d22f47fb02c24566afccecd13c9eaeaa1224d3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 39 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:28-276 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:23-157 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:27-282 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:22-153 \u2014 These 4 members are variants of one another: a block of 39 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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b4ab0fafdbeaa7bac4a1fbeb93d9c74e1d3194761241c5941658755a9436af"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 33 shared lines): src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py:24-174 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:23-259 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:27-277 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:281-528 \u2014 These 4 members are variants of one another: a block of 33 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":"src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f003601015a849c5f94da71caa83cd23cf02a309073dd4c89ba53ea4a4aae9a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 26 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:28-276 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py:25-86 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:27-282 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_09_125712_cc510aec4689_automation_event_follower.py:24-85 \u2014 These 4 members are variants of one another: a block of 26 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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de9d31f1f170d1b5d03cb462612a7aad64491e5831c2dac7f9fca0af2f5c13b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 23 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:38-812 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py:23-56 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:38-854 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_04_093838_619bea85701a_block_data.py:23-63 \u2014 These 4 members are variants of one another: a block of 23 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a000d7cacb6c96e2b1019a12606135bb61f08d65b9e35c3be838842ef42ac302"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 23 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py:22-54 | src/prefect/server/database/_migrations/versions/postgresql/2026_10_19_000000_e7f54680bce3_add_automation_held_event.py:24-87 | src/prefect/server/database/_migrations/versions/sqlite/2024_03_13_111316_bacc60edce16_create_csrf_token_toble.py:22-57 | src/prefect/server/database/_migrations/versions/sqlite/2026_10_19_000000_8f5eda7c1dd7_add_automation_held_event.py:24-87 \u2014 These 4 members are variants of one another: a block of 23 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":"src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1811965e5c8a3f8ed64144d92ab3d1119369f89ee97479b95b75a46b7ceffb5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 22 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:28-276 | src/prefect/server/database/_migrations/versions/postgresql/2026_10_19_000000_e7f54680bce3_add_automation_held_event.py:24-87 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:27-282 | src/prefect/server/database/_migrations/versions/sqlite/2026_10_19_000000_8f5eda7c1dd7_add_automation_held_event.py:24-87 \u2014 These 4 members are variants of one another: a block of 22 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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"746bf8878a56f8267f83a81309f7444a579259f32c3b1deee3d61c3bd465f51f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 15 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py:23-70 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_10_145956_1c9390e2f9c6_replace_version_with_checksum_and_.py:24-151 | src/prefect/server/database/_migrations/versions/postgresql/2023_03_20_185238_d20618ce678e_add_artifact_collection_table.py:21-51 | src/prefect/server/database/_migrations/versions/postgresql/2023_12_07_095320_733ca1903976_create_flow_run_input_table.py:23-55 \u2014 These 4 members are variants of one another: a block of 15 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ad2008823e1a76556b82c976e0179a31cd4499e15cde92f68c4966734743da"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (225 shared lines): src/prefect/deployments/runner.py:1570-1798 | src/prefect/deployments/runner.py:1811-2039 \u2014 These two members are variants of one another: 225 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed799a9025860173a8ac57d9eea8732721aa8fb77b1676b6f3d3c881cbeb178"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (123 shared lines): src/prefect/_internal/states.py:183-316 | src/prefect/states.py:315-446 \u2014 These two members are variants of one another: 123 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/states.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbcbe37be1114ed380974a747ed368568fa520c5a0895d416924273e6b2ec90"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (117 shared lines): src/prefect/server/database/query_components.py:608-764 | src/prefect/server/database/query_components.py:911-1052 \u2014 These two members are variants of one another: 117 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/query_components.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf5c084088990d9532a3a508dfb2b2e8a05eea409bd0c59d4e596f50a365a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (104 shared lines): src/prefect/deployments/flow_runs.py:65-240 | src/prefect/deployments/flow_runs.py:258-443 \u2014 These two members are variants of one another: 104 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8e77b774e3b639f9e3dfaedc35b1c23838ba07cc98d95686150a94f1cced03"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (76 shared lines): src/prefect/flow_engine.py:1118-1217 | src/prefect/flow_engine.py:1853-1950 \u2014 These two members are variants of one another: 76 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"1307f6aade4790ca5b3cc49066b5db86286a1b13cf7ffb51d31039f4be29bbe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (39 shared lines): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:817-899 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:859-924 \u2014 These two members are variants of one another: 39 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"d460c066bd11c3e5381a2e7d4209b979dee2a0eb047fae740cbab8f747be5571"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (37 shared lines): src/prefect/cli/work_pool.py:1133-1205 | src/prefect/cli/work_queue.py:677-759 \u2014 These two members are variants of one another: 37 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_pool.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d41cbdaa0dc648614c21b1c0a8baffab069341fd474fed46059e36817a44bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): src/integrations/prefect-dbt/prefect_dbt/core/runner.py:749-978 | src/integrations/prefect-dbt/prefect_dbt/core/runner.py:986-1066 \u2014 These two members are one piece of code written twice and then edited apart: 59 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":"src/integrations/prefect-dbt/prefect_dbt/core/runner.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c524f00b844b0f323147311f511ceb4161a8c1aadad22cbd3f0c6adc1b098d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_214717_4ff2f2bf81f4_adds_block_type_slug.py:37-74 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_25_142515_f335f9633eec_adds_block_type_slug.py:37-80 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_214717_4ff2f2bf81f4_adds_block_type_slug.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b82c21e2bb8df46bd4797a363ee1845cc5492cb64cf1c8e0523a665ea622d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (64 members, 50\u002B identical tokens): src/integrations/prefect-github/prefect_github/organization.py:121-179 | src/integrations/prefect-github/prefect_github/organization.py:241-288 | src/integrations/prefect-github/prefect_github/organization.py:308-357 | src/integrations/prefect-github/prefect_github/organization.py:373-422 | src/integrations/prefect-github/prefect_github/organization.py:437-485 | src/integrations/prefect-github/prefect_github/organization.py:503-548 | src/integrations/prefect-github/prefect_github/organization.py:606-651 | src/integrations/prefect-github/prefect_github/organization.py:871-916 | src/integrations/prefect-github/prefect_github/organization.py:938-1001 | src/integrations/prefect-github/prefect_github/organization.py:1377-1425 | src/integrations/prefect-github/prefect_github/organization.py:1444-1495 | src/integrations/prefect-github/prefect_github/organization.py:1613-1663 | src/integrations/prefect-github/prefect_github/organization.py:1719-1772 | src/integrations/prefect-github/prefect_github/organization.py:1912-1963 | src/integrations/prefect-github/prefect_github/organization.py:1978-2027 | src/integrations/prefect-github/prefect_github/repository.py:308-363 | src/integrations/prefect-github/prefect_github/repository.py:430-494 | src/integrations/prefect-github/prefect_github/repository.py:613-669 | src/integrations/prefect-github/prefect_github/repository.py:686-737 | src/integrations/prefect-github/prefect_github/repository.py:908-962 | src/integrations/prefect-github/prefect_github/repository.py:984-1038 | src/integrations/prefect-github/prefect_github/repository.py:1520-1572 | src/integrations/prefect-github/prefect_github/repository.py:1589-1639 | src/integrations/prefect-github/prefect_github/repository.py:1765-1816 | src/integrations/prefect-github/prefect_github/repository.py:1836-1888 | src/integrations/prefect-github/prefect_github/repository.py:2266-2316 | src/integrations/prefect-github/prefect_github/repository.py:2336-2396 | src/integrations/prefect-github/prefect_github/repository.py:2457-2508 | src/integrations/prefect-github/prefect_github/repository.py:3220-3272 | src/integrations/prefect-github/prefect_github/repository_owner.py:127-190 | src/integrations/prefect-github/prefect_github/user.py:115-160 | src/integrations/prefect-github/prefect_github/user.py:177-228 | src/integrations/prefect-github/prefect_github/user.py:328-377 | src/integrations/prefect-github/prefect_github/user.py:393-442 | src/integrations/prefect-github/prefect_github/user.py:457-505 | src/integrations/prefect-github/prefect_github/user.py:526-585 | src/integrations/prefect-github/prefect_github/user.py:751-796 | src/integrations/prefect-github/prefect_github/user.py:1070-1115 | src/integrations/prefect-github/prefect_github/user.py:1137-1200 | src/integrations/prefect-github/prefect_github/user.py:1353-1408 | src/integrations/prefect-github/prefect_github/user.py:1798-1846 | src/integrations/prefect-github/prefect_github/user.py:1865-1916 | src/integrations/prefect-github/prefect_github/user.py:1968-2015 | src/integrations/prefect-github/prefect_github/user.py:2034-2087 | src/integrations/prefect-github/prefect_github/user.py:2281-2332 | src/integrations/prefect-github/prefect_github/user.py:2350-2409 | src/integrations/prefect-github/prefect_github/user.py:2424-2473 | src/integrations/prefect-github/prefect_github/viewer.py:102-142 | src/integrations/prefect-github/prefect_github/viewer.py:158-204 | src/integrations/prefect-github/prefect_github/viewer.py:291-335 | src/integrations/prefect-github/prefect_github/viewer.py:350-394 | src/integrations/prefect-github/prefect_github/viewer.py:408-451 | src/integrations/prefect-github/prefect_github/viewer.py:471-525 | src/integrations/prefect-github/prefect_github/viewer.py:672-712 | src/integrations/prefect-github/prefect_github/viewer.py:955-995 | src/integrations/prefect-github/prefect_github/viewer.py:1016-1074 | src/integrations/prefect-github/prefect_github/viewer.py:1208-1258 | src/integrations/prefect-github/prefect_github/viewer.py:1605-1648 | src/integrations/prefect-github/prefect_github/viewer.py:1666-1712 | src/integrations/prefect-github/prefect_github/viewer.py:1757-1799 | src/integrations/prefect-github/prefect_github/viewer.py:1817-1865 | src/integrations/prefect-github/prefect_github/viewer.py:2040-2086 | src/integrations/prefect-github/prefect_github/viewer.py:2103-2157 | src/integrations/prefect-github/prefect_github/viewer.py:2171-2215 \u2014 These 64 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 64 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 64 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7af2b74985f7a63b4553d1491ae229f3e57fd801de9a1e4f4be0c75cdb07e0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (27 members, 50\u002B identical tokens): src/integrations/prefect-github/prefect_github/organization.py:712-756 | src/integrations/prefect-github/prefect_github/organization.py:813-856 | src/integrations/prefect-github/prefect_github/organization.py:1053-1097 | src/integrations/prefect-github/prefect_github/organization.py:1168-1213 | src/integrations/prefect-github/prefect_github/organization.py:1549-1594 | src/integrations/prefect-github/prefect_github/organization.py:1786-1834 | src/integrations/prefect-github/prefect_github/organization.py:1851-1897 | src/integrations/prefect-github/prefect_github/repository.py:1054-1102 | src/integrations/prefect-github/prefect_github/repository.py:1179-1227 | src/integrations/prefect-github/prefect_github/repository.py:1343-1391 | src/integrations/prefect-github/prefect_github/repository.py:2734-2782 | src/integrations/prefect-github/prefect_github/repository.py:2886-2934 | src/integrations/prefect-github/prefect_github/repository.py:3288-3338 | src/integrations/prefect-github/prefect_github/user.py:857-901 | src/integrations/prefect-github/prefect_github/user.py:1012-1055 | src/integrations/prefect-github/prefect_github/user.py:1425-1468 | src/integrations/prefect-github/prefect_github/user.py:1482-1526 | src/integrations/prefect-github/prefect_github/user.py:1540-1584 | src/integrations/prefect-github/prefect_github/user.py:2101-2149 | src/integrations/prefect-github/prefect_github/user.py:2166-2212 | src/integrations/prefect-github/prefect_github/viewer.py:766-805 | src/integrations/prefect-github/prefect_github/viewer.py:903-941 | src/integrations/prefect-github/prefect_github/viewer.py:1274-1312 | src/integrations/prefect-github/prefect_github/viewer.py:1325-1364 | src/integrations/prefect-github/prefect_github/viewer.py:1377-1416 | src/integrations/prefect-github/prefect_github/viewer.py:1878-1921 | src/integrations/prefect-github/prefect_github/viewer.py:1937-1978 \u2014 These 27 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 27 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 27 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3641b5d787a576ccd909bfd241bc4d243818fa1a5a0d1de334bceef6d953eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): src/prefect/flows.py:1478-1647 | src/prefect/flows.py:1678-1799 | src/prefect/flows.py:2226-2392 | src/prefect/flows.py:2841-2877 | src/prefect/runner/runner.py:351-420 | src/prefect/runner/runner.py:449-499 | src/prefect/tasks.py:2029-2215 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"376b26501714209af612540ee2721b9a46a2afd8af7d0708aebae6dd88801827"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py:41-58 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:71-77 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py:23-35 | src/prefect/server/database/_migrations/versions/sqlite/2022_08_07_134138_575634b7acd4_add_work_queue_name_to_runs.py:41-58 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py:73-81 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py:22-37 \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":"src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f811f626c4e657c9e5a843bbc23554eabc1651f7c8d86beead0ad540a2209312"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:690-701 | src/prefect/client/orchestration/_deployments/client.py:562-602 | src/prefect/client/orchestration/_deployments/client.py:1276-1316 | src/prefect/client/orchestration/_flow_runs/client.py:140-184 | src/prefect/client/orchestration/_flow_runs/client.py:667-710 \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":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c4f5588bd1ced8e537bc9a32f56aa3b8f840d871e2ada03763b6a9438d0de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/prefect/server/models/artifacts.py:300-331 | src/prefect/server/models/artifacts.py:347-377 | src/prefect/server/models/deployments.py:587-625 | src/prefect/server/models/flow_runs.py:296-342 | src/prefect/server/models/flows.py:227-263 \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":"src/prefect/server/models/artifacts.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02c44d1ce26cf1deed440d96645b99bcd750e3f6d18cd7bc9b487f9e5e73a7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/integrations/prefect-aws/prefect_aws/s3.py:1021-1067 | src/integrations/prefect-aws/prefect_aws/s3.py:1076-1122 | src/integrations/prefect-azure/prefect_azure/blob_storage.py:645-685 | src/integrations/prefect-azure/prefect_azure/deployments/steps.py:80-157 \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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b15de968cb455f8aa9f3407358d3387821da7c5c6d57931c6dba9c421758cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/integrations/prefect-github/prefect_github/organization.py:1110-1151 | src/integrations/prefect-github/prefect_github/repository.py:2567-2613 | src/integrations/prefect-github/prefect_github/user.py:1651-1692 | src/integrations/prefect-github/prefect_github/viewer.py:1476-1512 \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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9c5072eedaa3edf305a288b784000fe2f7c7813d9d98405202f0a2b95c2beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/prefect/client/orchestration/_blocks_documents/client.py:106-139 | src/prefect/client/orchestration/_blocks_documents/client.py:264-296 | src/prefect/client/orchestration/_blocks_types/client.py:166-200 | src/prefect/client/orchestration/_blocks_types/client.py:346-380 \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":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a207cb9d2f290b46465623bce19621ec87dc3f52e24098d328265af7c7f260"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/prefect/flow_engine.py:1069-1114 | src/prefect/flow_engine.py:1804-1849 | src/prefect/task_engine.py:499-533 | src/prefect/task_engine.py:1148-1182 \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":"src/prefect/flow_engine.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd2e43165ba29767a2ffd2c1035dd09df4fa6d58bd758ddffa7a8da6568aab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/prefect/server/database/_migrations/versions/postgresql/2022_04_21_095519_14dc68cc5853_backfill_state_name.py:20-59 | src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py:22-78 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_21_113057_db6bde582447_backfill_state_name.py:20-53 | src/prefect/server/database/_migrations/versions/sqlite/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py:22-72 \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":"src/prefect/server/database/_migrations/versions/postgresql/2022_04_21_095519_14dc68cc5853_backfill_state_name.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1819d244ff17f47d7dc30022ac699de0a863627013dedf807f589d7f5574bcb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:19-73 | src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:77-131 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py:20-90 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py:94-148 \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":"src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f396c5fc9d84e1dde31c850979e1ae80695957d623832d35db15b77d643350b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_233637_add97ce1937d_update_deployments_to_include_more_.py:22-52 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_11_113314_638cbcc2a158_add_infrastructure_block_id_to_.py:22-56 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_25_151028_88c2112b668f_update_deployments_to_include_more_.py:22-53 | src/prefect/server/database/_migrations/versions/sqlite/2024_09_16_162719_4ad4658cbefe_add_deployment_to_global_concurrency_.py:22-54 \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":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_233637_add97ce1937d_update_deployments_to_include_more_.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fe07cd01cafa759dda02654c6c240b83e04b30999e5b7be224ad95c910320e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (132 corresponding lines): src/prefect/client/orchestration/__init__.py:331-483 | src/prefect/client/orchestration/__init__.py:1278-1409 \u2014 These two members are one piece of code written twice and then edited apart: 132 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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"05be19a8be2514d3a5c8aa4cbcdfdfa4fb5ed4d7bf4848b72479d37bddee1293"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (116 corresponding lines): src/prefect/flow_engine.py:1221-1336 | src/prefect/flow_engine.py:1954-2097 \u2014 These two members are one piece of code written twice and then edited apart: 116 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":"src/prefect/flow_engine.py"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5310ca84594fa267c656d7cfe88c7432235983092ea662adfb0c18ebf4c04a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (93 corresponding lines): src/prefect/deployments/runner.py:437-535 | src/prefect/deployments/runner.py:543-635 \u2014 These two members are one piece of code written twice and then edited apart: 93 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":"src/prefect/deployments/runner.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d1fabfc6c74c023cf4bd82194142a42d37de34abbe9fd062b04adfbeac7a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (93 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py:22-116 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:25-117 \u2014 These two members are one piece of code written twice and then edited apart: 93 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a63889aa57f39f539a8c063ec0c8b02fea44e5f8bdfaaa9e7f0eb2c2244aa14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (106 corresponding lines): src/prefect/client/orchestration/_deployments/client.py:76-181 | src/prefect/client/orchestration/_deployments/client.py:783-890 \u2014 These two members are one piece of code written twice and then edited apart: 106 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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e820132305d5faadc0e93bfb942638fd5d72a83c074a9cc88f5ac0b1caa1a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/prefect/transactions.py:336-395 | src/prefect/transactions.py:500-559 \u2014 These two members are one piece of code written twice and then edited apart: 60 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":"src/prefect/transactions.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"243e867fc5d917310ae8c10399e1aab0fc4ce7ec5fcfc84864d8b47e1b51cef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (101 corresponding lines): src/prefect/client/base.py:282-382 | src/prefect/client/base.py:555-655 \u2014 These two members are one piece of code written twice and then edited apart: 101 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":"src/prefect/client/base.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"121cb4601d3a4ee9502978eeccdbfbf563f69847dc84db5e007782a4ce6004f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): src/prefect/flow_engine.py:715-778 | src/prefect/flow_engine.py:1457-1520 \u2014 These two members are one piece of code written twice and then edited apart: 64 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":"src/prefect/flow_engine.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ebf7f95debd94a7e512ed80bf63242f9462c2af89ea351b829d315540e647e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (86 corresponding lines): src/prefect/utilities/engine/__init__.py:520-609 | src/prefect/utilities/engine/__init__.py:618-703 \u2014 These two members are one piece of code written twice and then edited apart: 86 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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"055192c67145024738e580f6f5d933e8b1aaaaa5e15a9e56e956c251ddfb7364"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (109 corresponding lines): src/prefect/deployments/runner.py:1309-1419 | src/prefect/deployments/runner.py:1450-1558 \u2014 These two members are one piece of code written twice and then edited apart: 109 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":"src/prefect/deployments/runner.py"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eab9f691894e095628b31380e91a6667f24ba0d7f77c4f58faf63c2d2874551"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (127 corresponding lines): src/prefect/flow_runs.py:202-328 | src/prefect/flow_runs.py:356-487 \u2014 These two members are one piece of code written twice and then edited apart: 127 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":"src/prefect/flow_runs.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"691c32be9ad690c85333959d64a31a23dc7c5710fd5cdab82985268189fe8530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (156 corresponding lines): src/integrations/prefect-databricks/prefect_databricks/flows.py:77-253 | src/integrations/prefect-databricks/prefect_databricks/flows.py:437-592 \u2014 These two members are one piece of code written twice and then edited apart: 156 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":"src/integrations/prefect-databricks/prefect_databricks/flows.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7380e66e4761a3c5bdd8ecc6d1ac2f4e11927cfbaf5f97f7d8b164d1d4b884d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/prefect/task_engine.py:646-705 | src/prefect/task_engine.py:1309-1369 \u2014 These two members are one piece of code written twice and then edited apart: 60 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":"src/prefect/task_engine.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d7b11220ecf9ac8f1718f54e9127b53e633287b18d72d21065d5ff5aedc217"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/prefect/task_engine.py:708-764 | src/prefect/task_engine.py:1372-1429 \u2014 These two members are one piece of code written twice and then edited apart: 57 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":"src/prefect/task_engine.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"1111dbca0a47fa9789e86a62ab78e553069f3fd2cedcd7e95d720459bc17efb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (93 corresponding lines): src/prefect/blocks/core.py:1500-1592 | src/prefect/blocks/core.py:1597-1689 \u2014 These two members are one piece of code written twice and then edited apart: 93 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":"src/prefect/blocks/core.py"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"d093d08a29c5c0c402ed18d4685b9cc4d8ea59f373e21350c87a94904e1e4739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): src/prefect/server/models/work_queues.py:371-469 | src/prefect/server/models/workers.py:773-883 \u2014 These two members are one piece of code written twice and then edited apart: 99 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":"src/prefect/server/models/work_queues.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4aac9faced20ae0ef68c544a2e3df0d590222bff568411b297cde0b2342526"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/prefect/server/events/filters.py:414-483 | src/prefect/server/events/filters.py:526-582 \u2014 These two members are one piece of code written twice and then edited apart: 57 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":"src/prefect/server/events/filters.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f8dd65608b16a0f42ea39a9b9597862c0ee8f39e73a715111ae24458d5bb38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/prefect/client/schemas/schedules.py:267-312 | src/prefect/server/schemas/schedules.py:806-858 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/schedules.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c27368b5737a17dffdb61c2b9c00a0bb2d89d35f051362e231e795f43ad6a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (101 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:22-122 | src/prefect/server/database/_migrations/versions/sqlite/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:22-124 \u2014 These two members are one piece of code written twice and then edited apart: 101 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":"src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75f784b5f33a048f7df53e873aff94112760e211bc4b892edf051cf262ed266"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py:157-235 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.py:156-234 \u2014 These two members are one piece of code written twice and then edited apart: 79 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"516b19f89db7e453f743cd9414aadd1958b4af0deacfa5805f092b806da065e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): src/prefect/results.py:557-607 | src/prefect/results.py:611-661 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"src/prefect/results.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdfc14ce32b0e8a8d081a734e3bf402aec0196efc5f63aef841b30b1ec1123a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): src/prefect/events/clients.py:809-861 | src/prefect/logging/clients.py:240-289 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"src/prefect/events/clients.py"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"34869c6d19eaf4f3a7ee784edc21868e4089d329b7cd71ac99f28d736757a4d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): src/prefect/task_engine.py:872-946 | src/prefect/task_engine.py:1541-1614 \u2014 These two members are one piece of code written twice and then edited apart: 74 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":"src/prefect/task_engine.py"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1066db54dcc3752a3c46b566749c995b809af7c66f3696894c5bfcb74b4990"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): src/prefect/states.py:450-531 | src/prefect/states.py:536-632 \u2014 These two members are one piece of code written twice and then edited apart: 82 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":"src/prefect/states.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a3645cd50690cd4fd9055b709db0f5735d35d44628c6230fdc46b0e225679e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): src/prefect/client/orchestration/_flow_runs/client.py:53-127 | src/prefect/client/orchestration/_flow_runs/client.py:580-654 \u2014 These two members are one piece of code written twice and then edited apart: 75 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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f4ad7589651dd545f5c42746da4832993c7bcc11c2813c88373188e4685204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (86 corresponding lines): src/prefect/server/events/actions.py:134-226 | src/prefect/server/events/actions.py:229-314 \u2014 These two members are one piece of code written twice and then edited apart: 86 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":"src/prefect/server/events/actions.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0b80cc6fda5c994e0bf6b2ccdc071b7798b736032ef21b7e1707c7a911a259"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (102 corresponding lines): src/prefect/flow_runs.py:514-615 | src/prefect/flow_runs.py:643-744 \u2014 These two members are one piece of code written twice and then edited apart: 102 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":"src/prefect/flow_runs.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"60406dc85737842d1e69946cbad0e4e2de5d540052b3b31bffd798909731a9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/prefect/results.py:1076-1135 | src/prefect/results.py:1140-1199 \u2014 These two members are one piece of code written twice and then edited apart: 60 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":"src/prefect/results.py"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ad75638e2aced984ef80e9d423bcfbf17ed5d106934c217b0c9666c152af6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): src/prefect/results.py:810-877 | src/prefect/results.py:880-947 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"src/prefect/results.py"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7400eb99f64d4e80301c4ef4fd9a155143f6e44b56f5e3e543c4b2962f8a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/prefect/server/services/scheduler.py:223-285 | src/prefect/server/services/scheduler.py:299-358 \u2014 These two members are one piece of code written twice and then edited apart: 60 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":"src/prefect/server/services/scheduler.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9581b3fa7e4d830612577391b539697fd32db047da4213e8cdf8319116f66bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/prefect/cli/automation.py:196-241 | src/prefect/cli/automation.py:256-301 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/automation.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a31ac62c83072906b86877ea52ffdeab70f0076653599df6cdea6e796884788"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/prefect/cli/concurrency_limit.py:144-189 | src/prefect/cli/work_pool.py:538-599 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/concurrency_limit.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fb4e0d8c14860b57b91fc2255195121552521ede279bfe8bea8cfdb5e29df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (109 corresponding lines): src/prefect/flows.py:773-881 | src/prefect/flows.py:914-1026 \u2014 These two members are one piece of code written twice and then edited apart: 109 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":"src/prefect/flows.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"1898695c3ea89c2294017e9bdd109b63cf133d642f66724256c0ad33c880b00a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/prefect/server/orchestration/rules.py:296-334 | src/prefect/server/orchestration/rules.py:453-495 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"src/prefect/server/orchestration/rules.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f39daa9ac735f24db1ca2a26b7dc4d6ec65967d2b92d7e4e2dbf038e289d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (88 corresponding lines): src/prefect/blocks/core.py:1699-1786 | src/prefect/blocks/core.py:1794-1881 \u2014 These two members are one piece of code written twice and then edited apart: 88 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":"src/prefect/blocks/core.py"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cc9b66ad1c978832e8aecaed49f9c644c1c77938d75b3df896c5ac09c12022"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): src/prefect/task_engine.py:1825-1890 | src/prefect/task_engine.py:1903-1979 \u2014 These two members are one piece of code written twice and then edited apart: 66 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":"src/prefect/task_engine.py"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d13a8c326016372870a61d36ee5e2e0b6cfab97e0f62a40ac765567f48c4d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/prefect/locking/memory.py:80-124 | src/prefect/locking/memory.py:133-179 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"src/prefect/locking/memory.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ae47b267ca8306fd530ed92677d2aeba147ef60519037f2ab576fd81247d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): src/prefect/server/models/flow_runs.py:598-675 | src/prefect/server/models/task_runs.py:494-567 \u2014 These two members are one piece of code written twice and then edited apart: 74 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":"src/prefect/server/models/flow_runs.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ab60db30eacdfa4d3017d272b5e54b6b1a7291fa8f5c0b49bcc5a0a3b62931"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): src/prefect/server/events/filters.py:679-742 | src/prefect/server/schemas/filters.py:1545-1595 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"src/prefect/server/events/filters.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0442c0a9022409717cf4df968ac4b8893435ac7b02f040a48d1f4db9641ca31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py:39-79 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py:41-83 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf10a54d11b2c105192ee3e619ce597451bddf5dd0ae93d29c4c9e2321a0622a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py:94-136 | src/integrations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py:347-389 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"src/integrations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"86eeab0e5c359e6312d77528380025e1c73054ea576e89be8cbf690f5ea53054"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:893-947 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:1228-1300 \u2014 These two members are one piece of code written twice and then edited apart: 55 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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"667ed7d94aa7c376bffffb87c29cedbd89248132feebbaa9c974360ad1ec9806"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/prefect/_internal/engine.py:108-154 | src/prefect/runner/_workspace_runtime_bootstrap.py:121-155 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/engine.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2929fcad9dea0d9a5ff0bb406f5d356f0c0a0705f433742928ecf6ae04604c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1265-1336 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1345-1398 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"4866a2cc430a2283f821aa5f5dc4fa370782cb83f6461cf77eedf8d84c4d4da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (103 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:85-197 | src/integrations/prefect-gcp/prefect_gcp/bigquery.py:215-317 \u2014 These two members are one piece of code written twice and then edited apart: 103 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":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe82bd38e96623fe9d2720ff71e0b226c60dde421d7198a1d5f8f858b16369a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): src/prefect/client/orchestration/_work_pools/client.py:181-229 | src/prefect/client/orchestration/_work_pools/client.py:509-556 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"src/prefect/client/orchestration/_work_pools/client.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb49e9467febb85caaa2ea8ee79250fe290a6e0e851bc787102073361dc990a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): src/prefect/client/orchestration/__init__.py:841-893 | src/prefect/client/orchestration/__init__.py:1579-1632 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb2ea217aa999753492597332119577d75f854b51eaee11e4bee2930ce6ecb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:2136-2198 | src/integrations/prefect-aws/prefect_aws/s3.py:2207-2264 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5acb6aef8f1c72bf7f4e5fa791d7f11c2cbad43f23077eda8ea21df13e3ca26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): src/prefect/bundles/__init__.py:797-851 | src/prefect/bundles/__init__.py:861-919 \u2014 These two members are one piece of code written twice and then edited apart: 55 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":"src/prefect/bundles/__init__.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc467158d2a4cfc4d69323abbaf70af6d47959dd3cee9efca6072813ec047123"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): src/prefect/cli/block.py:281-311 | src/prefect/cli/block.py:491-529 | src/prefect/cli/variable.py:57-96 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/block.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d480e7f855158acb035fa00ca16fc848ef1650e21f7ca00447511df3ea0b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/prefect/deployments/runner.py:645-693 | src/prefect/deployments/runner.py:703-745 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"src/prefect/deployments/runner.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca78a0b404779af6e61df5a09056aae10cc82755c547c770113b32d47ec81ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): src/prefect/deployments/runner.py:789-846 | src/prefect/deployments/runner.py:856-911 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"src/prefect/deployments/runner.py"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f22aae852c959e122110f12066555ca76fdadce668bf904cfc658e5629fe6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:20-67 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py:20-69 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a6adf2ab9f1fe77acb11443c39979e19cef4a4a9d37fac2db38137e7f2aa66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): src/prefect/events/clients.py:882-946 | src/prefect/logging/clients.py:304-355 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"src/prefect/events/clients.py"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f314458b5395890abe29bcbdf31ab95017abf7582504fce7c2a9a58844ecc9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src/prefect/task_engine.py:807-846 | src/prefect/task_engine.py:1476-1515 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbab0de980c5676676be3e9b08c0740560d1df233696e2212fa94b119d4bf1be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1160-1207 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1213-1257 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0b2368285de099f92c1b433500038fe41fcb3c2ef95146da28260a878507f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:50-125 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:51-124 \u2014 These two members are one piece of code written twice and then edited apart: 74 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":"src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7f5888ec6b6b5413cf248d913065c71100e58e708403d82b52ad9ee5cb47fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): src/prefect/server/models/block_schemas.py:326-383 | src/prefect/server/models/block_schemas.py:762-833 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"src/prefect/server/models/block_schemas.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ce917bf9e39671fae741ea498e2db4d7471fcd2654288df85d206a68c7dfb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src/prefect/client/orchestration/__init__.py:522-565 | src/prefect/client/orchestration/__init__.py:1775-1818 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6fc1598aef3e1456c7c908d2c49499af24a92f09d91f824e67267adf0c7177"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/prefect/task_engine.py:458-496 | src/prefect/task_engine.py:1110-1145 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"src/prefect/task_engine.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a76eef984c11c5791fda21bb42dbe40b31a62f081b5d8c32c9770d3cf1dab42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): src/prefect/filesystems.py:536-585 | src/prefect/filesystems.py:595-642 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"src/prefect/filesystems.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c274de2b17e8af9586c88f2d15f36739d3ee1f0e5cb850e30ba525f45b46f57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 41\u002B corresponding lines): src/prefect/server/worker_communication/cleanup_queue/memory.py:263-303 | src/prefect/server/worker_communication/cleanup_queue/memory.py:313-371 | src/prefect/server/worker_communication/cleanup_queue/memory.py:380-425 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 41 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/worker_communication/cleanup_queue/memory.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4295e2bbe9ef4f8cc0dc75e9ff70a704f67bb58d27c994a09f523b21acae340"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/prefect/_internal/states.py:57-118 | src/prefect/states.py:207-252 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/states.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec6d7cd30a3c0b8ffb698daf1940f1ee54516f7adce1ae1d739e62e591bd1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/prefect/task_engine.py:976-1012 | src/prefect/task_engine.py:1644-1682 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"src/prefect/task_engine.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b05d68b22ac8f238a8dfea8a0a61607508c5ad6fa0bb02e5fdb7eff24d02c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 47\u002B corresponding lines): src/prefect/server/api/concurrency_limits.py:251-312 | src/prefect/server/api/concurrency_limits.py:323-370 | src/prefect/server/api/concurrency_limits.py:379-425 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 47 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a007ccb1421f93068d9d4a0099a042cf40766dab826ce74a7ba8a3dd654e18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:1672-1732 | src/integrations/prefect-aws/prefect_aws/s3.py:1741-1798 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fd4ebcc532254932bb62c71a54eccf9b65001eb890ee19080cef306cbc9e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:114-151 | src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:167-252 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"src/integrations/prefect-dbt/prefect_dbt/cli/commands.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"031cccdd53df1b7d507a623f6a4bc31dc4ff3d28fefb2e22ec4d1831ec51b95e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): src/prefect/flow_engine.py:966-1028 | src/prefect/flow_engine.py:1703-1765 \u2014 These two members are one piece of code written twice and then edited apart: 63 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":"src/prefect/flow_engine.py"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a10ecc0cf6619292c317b244b0b2b15749a6a60ad4a3e3f1d5c970780fe2ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/prefect/server/api/flow_runs.py:1014-1065 | src/prefect/server/api/task_runs.py:232-270 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"src/prefect/server/api/flow_runs.py"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc82fd62f618e7710dd6404990042df5d718a9ed00c340e16b12d45ad6d9283"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): src/prefect/server/models/artifacts.py:202-237 | src/prefect/server/models/artifacts.py:249-284 | src/prefect/server/models/flows.py:164-211 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/artifacts.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e139cd9b8ba6b795d97f52b1547d6e3020be5ee01a860729ed0b967741c167"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/prefect/client/base.py:457-492 | src/prefect/client/base.py:730-765 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"src/prefect/client/base.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1145d431a989f3d99b597142a41231f9fa761585fd7a519bfce667486b3af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/transactions.py:423-453 | src/prefect/transactions.py:587-617 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/transactions.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff17e675dbaf107b88d4aa3467b622558d588a2cd3d7e496c0da065d1e9fd34f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): src/prefect/client/orchestration/_deployments/client.py:668-730 | src/prefect/client/orchestration/_deployments/client.py:1382-1444 \u2014 These two members are one piece of code written twice and then edited apart: 63 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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f816769e021f9b3f62484b7848273d543a1de5f5f4429dc9d804e886cf7dd43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/prefect/_internal/waiters.py:120-154 | src/prefect/task_runs.py:116-162 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/waiters.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d29d8078e1a27c6b318fe00d873470794ed35f4d46672fda33f3e7142d405c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/prefect/automations.py:192-226 | src/prefect/automations.py:239-273 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/automations.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e356741daac234533562c06419ad5eb3da082b2e983342248dd223f89b94589"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/prefect/flow_engine.py:1031-1066 | src/prefect/flow_engine.py:1768-1801 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"src/prefect/flow_engine.py"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03c226d7f67a034de11441a72f22da466e2c7d91bb46c0140438d97f344a01a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/prefect/flow_engine.py:873-901 | src/prefect/flow_engine.py:1611-1637 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"2216965cb4805db08eb59dbdb3dfcd8e31955ad29ce5d383d999a28f11199fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/prefect/flow_engine.py:904-928 | src/prefect/flow_engine.py:1640-1665 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"src/prefect/flow_engine.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf9656087acd38e31c027a7721cf1ddf456e171791ec1e7d10644536ad16598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/prefect/client/orchestration/_flow_runs/client.py:375-417 | src/prefect/client/orchestration/_flow_runs/client.py:903-945 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"8784d4a7d4de3a88d08693f3ce21fbb3892ec5325521f57e6d62bc5ddbc16ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/prefect/flow_engine.py:829-865 | src/prefect/flow_engine.py:1570-1603 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"src/prefect/flow_engine.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8f990064870ec8e61538f7445eef6095b27a8307e357b72215081bc27f204a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/prefect/locking/filesystem.py:104-144 | src/prefect/locking/filesystem.py:153-193 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"src/prefect/locking/filesystem.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1b6fa2195f8b061da6ad4ec2323d1ebc2713e73d33af13bfb9fcf1988e3135"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/server/services/cancellation_cleanup.py:457-487 | src/prefect/server/services/cancellation_cleanup.py:506-541 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/server/services/cancellation_cleanup.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e91162c7288b7c07bad6df150666991c8bc4673fd31528326f123c7fce05da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): src/prefect/_internal/states.py:127-173 | src/prefect/states.py:261-305 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"src/prefect/_internal/states.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1ff89de4d62cb9ca96751fed1c8c78a9368688f43308ecfe29552b0e95f52b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/results.py:130-160 | src/prefect/results.py:171-205 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/results.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4f0dd7dbfa1a91fff73c4866aa86c7ed1971580914df4399bc887340a47c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): src/prefect/client/orchestration/_deployments/client.py:473-522 | src/prefect/client/orchestration/_deployments/client.py:1187-1236 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"711d941ee3e9811c47feb3b7b7c20caf3a772a57d5533b70e0f7546fdafd0ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:824-905 | src/integrations/prefect-gcp/prefect_gcp/bigquery.py:922-997 \u2014 These two members are one piece of code written twice and then edited apart: 76 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":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa0c6903b63a9bca4891d6e5d9b7606d6f1c4aa5348461d4fdb5d33999740a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/prefect/_experimental/sla/client.py:17-51 | src/prefect/_experimental/sla/client.py:58-92 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_experimental/sla/client.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27ff1a5a668c347f44db66c19915fd8055b6411edcdfbe715d2f8ee26a053f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/prefect/_internal/observers.py:309-354 | src/prefect/_internal/observers.py:516-556 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"src/prefect/_internal/observers.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"927474d3892da1c185550d70c73dee3c5a6abdc2ebc4cd3cf24e8a14afa94056"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/prefect/server/api/concurrency_limits.py:108-144 | src/prefect/server/api/concurrency_limits.py:152-187 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f108f3bfde0abef4cae1b7afc94945223746459abf9c64edff45c448641ef401"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/prefect/cli/flow_run.py:177-204 | src/prefect/cli/task_run.py:53-87 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"src/prefect/cli/flow_run.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"86479a93fe4110663d820d53abc575aef20b4a6e8fc7007ad2ba899a2b68dbd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/prefect/client/orchestration/__init__.py:1128-1156 | src/prefect/client/orchestration/__init__.py:1519-1547 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdc94978eb490ce4ce4ba40d25d2f20279616aa4a5f0e160aed366a5a69f528"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): src/prefect/server/events/triggers.py:1123-1177 | src/prefect/server/events/triggers.py:1191-1241 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"src/prefect/server/events/triggers.py"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bd565334f2bbf3b76dc7ab88840b12490eb8818abcdac224a082ee0f9bd1e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:398-423 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:370-395 \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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f3c6b956bc0510b6eef6b4c373a32f168a3e10d76063889588060dd30e839d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2024_11_15_150706_68a44144428d_add_labels_column_to_flow_flowrun_.py:21-52 | src/prefect/server/database/_migrations/versions/sqlite/2024_11_15_151042_5952a5498b51_add_labels_column_to_flow_flowrun_.py:22-56 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2024_11_15_150706_68a44144428d_add_labels_column_to_flow_flowrun_.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c431ae3fd265f307cc21b5ff8601bc18beec9896dfe9d042a0c8997f299306c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/prefect/results.py:260-290 | src/prefect/results.py:297-326 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/results.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2aff887d35cd209af78330f89c4fa7cf51b0c55f244c48394dbf1483c5704d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/prefect/task_engine.py:536-573 | src/prefect/task_engine.py:1185-1236 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"src/prefect/task_engine.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2e7acec843a4d3d080c35211e32281f142516c572dff92574a37a875043891"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/prefect/utilities/engine/__init__.py:170-215 | src/prefect/utilities/engine/__init__.py:221-269 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8042f157294bb8d45f3cd3e5ec4d4e3a5ae537e2781cf736035c1be0d9f8e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/prefect/results.py:685-727 | src/prefect/results.py:730-772 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"src/prefect/results.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82c2d6764d767edd3020aff082f5cd9eebd92e37b9ca6b4f365aece7b6a55d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 51\u002B corresponding lines): src/prefect/_internal/versioning.py:83-133 | src/prefect/_internal/versioning.py:143-197 | src/prefect/_internal/versioning.py:207-261 | src/prefect/_internal/versioning.py:271-325 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/versioning.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee47a71c7798b77af27448ae7a98b3bfd55c594ac240d7dc7a7d02ed377cb7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1945-2004 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:2013-2059 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":1945}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b7c87dd1649c2674127217b069d419aec2c22f7b4f49a0402c8106903bd009"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/prefect/_internal/concurrency/calls.py:394-433 | src/prefect/_internal/concurrency/calls.py:436-468 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"src/prefect/_internal/concurrency/calls.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c1b10dd0fe326093e37197ea3c1d7fbeec7a7f53c95152696677867dbc1fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/server/api/automations.py:43-92 | src/prefect/server/api/automations.py:102-132 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/server/api/automations.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8202b9442a3cff6f0e83091c3566ec1c0ceb8367748fb0b602b4d7304fa1379a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:1440-1487 | src/integrations/prefect-aws/prefect_aws/s3.py:1496-1542 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"669dcee1f8b648132bcbefb098aaa967381ceb8fd884078ea37b878acbc6faf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:1807-1864 | src/integrations/prefect-aws/prefect_aws/s3.py:1874-1927 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f2366930c5777c4629e853f38798ad7786c60b2555b333fe489a49dea55209"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/prefect/client/orchestration/_concurrency_limits/client.py:432-465 | src/prefect/client/orchestration/_concurrency_limits/client.py:894-927 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"64afde1e2ef654700068374f383df2a3b78f24360e5c1c59fedb9437e165262a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2022_05_26_135743_724e6dcc6b5d_add_block_schema_capabilities.py:55-78 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_19_165808_33439667aeea_add_block_schema_capabilities.py:70-92 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_26_135743_724e6dcc6b5d_add_block_schema_capabilities.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1c3b6aeccf3049ef2aaecb0cdde140d3a830578539114494e4de451a3c4042"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/prefect/bundles/_file_collector.py:411-456 | src/prefect/bundles/_file_collector.py:459-521 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_file_collector.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9299d8c3c8e5233ac673a4c47e0504a1ea3bd03018801256fe1fe06a5f3174d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/flow_engine.py:2210-2240 | src/prefect/flow_engine.py:2251-2285 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/flow_engine.py"},"region":{"startLine":2210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc1510e53409fc06943a99ef26b503bc6327b5a6c2fb0fd6585cb42b8c1fb30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/integrations/prefect-redis/prefect_redis/ordering.py:240-302 | src/prefect/server/events/ordering/memory.py:204-240 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"src/integrations/prefect-redis/prefect_redis/ordering.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a857b5241791305e3173697a8bf653a2f72a36fa0b680f4f40fb0eb0ad1cd3f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:657-726 | src/integrations/prefect-gcp/prefect_gcp/bigquery.py:741-808 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6adef44de5de86406699ebad7b12b16cd650eca838096f254db478f098b9aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (84 corresponding lines): src/prefect/concurrency/_asyncio.py:274-357 | src/prefect/concurrency/_sync.py:86-171 \u2014 These two members are one piece of code written twice and then edited apart: 84 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":"src/prefect/concurrency/_asyncio.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afbd61143764c6b9c10bfc48dfb83cddf3feae18c05ceea7d323fb6eeec174f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): src/prefect/client/base.py:395-454 | src/prefect/client/base.py:668-727 \u2014 These two members are one piece of code written twice and then edited apart: 60 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":"src/prefect/client/base.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b68e7df075b68efd26ce8442e6446623b75dbfa64cf0e2ba973b0a250658d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/integrations/prefect-azure/prefect_azure/bundles/upload.py:26-63 | src/integrations/prefect-gcp/prefect_gcp/bundles/upload.py:29-74 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"src/integrations/prefect-azure/prefect_azure/bundles/upload.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5240b7a23e8a7e456b43e88a6b14b1813b2d6c16a48ce379690ebc4d48da291"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/prefect/events/schemas/automations.py:220-250 | src/prefect/server/events/schemas/automations.py:362-391 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/schemas/automations.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"db96c7ccdf98e0c0bf6a503cb1ffb1ef0cf86fd63c4a40855eee279dd1d2882d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/prefect/flow_engine.py:1359-1379 | src/prefect/flow_engine.py:2120-2140 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9fb9fe8eb9ecbb4b237409cfb714ea1b79d58ce2ce6dd59e28605cb74177dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/prefect/server/api/deployments.py:624-666 | src/prefect/server/api/flows.py:227-260 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"src/prefect/server/api/deployments.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a5be627489e115457f44840fc6343c2e40f2ecab718cedf4c0636ad6a277fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 31\u002B corresponding lines): src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py:181-217 | src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py:223-253 | src/integrations/prefect-github/prefect_github/repository.py:112-154 | src/integrations/prefect-github/prefect_github/repository.py:160-196 | src/integrations/prefect-gitlab/prefect_gitlab/repositories.py:212-245 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a788b388d40e40f3f6785b0a8816722f2e1bb7d51be15dccccb761045ad420"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/runner/_starter_bundle.py:50-80 | src/prefect/runner/_starter_direct.py:45-80 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/runner/_starter_bundle.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"406928954e4a4d7a88422cc329a62d3aa802924fcac18305958876bcc99994b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/prefect/client/orchestration/_automations/client.py:66-98 | src/prefect/client/orchestration/_automations/client.py:241-273 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"src/prefect/client/orchestration/_automations/client.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"88df96411c3520272a81b616481a50483d87608d65856c112a3c3f91eb4608a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/prefect/blocks/core.py:850-893 | src/prefect/server/events/actions.py:1950-1978 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"src/prefect/blocks/core.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4f2228c8b912c94079f71c39ea4757c44053a6d6e97af6dae0f059938423d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 27\u002B corresponding lines): src/prefect/cli/work_queue.py:153-184 | src/prefect/cli/work_queue.py:203-230 | src/prefect/cli/work_queue.py:307-333 | src/prefect/cli/work_queue.py:778-808 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_queue.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"489ab84d84299f2905f1897f51a7063eeaef453d126615834496d2733cbeb0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:2273-2351 | src/integrations/prefect-aws/prefect_aws/s3.py:2359-2386 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":2273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae56e0b7c2f72ad016b92e74d19f8b7e0b0dd237dc9741d811c91761076acb4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): src/integrations/prefect-aws/prefect_aws/secrets_manager.py:89-156 | src/integrations/prefect-aws/prefect_aws/secrets_manager.py:167-245 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"src/integrations/prefect-aws/prefect_aws/secrets_manager.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c911254ed771fde79d46ccf33270fda5147832b034be33c048a60966b50d567"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/integrations/prefect-dbt/prefect_dbt/core/_manifest.py:309-342 | src/integrations/prefect-dbt/prefect_dbt/core/_manifest.py:450-482 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"src/integrations/prefect-dbt/prefect_dbt/core/_manifest.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6bfd9814160b18891d69baa595b0e6cdb6955b0d15ffd41b69d7395ef7cbf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:2365-2412 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:2424-2470 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":2365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1835fc7e1c906f2758b28daa9a8dbf6e1ab13e09e17f1d5bce9dd4d740519800"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): src/integrations/prefect-snowflake/prefect_snowflake/database.py:975-1047 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:1060-1132 \u2014 These two members are one piece of code written twice and then edited apart: 73 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":"src/integrations/prefect-snowflake/prefect_snowflake/database.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ddad4c1590bafb73683a62f9d206a1d7ee08628980642c10117cd8444da39b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): src/prefect/server/api/work_queues.py:240-261 | src/prefect/server/api/workers.py:590-619 | src/prefect/server/api/workers.py:1031-1060 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/work_queues.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"03208bb40164378021e3da4e086e52f863b79fe8c33d93beee55073b8c6e7812"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/prefect/variables.py:48-90 | src/prefect/variables.py:101-139 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"src/prefect/variables.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbbfd4192203afbf4d32e0836979c081883208ca12d3bb4aabf69674e950904"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/prefect/transactions.py:398-420 | src/prefect/transactions.py:562-584 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82976188e3d396f87c6dc4ff13f517f93822bd9f4215a10de7ac976e1cdda65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/prefect/cli/cloud/webhook.py:44-62 | src/prefect/cli/cloud/webhook.py:79-95 \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":"src/prefect/cli/cloud/webhook.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"03bc2c20a2f313f7c9b4900254e2351f1be5c97469bab2422ea5ab8c72c029b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 47\u002B corresponding lines): src/prefect/flows.py:1920-1974 | src/prefect/flows.py:1982-2037 | src/prefect/flows.py:2044-2090 | src/prefect/flows.py:2097-2143 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 47 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"0144d9e8b11c49fa1727e76e0d863a5efd4cf192c3880fed6836151127606b87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2022_10_19_093902_6d548701edef_add_created_by.py:23-52 | src/prefect/server/database/_migrations/versions/sqlite/2022_10_19_093542_fa319f214160_add_created_by.py:23-52 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_10_19_093902_6d548701edef_add_created_by.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e27c5dcf2baca07fdf050915a78734aeff98d90015cf59933c91468788c849d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/prefect/client/schemas/actions.py:313-336 | src/prefect/client/schemas/actions.py:398-422 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/actions.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac25150acb74720eba582893bd4fc1cc339fa198a1fc9814f888394e1c25afd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/settings/legacy.py:97-118 | src/prefect/settings/models/root.py:57-81 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/legacy.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"87997d500276f55395bf74b980b38de4df64431d09cace1b367f7ef2cfebb526"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/prefect/client/orchestration/_work_pools/client.py:45-83 | src/prefect/client/orchestration/_work_pools/client.py:373-411 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"src/prefect/client/orchestration/_work_pools/client.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0394a28e7202e9d7a4f8f7c5e9e03e3bddfb079118dd339dd3437a7b392d2411"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): src/prefect/events/clients.py:107-134 | src/prefect/events/clients.py:142-170 | src/prefect/logging/clients.py:102-137 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/clients.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b22fb8bb626edc5dffd9496d92b8072df34b13592fa4e582a85fdb584f3ba54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): src/prefect/blocks/core.py:1293-1350 | src/prefect/blocks/core.py:1360-1421 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"src/prefect/blocks/core.py"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f37e4323c15c87be61ec7e1423193db5ca7f57df38af1b80d162b02ab1171fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/prefect/cli/global_concurrency_limit.py:183-202 | src/prefect/cli/global_concurrency_limit.py:208-227 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/global_concurrency_limit.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a334bba1212901f380c969220dd4380e4175c72097c5871575e53c486ed8e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/prefect/client/orchestration/_artifacts/client.py:45-77 | src/prefect/client/orchestration/_artifacts/client.py:148-181 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"src/prefect/client/orchestration/_artifacts/client.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e509232f638e2900f9b666c6b1318979237965154ccd537a17d9db223b863a37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): src/prefect/client/orchestration/_deployments/client.py:340-375 | src/prefect/client/orchestration/_deployments/client.py:1054-1089 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8239d8135678c2508d2797b4998e196cdc27f9376a2ef0b54d884c1199b936a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): src/prefect/server/schemas/filters.py:1620-1633 | src/prefect/server/schemas/filters.py:2312-2325 | src/prefect/server/schemas/filters.py:2461-2474 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46e587b5390c86ce2669ed467a84e02aa589dde0c1ae98efa8ef0037c5a6afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/task_engine.py:1017-1039 | src/prefect/task_engine.py:1687-1708 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec582194df3e101c9814e838d33f124bd8ca6b63093bbe5ce18de7227942ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/prefect/_internal/observers.py:357-377 | src/prefect/_internal/observers.py:559-579 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/observers.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0b6f48c898d38fe88ffbcfdd371abf98eda448732fdf695d7fa7bd79f5d496"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2026_09_04_000000_c8d5f2a71b3e_rebuild_invalid_event_resources_occurred_index.py:32-61 | src/prefect/server/database/_migrations/versions/postgresql/2026_09_15_000000_d4a7e1c93f52_add_flow_run_state_type_coalesce_start_time_index.py:34-61 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"src/prefect/server/database/_migrations/versions/postgresql/2026_09_04_000000_c8d5f2a71b3e_rebuild_invalid_event_resources_occurred_index.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"065f0ca9097147373274f44cd6302af355e70cafbaa8ff305d3b1ca36f6c9160"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/prefect/server/events/services/event_persister.py:60-82 | src/prefect/server/services/task_run_recorder.py:803-825 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/services/event_persister.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5de3a258baf8255e85313a97cd543cae90a9c7eddb411d3fdc1cd5ca19bf0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/prefect/server/events/filters.py:624-655 | src/prefect/server/schemas/filters.py:1504-1540 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/filters.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b7e40058d1bf8c922087e9df3d04858817849d16ab2c9b46c63974442bd381"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/prefect/_internal/observers.py:215-253 | src/prefect/_internal/observers.py:393-422 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/observers.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"baed8d8a08635ee8bf624fa064e894e6ef71845fa6ef662ee453c1c824862d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src/integrations/prefect-azure/prefect_azure/workers/container_instance.py:1011-1058 | src/integrations/prefect-snowflake/prefect_snowflake/experimental/workers/spcs.py:1008-1051 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"8092916eb8ba0490fc68e32b9ad08ba7c4ab7d6dc20ca5593e9497905ee9f36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/_internal/waiters.py:81-91 | src/prefect/task_runs.py:77-87 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/waiters.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d4a78a3ce8e2c00602f670c48851a0992db1a398dd7c25cb40d87e7655c665"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/server/events/filters.py:97-108 | src/prefect/server/schemas/filters.py:1283-1294 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/filters.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42f83cfab9dd2d4a5720977ad9b81951dd94605da0f159cbcb0a52ff352bb55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/server/schemas/filters.py:2223-2234 | src/prefect/server/schemas/filters.py:2372-2383 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":2223}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e45f7348cc27ae40cba93646d9c102945931506fd25c2bb68531b2f24f0e86e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:1935-1974 | src/integrations/prefect-aws/prefect_aws/s3.py:1983-2020 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1935}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab8187a5af4bc705ea6bb10a6200f05f36b192d9a48e5cf0f62e1c143e66c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/prefect/blocks/notifications.py:60-75 | src/prefect/blocks/notifications.py:83-98 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/notifications.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51bf71823b3e015586889df43d93e6b527ec5854267f910ad5023f7da39d1e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/client/orchestration/_blocks_documents/client.py:28-58 | src/prefect/client/orchestration/_blocks_documents/client.py:186-216 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"200ce6f6b698e399e784df2fa96673778b496118792a42712ede6fc0fd37f4c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/results.py:508-529 | src/prefect/results.py:533-554 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/results.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d521c4eddd27056280703d419e85448e7aacf6662b76c1776bc8be28ecd5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/prefect/task_engine.py:1761-1780 | src/prefect/task_engine.py:1793-1812 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecae6e87fcf1a7248f08554a4521a4a59bae0320a2f1af26119cf1819abb8851"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/prefect/input/run_input.py:767-784 | src/prefect/input/run_input.py:793-810 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/input/run_input.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccde6d042492e8ed35310e6862e8c2e9d13b1761fd9bcdf86bdef63efebdc2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/prefect/server/api/deployments.py:1364-1391 | src/prefect/server/api/deployments.py:1402-1425 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f906009e0b47514ed9a4e412031e39be3e5004476dfa1cb353df3ad9fca8b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src/prefect/transactions.py:679-718 | src/prefect/transactions.py:731-771 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"882c5de7af8aa3fcf9468db189cfe66eda205eaaeea31c6af0759b36392e5208"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/integrations/prefect-aws/prefect_aws/secrets_manager.py:463-502 | src/integrations/prefect-aws/prefect_aws/secrets_manager.py:508-545 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"src/integrations/prefect-aws/prefect_aws/secrets_manager.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cab4414ff80f58962e739684f57203aad5c24bd4bb40d0c6d808cae22efa51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py:124-150 | src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py:763-786 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e261fa18186b0d511d6c32fa1478664f94e33ae23001469ef050af9c7aacd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/client/orchestration/__init__.py:726-756 | src/prefect/client/orchestration/__init__.py:1979-2009 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf69810b14e582f03353aa1ed9e82021d94dede99e9bdcfddb486471ede3f366"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/prefect/client/orchestration/_deployments/client.py:305-334 | src/prefect/client/orchestration/_deployments/client.py:1019-1048 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a3678aad7f919d4e3dcd48f83dc267d716b686fd2e824c20f29cba6d37bbd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 33\u002B corresponding lines): src/prefect/client/orchestration/_work_pools/client.py:284-320 | src/prefect/client/orchestration/_work_pools/client.py:329-361 | src/prefect/client/orchestration/_work_pools/client.py:611-647 | src/prefect/client/orchestration/_work_pools/client.py:656-688 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_work_pools/client.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9fca7147287cf9237196e9f036157d65c3c3fe76c073dbab4ea14413e7da18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/server/api/ui/flow_runs.py:101-128 | src/prefect/server/api/ui/flows.py:52-73 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/ui/flow_runs.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d2279338a9bda78d7ff6258a997b8795854db0119aff89bad475112b1491b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/prefect/_internal/waiters.py:171-211 | src/prefect/task_runs.py:179-226 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"src/prefect/_internal/waiters.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f2a08c917926733fe8032c56fcfc0859397b6e63100831c89d22cc09615bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/prefect/flow_engine.py:781-800 | src/prefect/flow_engine.py:1523-1542 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0cf1a2201eba894dc14737b5b4fa15676bd6b034a88bf6b7a7fc1ac56d1b83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2023_04_06_122716_15f5083c16bd_migrate_artifact_data.py:20-62 | src/prefect/server/database/_migrations/versions/sqlite/2023_04_06_122659_2dbcec43c857_migrate_artifact_data.py:20-66 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_04_06_122716_15f5083c16bd_migrate_artifact_data.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9aa799a0495c685c7877b4002fbe719fed01f09d3b5e26a5e3775112e7b82e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/prefect/settings/sources.py:105-124 | src/prefect/settings/sources.py:141-162 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/sources.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"482e44ef57717c61635c440db8409ed60106ca64dcd13917c093f3012b059f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/prefect/utilities/urls.py:197-217 | src/prefect/utilities/urls.py:247-265 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"src/prefect/utilities/urls.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1176fbed2a6be57dab03b40df599ac6b02a71ee9f3593ebe1dcc20a08ef279"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/__init__.py:202-216 | src/prefect/client/schemas/__init__.py:83-94 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/__init__.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfdf3962099b37ccb0d7cf5f30373941540fd51ca44f66c109b3bd361d2485b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/server/events/actions.py:1361-1393 | src/prefect/server/events/actions.py:1437-1467 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/server/events/actions.py"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"296b85994837a9b9a159da36cd2efc08cc26941073e9518bf51b028f8ec94fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/prefect/bundles/_file_collector.py:280-329 | src/prefect/bundles/_file_collector.py:332-372 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"src/prefect/bundles/_file_collector.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cf49fe10a404c618c83d173965f2e94025ccbea6c37a8832c68f8e5be9f742"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/prefect/cli/cloud/ip_allowlist.py:250-269 | src/prefect/cli/cloud/ip_allowlist.py:282-308 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/cloud/ip_allowlist.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2eaad195fb0828962bd77cda21ec7ebbdad630837c32e8050ea3ca88bf3aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/prefect/client/orchestration/_concurrency_limits/client.py:67-98 | src/prefect/client/orchestration/_concurrency_limits/client.py:528-559 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1406e3fb831fb81fc59bed6902f0747789709cc5ec3abcf0143c9ba6c9ab296f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/integrations/prefect-aws/prefect_aws/secrets_manager.py:381-416 | src/integrations/prefect-aws/prefect_aws/secrets_manager.py:425-458 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"src/integrations/prefect-aws/prefect_aws/secrets_manager.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef4ab692976b4a4591d1cc5ab1e57cdcf0682829e92cdd278b7584b8058c1af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/prefect/client/orchestration/_deployments/client.py:262-284 | src/prefect/client/orchestration/_deployments/client.py:975-997 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af314baba9dc524fa5aaa2bf49e689572c8cc543dad3fb91a86f8963f02b816"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2024_05_21_101457_94622c1663e8_json_variables.py:24-40 | src/prefect/server/database/_migrations/versions/postgresql/2024_05_21_101457_94622c1663e8_json_variables.py:44-59 | src/prefect/server/database/_migrations/versions/sqlite/2024_05_21_123101_2ac65f1758c2_json_variables.py:24-41 | src/prefect/server/database/_migrations/versions/sqlite/2024_05_21_123101_2ac65f1758c2_json_variables.py:45-61 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2024_05_21_101457_94622c1663e8_json_variables.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94f682b8d4f5ed257011e7d110a567e4902d8fbd295b8432b8087e59ac82202"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:1550-1603 | src/integrations/prefect-aws/prefect_aws/s3.py:1612-1664 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"93239d8ef276b00239798d228561c64974a4316bd6776a1a651770017dbd04eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/prefect/flow_runs.py:750-769 | src/prefect/flow_runs.py:774-793 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"767aa2a68d86597b111f855767ebbba358e868923278da75de8be7e9d6cd60bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/prefect/transactions.py:271-297 | src/prefect/transactions.py:626-652 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70240d1a8ae296dd57b4071541a644bce153caf0737990d1e08ef5e214723c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): src/integrations/prefect-redis/prefect_redis/ordering.py:311-374 | src/prefect/server/events/ordering/memory.py:249-300 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"src/integrations/prefect-redis/prefect_redis/ordering.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfaa19f68c2737989925e6e5b3ed655cee2af3ee0ae549ced9c5e8fa4751dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/prefect/server/models/flows.py:45-80 | src/prefect/server/models/saved_searches.py:23-57 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/flows.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b22d01f66de9dc76f3eb92454614a210195a2c9214e464adebc40021dc53bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/prefect/_internal/engine.py:43-59 | src/prefect/_internal/engine.py:65-89 \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":"src/prefect/_internal/engine.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1435315f18b61ed8fbf70b16a0a1b40d8256793cc949924e453dc1f0816110"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/prefect/blocks/redis.py:91-114 | src/prefect/blocks/redis.py:132-156 | src/prefect/blocks/redis.py:160-175 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/redis.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5b075bb243ef5ae28d450c17cd7baf2910e6dd07f5aba916e0e6418a070f8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py:299-329 | src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py:941-973 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d36ea5ce5e0a1c2996e9526bee3212c62f006f3183d8ae8efb7d9a13dce5f24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/prefect/locking/filesystem.py:56-73 | src/prefect/locking/filesystem.py:78-95 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/locking/filesystem.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8184d7e1d79ba78cf0a9d520490bd53519fe4c405fdc87794bd2f82b8c8b1ddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/prefect/server/api/work_queues.py:109-129 | src/prefect/server/api/work_queues.py:137-157 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/work_queues.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3d2b21993c62ab7bf37ab20559551b13227161284423e340b7566a895af2d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/prefect/server/schemas/filters.py:512-523 | src/prefect/server/schemas/filters.py:996-1007 | src/prefect/server/schemas/filters.py:1028-1039 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"2254d1b8d662c5f9f3642c1234e39af339c01e2777e38e1e4a226168342af663"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:767-835 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:852-918 \u2014 These two members are one piece of code written twice and then edited apart: 67 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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2851a6a36cb2db23198f1de0e6713747f5fd0092b5d46a06abac860c2c71a4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/prefect/server/models/workers.py:233-255 | src/prefect/server/models/workers.py:286-305 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/workers.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d008b9c42ea6d3c1a5a3354ef4374a76d2fd88a2cbd0bcbb7e45a6a69627702"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/prefect/server/api/concurrency_limits_v2.py:126-146 | src/prefect/server/api/concurrency_limits_v2.py:156-175 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/concurrency_limits_v2.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"df46909bd741ee695fac0ab9228efbbed51946fa8533e01dd7b31f1dee96c8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/prefect/server/schemas/states.py:408-431 | src/prefect/states.py:834-861 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/states.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcb9a19f43e85915c516195e0d38f13a78d699831675a2876193a39a359ffdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/integrations/prefect-shell/prefect_shell/commands.py:644-684 | src/integrations/prefect-shell/prefect_shell/commands.py:688-726 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"585c007178e7728537cd79271196466003d2f2b5b99cc4815e5ed7987763cf95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/input/actions.py:38-59 | src/prefect/input/actions.py:69-90 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/input/actions.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f3eb0a02fedfeae9ea589adc19e6b9bc1f570d5c1a7221820b97a8c2cdb81a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/prefect/settings/sources.py:358-367 | src/prefect/settings/sources.py:377-384 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/sources.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf5f7070ad833e9591c790b2ae46f7f3af4e575b80c08d1011ef80b34fbac7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/integrations/prefect-aws/prefect_aws/secrets_manager.py:553-594 | src/integrations/prefect-aws/prefect_aws/secrets_manager.py:603-643 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"src/integrations/prefect-aws/prefect_aws/secrets_manager.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"362a5da4017235f598c3fc94976e16c4665050f8dbb961ab4a79ecf6d10ce184"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:1029-1054 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:1407-1435 \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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc2aabf7af361ca161c96fbd88580fe1834976afd1eb8364c2e9a6cbad351d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/prefect/client/orchestration/_deployments/client.py:739-752 | src/prefect/client/orchestration/_deployments/client.py:1453-1466 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fe015b3459f0fbed1af80e1eafaccb8e3e637b37db4530bc181d344d2b2084"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/prefect/server/api/flow_runs.py:361-385 | src/prefect/server/api/task_runs.py:152-174 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/flow_runs.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e633553e24a5112d0017f0b68f76b47857575feee5c2b95030bd589ca88e10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/prefect/transactions.py:300-313 | src/prefect/transactions.py:462-475 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"2902a67dd4b8b08eb39cdf19ee80f94cde106b91afad4fbcb638db22e0075335"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/integrations/prefect-dbt/prefect_dbt/core/_executor.py:537-556 | src/integrations/prefect-dbt/prefect_dbt/core/runner.py:492-512 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f0f50375e2a24ef87029d60214e6d186b3de1d814120c1e2c77be8f7eb2d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/prefect/blocks/notifications.py:1008-1024 | src/prefect/blocks/notifications.py:1028-1042 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/notifications.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df7115f500dea41b631ab9b942e8ec1131323cd6d6eef68572955cac0b9af44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/prefect/task_engine.py:315-342 | src/prefect/utilities/engine/__init__.py:1065-1100 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"src/prefect/task_engine.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"615d633af9a10540048d371d35a782ec53de6d6d5885f7bb757f522ca5a4362b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/prefect/task_engine.py:949-962 | src/prefect/task_engine.py:1617-1630 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"c883cfea611f244341d2a2de0d0b07005ee358f5a504fcb1b26edf2cc8bad69a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:510-573 | src/integrations/prefect-gcp/prefect_gcp/bigquery.py:586-643 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"da594bceafe1118195910f2be58c2f8b6d03c481d4c098e42c9c7d4e02be8b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:533-552 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:529-541 | src/integrations/prefect-kubernetes/prefect_kubernetes/worker.py:624-647 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ccbcac7d4571773b746fa6ab1c8fea8931bce1e17c93617c55365ca01f533ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/prefect/server/api/workers.py:550-577 | src/prefect/server/api/workers.py:995-1019 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"src/prefect/server/api/workers.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d74253f4785c5bebf8de7b0e4315c8b78e17ddf2a7f38b9a556a31a7348a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/prefect/server/models/events.py:466-494 | src/prefect/server/models/events.py:550-582 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"src/prefect/server/models/events.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab5ca38f937296c8b4ca95915a13b0aa31f254a9c354ff720b194a1e6453fcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 51\u002B corresponding lines): src/integrations/prefect-azure/prefect_azure/blob_storage.py:319-369 | src/integrations/prefect-azure/prefect_azure/blob_storage.py:378-435 | src/integrations/prefect-azure/prefect_azure/blob_storage.py:498-549 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/blob_storage.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f740c140eaf6b7f7469e2e256f7787627966da5dfae4e653ab86d506a1dabb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/prefect/input/run_input.py:170-192 | src/prefect/input/run_input.py:197-219 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/input/run_input.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa06cf62174499eb5db27bf86880c7dcb11962a9fa06feba24295995934139a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:350-370 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:456-471 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08e2c623d542dd098ee4fe2386343853bbf48527176b169906698cdaa0a0a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/secret_manager.py:565-582 | src/integrations/prefect-gcp/prefect_gcp/secret_manager.py:677-692 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/secret_manager.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7d7887523c2859c35418abc6e454eaf06a6d61333d573ca019e02f432ce7ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/integrations/prefect-redis/prefect_redis/blocks.py:189-203 | src/integrations/prefect-redis/prefect_redis/blocks.py:206-222 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/blocks.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"80786172ff2615449406a2d88c53a664b624df0c5b73f260c03af91b616476cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/prefect/artifacts.py:51-82 | src/prefect/artifacts.py:89-120 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/artifacts.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a1abb1efb1a4fac2cfe5b637371803fe1d1f5e150bacc8fec87dd0a76301b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/prefect/server/api/work_queues.py:78-101 | src/prefect/server/api/work_queues.py:269-286 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/work_queues.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"7947d0adbbcc9f5f16df02abcc4f5be5d6375c2df80cdc4dc2a3d792aa15da42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/integrations/prefect-redis/prefect_redis/locking.py:143-166 | src/integrations/prefect-redis/prefect_redis/locking.py:175-201 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/locking.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b113c3b5a012b43ab37f1451ec8c29610cf7af142ee0df810bf60a4c8e1875"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/prefect/client/orchestration/__init__.py:603-626 | src/prefect/client/orchestration/__init__.py:1856-1879 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"002d1b12faa543fa0550eed7c750e2ba860f43269b2498fb7fa46ad8427110dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/prefect/client/orchestration/_automations/client.py:112-143 | src/prefect/client/orchestration/_automations/client.py:287-318 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_automations/client.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8d91c824be68f7b16d5b701cacb18f32730194e8ec1ba30c7f70ba0301d887"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): src/integrations/prefect-github/prefect_github/repository.py:2628-2674 | src/integrations/prefect-github/prefect_github/user.py:1705-1746 | src/integrations/prefect-github/prefect_github/viewer.py:1524-1560 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/repository.py"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e9b2641f4acdd2e1e5f8f407526f768eb70c14c3e40f2eb57db2d12c12b242"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/integrations/prefect-github/prefect_github/user.py:641-682 | src/integrations/prefect-github/prefect_github/viewer.py:574-610 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ee0c5b7c48d51236b8396fd7665e8994c718491973a1f5a705a6fda6e06e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/integrations/prefect-github/prefect_github/user.py:695-736 | src/integrations/prefect-github/prefect_github/viewer.py:622-658 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d8d58c5df402149f4d6de8d34994e573a9e1bb5eb23919a43ed5afb8737657"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/integrations/prefect-github/prefect_github/user.py:914-955 | src/integrations/prefect-github/prefect_github/viewer.py:817-853 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16a65274bc5cd4b195c2fb51ae3eae1fb3ad3e513b7057dd9c3121164d96651"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/integrations/prefect-github/prefect_github/user.py:1251-1292 | src/integrations/prefect-github/prefect_github/viewer.py:1118-1154 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"642f1aa7e849bcef65faae47738de1831f8e03096bded1c592364d4569f775a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/integrations/prefect-github/prefect_github/user.py:1597-1638 | src/integrations/prefect-github/prefect_github/viewer.py:1428-1464 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2d4e546397e8b25285122f3a1e2ab64a641c57665d6e33a3512357a058dcb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/prefect/deployments/steps/pull.py:65-105 | src/prefect/deployments/steps/pull.py:119-228 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"src/prefect/deployments/steps/pull.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbadb4bcb3809afbd8667c7fea01fa3a4c15a575692d5110182620f6bca74e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/prefect/server/api/work_queues.py:43-69 | src/prefect/server/api/workers.py:949-983 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/work_queues.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab96b156d7c5c9536c4497eee2eba7cba91542e2ed5599378f09a23349c237ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/prefect/server/events/actions.py:1550-1575 | src/prefect/server/events/actions.py:1668-1694 \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":"src/prefect/server/events/actions.py"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd6f95355c0676c1f1bd86b935ece26384d723242be1f4c631d40a25763be3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/prefect/server/schemas/filters.py:428-437 | src/prefect/server/schemas/filters.py:944-953 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd45302ed0d6c3eba2f26c94054ee3482cdebff50079c182b3c7a5a400a77a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:763-801 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:793-832 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc03e46eab58952bf8483d593435de1cbc4c98850cf44c6b5d7ffdbe287d4581"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/prefect/blocks/core.py:1003-1019 | src/prefect/blocks/core.py:1027-1043 \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":"src/prefect/blocks/core.py"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ec3d07075e94748bb21545c1c0ef9566773a365dcdc4d9ef86c9ecc548747a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/integrations/prefect-shell/prefect_shell/commands.py:563-601 | src/integrations/prefect-shell/prefect_shell/commands.py:605-641 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4391189700e3887a285d3a838af7daa7376c031790404fbfb0778fc3d2a3b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/prefect/client/orchestration/_deployments/client.py:637-651 | src/prefect/client/orchestration/_deployments/client.py:1351-1365 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"07072cf39b5ce0caf65652aaa4fb94694b547a43d4a33c2edd38f15426b55619"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/filesystems.py:662-673 | src/prefect/filesystems.py:677-688 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/filesystems.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"375ad5b01716c1e0f1be4bef9752cdce21faf4b62859f2d643e46510d33d623f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/prefect/server/orchestration/rules.py:256-289 | src/prefect/server/orchestration/rules.py:413-446 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"src/prefect/server/orchestration/rules.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b7c4f63318aa6f07002bcc55d0e3e9622ba0e72d79be2ae8f2b0e52acfefa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/prefect/task_engine.py:782-794 | src/prefect/task_engine.py:1448-1462 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f428d9e60029e126e699c998f09ea9707a4278279eed401d79964f3ae774ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/client/orchestration/_blocks_types/client.py:123-144 | src/prefect/client/orchestration/_blocks_types/client.py:303-324 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_blocks_types/client.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a9050c2fe5ebb72efac9013d65bd4bbfae3ad0e94fe6e6b13027f577427cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/prefect/events/filters.py:81-96 | src/prefect/server/events/filters.py:148-164 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/filters.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e790e59984e886667bccb1b594d9f32eafec081bdb2e7db36e2e14ab1b4e42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/prefect/server/api/deployments.py:787-811 | src/prefect/server/api/flows.py:186-212 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"src/prefect/server/api/deployments.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd31b570dd7ef2082c23703ff389ff4e87ea162709798b44dae804d73119de3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/integrations/prefect-aws/infra/worker/service_stack.py:438-458 | src/integrations/prefect-aws/infra/worker/service_stack.py:461-481 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/infra/worker/service_stack.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fe7838e52185fb316f250de54a92ce1859d64f3fe9e760ab44837516e2b4ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/integrations/prefect-dask/prefect_dask/task_runners.py:133-146 | src/prefect/futures.py:260-280 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dask/prefect_dask/task_runners.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd56f8f540061d061b5f29519e7dc7be33dc9aebf1c3ad45775a41a40fe2ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 33\u002B corresponding lines): src/integrations/prefect-github/prefect_github/mutations.py:36-68 | src/integrations/prefect-github/prefect_github/mutations.py:243-275 | src/integrations/prefect-github/prefect_github/mutations.py:363-395 | src/integrations/prefect-github/prefect_github/mutations.py:405-437 | src/integrations/prefect-github/prefect_github/mutations.py:447-479 | src/integrations/prefect-github/prefect_github/mutations.py:489-521 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/mutations.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9019fad45cd85f92270f1d747bdc56fdf2764df41a09853be0afddd586fef339"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/prefect/client/schemas/objects.py:500-516 | src/prefect/server/schemas/states.py:288-302 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/objects.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaedf59995b92f319aa4170042c864b12d4f3b741adf7a405318269bc984d1d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/concurrency/context.py:32-53 | src/prefect/concurrency/v1/context.py:32-56 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/concurrency/context.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"160124cc50c29b1e5bc9d9fd6e7037e650233de3c1e094820d6084b84ce1e848"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/prefect/flows.py:1842-1913 | src/prefect/tasks.py:1218-1245 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"src/prefect/flows.py"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7aaa522ba6e96df2ddc24388dc5e4e7034fa3d76d47233102730acfaa1e4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_132036_954db7517015_trigger_in_index.py:21-42 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_09_131832_2b6c2b548f95_trigger_in_index.py:22-39 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_132036_954db7517015_trigger_in_index.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98ba9e699693c7504d6e716bb308997ef5d7ac44e31103891b529c8ca6d8775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:479-505 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:409-440 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"68620db34ec2b1e3c531d93669d3acbdc8462d0d9205217e53384be252844ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/integrations/prefect-redis/prefect_redis/ordering.py:126-133 | src/integrations/prefect-redis/prefect_redis/ordering.py:136-143 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/ordering.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6e51f0a8d12624049a5fd1dfddb4e3e0872d25fb91e669c0acdc053bc04c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 33\u002B corresponding lines): src/prefect/client/orchestration/__init__.py:634-666 | src/prefect/client/orchestration/__init__.py:1036-1073 | src/prefect/client/orchestration/__init__.py:1887-1919 | src/prefect/client/orchestration/__init__.py:2078-2115 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"77029e551b2d606c27f9bd1ed36fd449920169ad5361929355cd00e1c2546f80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/concurrency/v1/_asyncio.py:27-57 | src/prefect/concurrency/v1/_asyncio.py:66-96 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/concurrency/v1/_asyncio.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dd279abfb3886d0175e32c966e363f65e16be6dfe31671ce482a219bad75c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/prefect/input/run_input.py:544-553 | src/prefect/input/run_input.py:655-665 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/input/run_input.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"247ebcfead725e580f936da7966af00ff70540ce0beeb281c96ca304bd89f0bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/locking/memory.py:212-223 | src/prefect/locking/memory.py:226-239 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/locking/memory.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9c675a376eae49b1323a3241516aef83bda9103f305055e8b38d517ed26097"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): src/integrations/prefect-dbt/prefect_dbt/core/_executor.py:611-655 | src/integrations/prefect-dbt/prefect_dbt/core/_executor.py:658-691 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"b848c949a28ee1520dbc68c3cf4b1e43c5c314bfd1514d2f8a5b50666a657f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): src/prefect/server/models/variables.py:93-107 | src/prefect/server/models/workers.py:145-166 | src/prefect/server/models/workers.py:657-686 | src/prefect/server/models/workers.py:950-967 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/variables.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a564cc1f1be74e4a0b6bde87608450cc12453e2194829e9f285ddc2cd8de878e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/integrations/prefect-github/prefect_github/mutations.py:284-314 | src/integrations/prefect-github/prefect_github/mutations.py:323-353 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/integrations/prefect-github/prefect_github/mutations.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01034550e71c7e0ee3f00060636bdd766029dfc8751afd75f29c58dd94e7e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/client/orchestration/__init__.py:987-1008 | src/prefect/client/orchestration/__init__.py:1708-1729 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"7641b85b75f4aacb8368c9904f1b9507ffd5b999409082fe6b66d53f60143d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/prefect/client/orchestration/_concurrency_limits/client.py:131-160 | src/prefect/client/orchestration/_concurrency_limits/client.py:592-621 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"72191a2d51042798fded0b7de532800b0a4ccdb63ca03cd17b8c728c6485b66e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:22-32 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_132409_bfe42b7090d6_clean_up_work_queue_migration.py:20-34 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a608c9efaf1235dedd436ef6a1400ccb3decce2a770c8db0b4a0803ac118530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/prefect/server/events/models/automations.py:448-468 | src/prefect/server/models/deployments.py:1160-1185 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/models/automations.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"9580ea5a3de3e7264301e80b22f51c94032498e6356560b7877db1e6313f5df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): src/prefect/server/schemas/filters.py:333-342 | src/prefect/server/schemas/filters.py:361-370 | src/prefect/server/schemas/filters.py:619-628 | src/prefect/server/schemas/filters.py:1477-1486 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"751ea597fa7c3c565dd56a4b7808d2d2259e5c60b0be6921fef303bf7be4e2f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 51\u002B corresponding lines): src/integrations/prefect-aws/prefect_aws/decorators.py:62-112 | src/integrations/prefect-azure/prefect_azure/decorators.py:61-111 | src/integrations/prefect-docker/prefect_docker/decorators.py:55-105 | src/integrations/prefect-gcp/prefect_gcp/decorators.py:62-112 | src/integrations/prefect-gcp/prefect_gcp/decorators.py:123-173 | src/integrations/prefect-kubernetes/prefect_kubernetes/decorators.py:61-111 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/decorators.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce39bb978e337d1e03ba76aa80b564c1f29fdf0a3d971ea489cf56bd27d4198"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:68-121 | src/integrations/prefect-aws/prefect_aws/s3.py:132-182 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1cb2e929096edf1dde556051bdc91dffade9252aa9362fa43b22b5dc69d3513"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/secret_manager.py:38-84 | src/integrations/prefect-gcp/prefect_gcp/secret_manager.py:147-193 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"src/integrations/prefect-gcp/prefect_gcp/secret_manager.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cee4bbd0fffaebac4be612f7f5ac6cb48cca70cba5fcef56c67c4c8cb03a9e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 34\u002B corresponding lines): src/integrations/prefect-github/prefect_github/mutations.py:83-132 | src/integrations/prefect-github/prefect_github/mutations.py:187-233 | src/integrations/prefect-github/prefect_github/mutations.py:533-566 | src/integrations/prefect-github/prefect_github/mutations.py:578-614 | src/integrations/prefect-github/prefect_github/mutations.py:628-668 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/mutations.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4106f76ce6e982c6a0487309babf545386739ff18c7bfd48fede6a80673edb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py:153-200 | src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py:789-836 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0321faa703c4e0465c5f6c8e7035fdda9db03f9c4721b5d89246aba43800e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 21\u002B corresponding lines): src/prefect/cli/work_pool.py:763-783 | src/prefect/cli/work_pool.py:793-813 | src/prefect/cli/work_pool.py:1003-1025 | src/prefect/cli/work_pool.py:1035-1055 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/work_pool.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0640b7296d05b3e610175baa449afad12f6e345bad99ee3e7c33da3b5e757af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 27\u002B corresponding lines): src/prefect/client/orchestration/_concurrency_limits/client.py:29-61 | src/prefect/client/orchestration/_concurrency_limits/client.py:490-522 | src/prefect/client/orchestration/_flows/client.py:45-71 | src/prefect/client/orchestration/_flows/client.py:205-231 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"95438b44622254ce814c8bb356402a37b526795b8f5d16828f0fcb81303977c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/prefect/flow_engine.py:803-826 | src/prefect/flow_engine.py:1545-1567 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"84523185447c1cc03914a0e548988c1e620e8e57da3f65455b1b93f2c6d1cef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): src/prefect/server/events/filters.py:128-139 | src/prefect/server/schemas/filters.py:214-225 | src/prefect/server/schemas/filters.py:1922-1931 | src/prefect/server/schemas/filters.py:2074-2083 | src/prefect/server/schemas/filters.py:2563-2571 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/filters.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd03a3277a804cbce7096e2d3374ec623737ef724eaf466ca5b7073116259cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 32\u002B corresponding lines): src/integrations/prefect-github/prefect_github/organization.py:662-698 | src/integrations/prefect-github/prefect_github/repository.py:750-790 | src/integrations/prefect-github/prefect_github/repository_owner.py:69-105 | src/integrations/prefect-github/prefect_github/user.py:807-843 | src/integrations/prefect-github/prefect_github/viewer.py:722-753 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a902adae572b106487de2000a07e42bbb46dded882954c8895005e531b9b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/integrations/prefect-shell/prefect_shell/commands.py:524-540 | src/integrations/prefect-shell/prefect_shell/commands.py:543-560 \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":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3eabeb1182571669bae37086012251481fe4586ed2b1c0eac52e2a7719c568"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/prefect/filesystems.py:308-321 | src/prefect/filesystems.py:325-338 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/filesystems.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa05c02590ebbdd4f3c4497d57367d075ef84f32041119caf6cecfd71de6e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/prefect/filesystems.py:341-353 | src/prefect/filesystems.py:357-369 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/filesystems.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e27879de21023283eb4b414cb68240b559ab87cbe20ce9319170b9dea789b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/prefect/input/run_input.py:310-326 | src/prefect/input/run_input.py:335-351 \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":"src/prefect/input/run_input.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"19730fa83e794199787e06a2bce9e8634455256cd3cb1957e0b948f735dcf534"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): src/prefect/server/schemas/filters.py:187-192 | src/prefect/server/schemas/filters.py:889-896 | src/prefect/server/schemas/filters.py:2537-2544 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fb662fab549dd5376435e7e7ddbe5618b39c5a6f3a24fcfc0edfb7d123b978"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:196-252 | src/integrations/prefect-aws/prefect_aws/s3.py:264-315 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49bbf4cab23ae33b55a0fe6ce792241fd566ae2d7528f85c324e178aafcd941"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/integrations/prefect-azure/prefect_azure/credentials.py:46-75 | src/integrations/prefect-gcp/prefect_gcp/credentials.py:47-74 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"src/integrations/prefect-azure/prefect_azure/credentials.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1262ff47dd95decd140a21fa5dd5db202ef4c09c9224f622966d25935cc7495d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py:1067-1094 | src/integrations/prefect-dbt/prefect_dbt/cloud/runs.py:164-242 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb5f588f3b02843d2b88a38c18f07399a009d2263232205e65421da592aa60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/secret_manager.py:257-297 | src/integrations/prefect-gcp/prefect_gcp/secret_manager.py:449-492 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"src/integrations/prefect-gcp/prefect_gcp/secret_manager.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a4c9acf7095c6027723a00d8d068eed5f59f28f7b5512fec46a14cb9e77742"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): src/integrations/prefect-snowflake/prefect_snowflake/database.py:839-895 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:906-962 \u2014 These two members are one piece of code written twice and then edited apart: 57 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":"src/integrations/prefect-snowflake/prefect_snowflake/database.py"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b680d6d9fd0f9d7b073b0a62979b834b435b101813be2125a80fe0043ef987"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/prefect/events/subscribers.py:176-190 | src/prefect/events/subscribers.py:193-210 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/subscribers.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"379f9ea2ee287a9add3c71d796812ac2c577e279d86f98d5bfaeab0eb719c074"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/prefect/flow_engine.py:940-958 | src/prefect/flow_engine.py:1681-1695 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afe066b3be5cfd925d19614a67254f5b71176f9ece966afbecca9a7449b062b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/prefect/server/events/stream.py:82-102 | src/prefect/server/logs/stream.py:151-183 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/stream.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"89830c389b0a72ae423846f5146cbb0315d2531b58387ad1b9ac5eabcda99ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/prefect/server/models/flows.py:90-116 | src/prefect/server/models/variables.py:136-152 | src/prefect/server/models/variables.py:159-175 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/flows.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16c02b486c43c00e35a9eceb5ec927309b4b165435fb67758b36282527965f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:2394-2451 | src/integrations/prefect-aws/prefect_aws/s3.py:2460-2515 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":2394}}}],"partialFingerprints":{"codehealthFindingId/v1":"2824f20b0bc905ac1f7ae922baad7fe9ead66187def6b99c88fb78d9245847dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/_internal/concurrency/waiters.py:143-153 | src/prefect/_internal/concurrency/waiters.py:261-276 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/concurrency/waiters.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0dd3dd6030132c83d6c0a78696fa6177f6045b5fc4a4e9376627531210ac6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/prefect/blocks/core.py:1052-1071 | src/prefect/blocks/core.py:1079-1096 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/core.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"8348fc5f535b3f15a86787979784154393a9fd73327d8da01fe35f80772640de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/prefect/client/orchestration/_deployments/client.py:528-550 | src/prefect/client/orchestration/_deployments/client.py:1242-1264 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0ad3b1842d67469c5e27eee9a7760c4a60619ec7a4e2a7971ffb8dec5610f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/prefect/flow_engine.py:2162-2175 | src/prefect/flow_engine.py:2186-2199 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":2162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc6ebbe559e8acc58d6be51467a21999729864bf4e7e02bc90f7fe286db9686"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/server/api/deployments.py:585-606 | src/prefect/server/api/flow_runs.py:615-642 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"0534fe0e7d831f4e3ddad508c63709274c05f37f953d77ad6769a079867c5d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2023_10_30_075026_cef24af2ec34_add_block_type_name_to_block_document.py:20-47 | src/prefect/server/database/_migrations/versions/sqlite/2023_10_30_103720_22ef3915ccd8_index_and_backfill_block_type_name.py:20-39 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_10_30_075026_cef24af2ec34_add_block_type_name_to_block_document.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef712aca7d3d4a3114cef24d754f540cc952cbe8ae2ed35a04b74367b0ca88b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:2025-2074 | src/integrations/prefect-aws/prefect_aws/s3.py:2080-2128 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":2025}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cf94349167c8addcbb18886eed9e41014e9db290212f018132cda8d3085b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 29\u002B corresponding lines): src/integrations/prefect-github/prefect_github/organization.py:189-222 | src/integrations/prefect-github/prefect_github/repository.py:802-840 | src/integrations/prefect-github/prefect_github/user.py:275-308 | src/integrations/prefect-github/prefect_github/viewer.py:244-272 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"02dcd3dc115df75641d239e55f02666b6d105d59e398827aae12b996e358f214"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 29\u002B corresponding lines): src/integrations/prefect-github/prefect_github/organization.py:558-591 | src/integrations/prefect-github/prefect_github/repository.py:1289-1327 | src/integrations/prefect-github/prefect_github/user.py:595-628 | src/integrations/prefect-github/prefect_github/viewer.py:534-562 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bb646f49d20f455a4c426c6e275f87fee18ce204f12183c580fbf7eef50d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 29\u002B corresponding lines): src/integrations/prefect-github/prefect_github/organization.py:766-799 | src/integrations/prefect-github/prefect_github/repository.py:1950-1989 | src/integrations/prefect-github/prefect_github/user.py:965-998 | src/integrations/prefect-github/prefect_github/viewer.py:862-890 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b018727d00700f4cf904f684f08011cb3818283f8c6de70a87b0c79e69d81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/integrations/prefect-github/prefect_github/user.py:67-100 | src/integrations/prefect-github/prefect_github/viewer.py:60-88 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"703b55e1a5da43a1d2e3dfd3903e4d7409c6e595d7d6857dba148d8b41cba633"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/integrations/prefect-github/prefect_github/user.py:1302-1335 | src/integrations/prefect-github/prefect_github/viewer.py:1163-1191 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c369817df5db436ad83a5df5a80a88072653a7ab2fcfe4911c50f2bf43adc22d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): src/prefect/client/orchestration/_deployments/client.py:208-230 | src/prefect/client/orchestration/_deployments/client.py:233-255 | src/prefect/client/orchestration/_deployments/client.py:921-943 | src/prefect/client/orchestration/_deployments/client.py:946-968 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92923285fc327800242c2e36725ef29e0b3637f2661676f07be3c06dfa2b098"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): src/prefect/server/events/actions.py:786-812 | src/prefect/server/events/actions.py:1238-1262 | src/prefect/server/events/actions.py:1787-1811 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/actions.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae60ae2c0bb68208ff427fa2a800b71003bbca39c2dc2605c4743483c1ae21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/prefect/settings/sources.py:260-271 | src/prefect/settings/sources.py:339-348 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/settings/sources.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee31a8f1d815f85e1eed08ac6068018dbed54f23a81aa38ea6363c32df4252d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): src/prefect/client/orchestration/__init__.py:763-792 | src/prefect/client/orchestration/__init__.py:2016-2045 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade12407f770481173196d431e7110a1fdc663df1c50bca6b59ef39aa41c06e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/prefect/client/orchestration/_artifacts/client.py:80-98 | src/prefect/client/orchestration/_artifacts/client.py:186-204 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"src/prefect/client/orchestration/_artifacts/client.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6726dcd35bfbc32c6b4b654c9fe123cac4494cd46ba3ab100489fc042381feaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/futures.py:379-389 | src/prefect/futures.py:512-522 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/futures.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd73f1c1192434ed1984cb5c9f3ccc91b97fc9a3cbc554c598224f6989cbf4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/prefect/server/api/block_types.py:107-129 | src/prefect/server/api/block_types.py:137-152 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/block_types.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ff7c36896cf92cda28840e155d454837a6adc9a3298eae7f1475e431c73ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/server/models/storage_defaults.py:80-90 | src/prefect/server/models/storage_defaults.py:97-107 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/storage_defaults.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea8027469b552cbcabfaeb758381822491039683261e712de74baeaddd7a7c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 6\u002B corresponding lines): src/prefect/server/schemas/filters.py:161-166 | src/prefect/server/schemas/filters.py:271-276 | src/prefect/server/schemas/filters.py:863-868 | src/prefect/server/schemas/filters.py:1166-1171 | src/prefect/server/schemas/filters.py:1890-1895 | src/prefect/server/schemas/filters.py:2511-2516 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ee736c073694e4f3470867e4e410a0cdc145dda741298fb339e76877f77112"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:518-530 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:555-564 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa14c64259432ab30c38854e4104643ab8782ba35156c493ffbbae06b514bcef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/integrations/prefect-github/prefect_github/repository.py:63-82 | src/integrations/prefect-gitlab/prefect_gitlab/repositories.py:104-118 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/repository.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f33b363f1e8629adea6f239d93c075cd2d8c3b0af6c1fcf627d43e219a15df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/integrations/prefect-redis/prefect_redis/lease_storage.py:303-315 | src/integrations/prefect-redis/prefect_redis/lease_storage.py:318-329 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/lease_storage.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4327c7abe976661d8d0a0c79bbd33b33da2361c07878bba65427c1fb5835aa57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/prefect/client/orchestration/_blocks_schemas/client.py:44-61 | src/prefect/client/orchestration/_blocks_types/client.py:79-95 | src/prefect/client/orchestration/_flow_runs/client.py:208-228 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_blocks_schemas/client.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"457601533f73fcf8b46defc5c1d1d3d34219106bdcf84e8078f7485ea34b02e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/prefect/server/models/concurrency_limits_v2.py:166-174 | src/prefect/server/models/saved_searches.py:105-125 | src/prefect/server/models/work_queues.py:330-352 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/concurrency_limits_v2.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8917f9e7d4da06809336b29f0dfa7595713e8b83f33d03335d5f5f0c3fcc31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): src/prefect/client/orchestration/_blocks_documents/client.py:65-83 | src/prefect/client/orchestration/_blocks_documents/client.py:223-241 | src/prefect/client/orchestration/_blocks_types/client.py:100-120 | src/prefect/client/orchestration/_blocks_types/client.py:280-300 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"405eab57ff178292a45bf285f5c4b2856637e66b2e16feb82e18704a1ba407bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/prefect/client/orchestration/_flow_runs/client.py:420-445 | src/prefect/client/orchestration/_flow_runs/client.py:948-973 \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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe205a315fc7c78f61ec9ead700d5ef6582278c9e08bf4d40255c4dfa7998be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/prefect/client/orchestration/_flow_runs/client.py:479-499 | src/prefect/client/orchestration/_flow_runs/client.py:1007-1028 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"8add6921cc1d8b0171514e601933dd1ff2bdc1caf2899964e4e5ad808323a08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/prefect/filesystems.py:474-493 | src/prefect/filesystems.py:499-516 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/filesystems.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"9845df74d4a74b5d1f4403863f8d8ea8f5c9a571b8f8c76f2741ea3c7790a0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): src/prefect/flow_engine.py:931-937 | src/prefect/flow_engine.py:1670-1678 | src/prefect/task_engine.py:797-803 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6b3f641ccec550f681eb38ce77b633b4302c311dc0c978963721e883ca8264"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2025_04_04_092158_7a73514ca2d6_add_ix_events__event_related_occurred_.py:19-40 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_04_092158_7a73514ca2d6_add_ix_events__event_related_occurred_.py:44-67 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2025_04_04_092158_7a73514ca2d6_add_ix_events__event_related_occurred_.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d300df67c08f2fa780b8d4d2fa051e620826d013eb847e19a8ab395e2ecf52c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py:333-356 | src/prefect/workers/base.py:338-359 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51c700ca803cd0a1b79bd16bf5fffc9c4ae78bcf982dafb800c15d2a13bf622"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): src/integrations/prefect-github/prefect_github/organization.py:1010-1039 | src/integrations/prefect-github/prefect_github/user.py:1209-1238 | src/integrations/prefect-github/prefect_github/viewer.py:1082-1106 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"978b3c461c87ffa0036374a1dbcca12c1880391ad1355d60112907da7c1cd57e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): src/integrations/prefect-github/prefect_github/organization.py:1276-1304 | src/integrations/prefect-github/prefect_github/user.py:1755-1783 | src/integrations/prefect-github/prefect_github/viewer.py:1568-1591 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e394d6f6525f045fec67423b5dd10ba0bcdc16afe31bd1c6bdd7ed9a69e0b1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): src/integrations/prefect-github/prefect_github/organization.py:1504-1532 | src/integrations/prefect-github/prefect_github/repository.py:3118-3151 | src/integrations/prefect-github/prefect_github/user.py:1925-1953 | src/integrations/prefect-github/prefect_github/viewer.py:1720-1743 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1504}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe327a28abe0a20d794262a8767c48845620c1ea65b9a50638c1ad2821a5603"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): src/integrations/prefect-github/prefect_github/organization.py:2036-2066 | src/integrations/prefect-github/prefect_github/user.py:2482-2512 | src/integrations/prefect-github/prefect_github/viewer.py:2223-2250 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":2036}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6d02468265d38b3c424f15d6c878ad703f7e711d358a8aa42c4ee186194944"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): src/integrations/prefect-github/prefect_github/organization.py:2075-2104 | src/integrations/prefect-github/prefect_github/user.py:2521-2550 | src/integrations/prefect-github/prefect_github/viewer.py:2258-2284 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":2075}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a605f6e98e5ca1d494770b3dd4b9da8f4cd05f3d39f05b1ad517b7c7bcecfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/integrations/prefect-github/prefect_github/user.py:237-265 | src/integrations/prefect-github/prefect_github/viewer.py:212-235 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02578d3e5630f07f66845f6f7c4cad26e1e854181cfe7754168f2121cb13f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/prefect/_sdk/renderer.py:454-486 | src/prefect/_sdk/renderer.py:490-513 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_sdk/renderer.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3257ae0db52d3a53f885ccd3ff1f78f10cc62c15581894a3954f0274cd9a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 14\u002B corresponding lines): src/prefect/client/orchestration/_blocks_schemas/client.py:19-39 | src/prefect/client/orchestration/_blocks_schemas/client.py:113-133 | src/prefect/client/orchestration/_blocks_types/client.py:58-76 | src/prefect/client/orchestration/_blocks_types/client.py:238-256 | src/prefect/client/orchestration/_concurrency_limits/client.py:365-378 | src/prefect/client/orchestration/_concurrency_limits/client.py:826-840 | src/prefect/client/orchestration/_variables/client.py:22-44 | src/prefect/client/orchestration/_variables/client.py:101-116 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_blocks_schemas/client.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc21a72ec32f5c85ac16cbcf8b81458a5833b18b11127a4d95a997c14fa60b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/prefect/client/orchestration/_concurrency_limits/client.py:383-395 | src/prefect/client/orchestration/_concurrency_limits/client.py:845-857 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"8238cc014d985966fd36f1be58ed865d75da0e0b2af4f122614e0b028d7e562d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/prefect/server/events/schemas/automations.py:135-165 | src/prefect/server/events/schemas/automations.py:468-508 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"src/prefect/server/events/schemas/automations.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"48973925a1a210a943625a83239326f6840d41f0a70c201adac39c02237ce965"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): src/integrations/prefect-github/prefect_github/repository.py:207-237 | src/integrations/prefect-github/prefect_github/user.py:2224-2266 | src/integrations/prefect-github/prefect_github/viewer.py:1989-2026 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/repository.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5377d9f2a21c763d25f74968275bbe6e850d12a8171ea0b2b987dd0de192eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/prefect/client/orchestration/_flow_runs/client.py:233-257 | src/prefect/client/orchestration/_flow_runs/client.py:761-785 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3254b0cf415d3b39c2048a6f7ca93db248ab5ec84936d8e20d8a0c2cff18a38e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/prefect/events/clients.py:521-535 | src/prefect/events/clients.py:538-555 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/clients.py"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf5f1f9d215b8d4700298afff3edffff9cbf1424c299645f759a3a8db0cc997"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/runner/_workspace_resolver.py:190-201 | src/prefect/runner/_workspace_runtime_bootstrap.py:72-83 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/_workspace_resolver.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1656dcb835d0fdb1ff2f4c831a3ff63c2b8a5f7fb6d8efdeeff3dadb8eb197"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): src/prefect/server/api/artifacts.py:29-46 | src/prefect/server/api/flows.py:31-46 | src/prefect/server/api/saved_searches.py:26-45 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/artifacts.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bf1611a5400bdfcbcf039be74ce5733c3e7263cd3f8e421d544757a6a3859f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/prefect/server/utilities/database.py:440-444 | src/prefect/server/utilities/database.py:544-549 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/database.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92bbbc14236b4ac1f417f3b74b79d1e8012099691db5ddf9a89087939cb0fa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:1056-1078 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:170-197 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a0966d3d428ed8667e9bab2676b0f0df09e0fbcc2f37e68eb54910f1c68d07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1842-1888 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:2149-2198 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":1842}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b7fc8cc7c1c965ac90f3a9374f6f42e728836922404d3eb4e4b0599daac0ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 21\u002B corresponding lines): src/prefect/client/orchestration/__init__.py:672-692 | src/prefect/client/orchestration/__init__.py:698-718 | src/prefect/client/orchestration/__init__.py:1825-1853 | src/prefect/client/orchestration/__init__.py:1925-1945 | src/prefect/client/orchestration/__init__.py:1951-1971 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba280e8656ed53d3209f85952acba14ebf271decea882775e932120ee6a6646"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/prefect/server/api/workers.py:1073-1092 | src/prefect/server/api/workers.py:1106-1123 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/workers.py"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"552582265b138a87efc766f8b620ae0f291bb9f698f1a78752cb8a646660e3d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/prefect/server/events/storage/database.py:52-57 | src/prefect/server/events/storage/database.py:64-69 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/storage/database.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24e1c19a09e07e55b523941d9d8e94d23353c76ae2c1598c4092e94f8bdd98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/utilities/processutils/__init__.py:443-453 | src/prefect/utilities/processutils/__init__.py:461-473 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/processutils/__init__.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d157781ed6172b5a673b601c110b927c50630760dd603a85dca7be48df220fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 34\u002B corresponding lines): src/integrations/prefect-docker/prefect_docker/containers.py:81-115 | src/integrations/prefect-docker/prefect_docker/containers.py:124-157 | src/integrations/prefect-docker/prefect_docker/containers.py:166-199 | src/integrations/prefect-docker/prefect_docker/containers.py:208-241 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/containers.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d012ce2775bcb4e306dfa28490ba56ce559288d572ffe5da7ac023274fe09d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/prefect/client/orchestration/_variables/client.py:47-59 | src/prefect/client/orchestration/_variables/client.py:119-133 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_variables/client.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c424831ccd16c90a02bb9519246f5a0ec01d4d4a5bef89cd8f83095e942c2596"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/prefect/client/orchestration/_work_pools/client.py:236-254 | src/prefect/client/orchestration/_work_pools/client.py:563-581 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"src/prefect/client/orchestration/_work_pools/client.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d14bb757bb40ca7d425052d7902a5b85f76e37022b756200f46a8756ca0982c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/server/events/models/composite_trigger_child_firing.py:104-114 | src/prefect/server/events/models/composite_trigger_child_firing.py:140-157 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/models/composite_trigger_child_firing.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c31fff212171514b1cbb5c90d925059773040c12412b902d9ceff31c43956d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/prefect/server/schemas/filters.py:101-106 | src/prefect/server/schemas/filters.py:1136-1141 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d487a87f79692f5471f63995db18d6ae8571e7f8cd1c566b71deac79bcae74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): src/prefect/server/schemas/filters.py:241-246 | src/prefect/server/schemas/filters.py:386-391 | src/prefect/server/schemas/filters.py:407-412 | src/prefect/server/schemas/filters.py:644-649 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a4f1f9a897ea43fca42c08c326bb9d85ec67cf57d32bdba793d8c49b2c7490"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/prefect/server/schemas/filters.py:2282-2287 | src/prefect/server/schemas/filters.py:2431-2436 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":2282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d6f48d871908c90363164026400c40927cc513dc9e8f1b0600850b7a82457b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/prefect/runner/_hook_runner.py:68-82 | src/prefect/runner/_hook_runner.py:85-99 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/_hook_runner.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1d6eeb80cbcb0edd660f48b9f592c93374af06bcf9d126baa0708a001a4693"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/task_engine.py:768-779 | src/prefect/task_engine.py:1433-1445 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5fe22ac6131817643364eff1f9dc0ae4eb9ed8faf7a1bf3e81d7fe5c107ef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/integrations/prefect-snowflake/prefect_snowflake/database.py:217-255 | src/integrations/prefect-gcp/prefect_gcp/bigquery.py:1081-1092 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-snowflake/prefect_snowflake/database.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"d916a89f87760e12501e625bb221303579ac46e00ca8d98bed7b70196dd10378"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 52\u002B corresponding lines): src/integrations/prefect-snowflake/prefect_snowflake/database.py:323-374 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:455-517 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:562-614 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 52 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-snowflake/prefect_snowflake/database.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"52014d8fe9225cad2be25d3e742a65170994c8c542bcccf204dd9370aaba403e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): src/integrations/prefect-snowflake/prefect_snowflake/database.py:703-742 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:749-788 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-snowflake/prefect_snowflake/database.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7ea830b9256b1c8d0c3ae8a3b69837dcc9a8278bb49fc6ec761d1dc49f7065"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/prefect/_internal/concurrency/api.py:137-146 | src/prefect/_internal/concurrency/api.py:189-198 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/concurrency/api.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f67a2bed9c9ca4de402f82264133c2b14ba6e01a9ba44f658b3c5fe91987dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/context.py:315-326 | src/prefect/context.py:378-389 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/context.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ed899a067e3bf8a1dff919869dc1a45677dcf9661542c96d453759ed3eee49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/prefect/input/run_input.py:223-239 | src/prefect/input/run_input.py:244-260 \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":"src/prefect/input/run_input.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"093fe8d5b6c94bc6e03d8aa8250287bd0ed1f65a05bc9269a24068d90533abd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 44\u002B corresponding lines): src/integrations/prefect-aws/prefect_aws/s3.py:330-421 | src/integrations/prefect-aws/prefect_aws/s3.py:434-522 | src/integrations/prefect-aws/prefect_aws/s3.py:536-584 | src/integrations/prefect-aws/prefect_aws/s3.py:596-639 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 44 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"d878005b3b5b7118f068afd000d6fca6e0debf5ab66ea215f9192beffecf8e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): src/integrations/prefect-snowflake/prefect_snowflake/database.py:264-314 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:384-445 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"src/integrations/prefect-snowflake/prefect_snowflake/database.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94ceacb43efd704698fae0336686d4af3e4fc0669697ec4d803c6514f2feab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/prefect/artifacts.py:128-149 | src/prefect/artifacts.py:156-178 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/artifacts.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c2d7e515aa3c105633cba6da958246b5e52d6fbb39cec80570c27f0a717394"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/prefect/client/orchestration/__init__.py:896-912 | src/prefect/client/orchestration/__init__.py:1635-1651 | src/prefect/server/api/clients.py:267-283 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ddcfb6c754fb03f8ad74d0a49d19f8232064590f0df785b3d33fd4df8fe93af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): src/prefect/client/orchestration/_concurrency_limits/client.py:414-427 | src/prefect/client/orchestration/_concurrency_limits/client.py:876-889 | src/prefect/client/orchestration/_work_pools/client.py:122-145 | src/prefect/client/orchestration/_work_pools/client.py:450-473 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b28538d7e02e1656cdb95f1084d208bf414e079db7fea50aef8165fac20cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/prefect/server/events/stream.py:57-77 | src/prefect/server/logs/stream.py:67-96 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/stream.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30b9a5e96de05791a8bbe3b6b7c528ff6606a46ca2eef346ac0f6b7ffa4575b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/prefect/states.py:747-759 | src/prefect/server/schemas/states.py:320-334 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/states.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d87d17ddfb81119e1d270eae1730f3ce31ccaffa95a8951fa53637686a8ae90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/integrations/prefect-snowflake/prefect_snowflake/database.py:623-655 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:664-696 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"src/integrations/prefect-snowflake/prefect_snowflake/database.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c646044bcaa1fbd59fb507974ecaa8846b201e01a78a512a04b881b6ef64578"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): src/prefect/server/schemas/filters.py:541-546 | src/prefect/server/schemas/filters.py:570-575 | src/prefect/server/schemas/filters.py:1057-1062 | src/prefect/server/schemas/filters.py:1438-1443 | src/prefect/server/schemas/filters.py:2142-2147 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bf93235146eaf1e07992aae9bc7e34e0da6f32509acc08129dad2f49abce03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/server/schemas/responses.py:321-331 | src/prefect/server/schemas/responses.py:535-546 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/responses.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23cf621deebd86509795e1889fe5d4ed8b8883782ba0d1ad63f93106a6fcd24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/integrations/prefect-aws/prefect_aws/bundles/upload.py:83-100 | src/integrations/prefect-aws/prefect_aws/bundles/execute.py:141-149 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/bundles/upload.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cc5963177912dcea545e61afac20c7faf822d9872be8090674b24ed70249bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/cli/deploy/_triggers.py:33-44 | src/prefect/deployments/runner.py:748-766 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deploy/_triggers.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"395148454c5eb6f7ec8791803b7cfee483aecedf0485a9ba1559f259803c5cd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/prefect/events/schemas/automations.py:454-469 | src/prefect/events/schemas/deployment_triggers.py:115-131 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/schemas/automations.py"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a603ed6e08a0b46f6118c63aef9a80a19fce6ebfaa67769a37cf0ff007558d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 14\u002B corresponding lines): benches/bench_count_flow_runs.py:73-86 | src/prefect/server/models/artifacts.py:390-411 | src/prefect/server/models/artifacts.py:424-445 | src/prefect/server/models/block_documents.py:495-509 | src/prefect/server/models/deployments.py:639-669 | src/prefect/server/models/flows.py:276-304 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/bench_count_flow_runs.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cad620de7d802fe4c57ba41bc286cf05f6ef303e3268997015f856afc7112f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/prefect/server/models/workers.py:208-224 | src/prefect/server/models/workers.py:264-277 | src/prefect/server/models/workers.py:1192-1200 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/workers.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc35542f936d66c4b5584db4084e5a7831fd8204860d03fcee2ed98a550825d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/integrations/prefect-github/prefect_github/repository_owner.py:33-58 | src/integrations/prefect-github/prefect_github/viewer.py:31-51 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/repository_owner.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f50920f314456f0c4b418f26e50fe5e1e033031a6b6b4a9e04bc46920951db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/prefect/client/orchestration/_blocks_types/client.py:211-235 | src/prefect/client/orchestration/_blocks_documents/client.py:305-334 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"src/prefect/client/orchestration/_blocks_types/client.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b13a36af18ee4298b5271345d646469f2ccd4e9d9006317d0871f0576624c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/prefect/server/api/events.py:201-218 | src/prefect/server/api/events.py:229-245 \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":"src/prefect/server/api/events.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2685ccdc18e72a5d2960289815a50939bc528ee4638241c0c35bf04e883397"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/prefect/client/orchestration/_blocks_documents/client.py:148-177 | src/prefect/client/orchestration/_blocks_types/client.py:31-55 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa8d947b8fe286dac4b6bbc8476d4da5d5244b16172b928066882e00e90967b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): src/prefect/server/api/deployments.py:533-546 | src/prefect/server/api/flow_runs.py:393-404 | src/prefect/server/api/ui/task_runs.py:187-198 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b48f1cdf6c55a38a3d12d4354b1e928811eb31416abd7a282ad827b5a7e6404"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/prefect/server/api/artifacts.py:100-114 | src/prefect/server/api/task_runs.py:205-218 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/artifacts.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7e9721d857481514743d9941579d459e837ea4c85176c8a305dffaef35f6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src/prefect/server/events/models/automations.py:106-113 | src/prefect/server/models/variables.py:116-126 | src/prefect/server/models/workers.py:696-705 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/models/automations.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bab7fe40c8ebee7132370d1fdd5c0c02b95954dd0e9fcaf0056a736d3ba7cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/server/events/stream.py:169-179 | src/prefect/server/logs/stream.py:254-267 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/stream.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb9fe1761f94f5480b3ce13ad2b26e73a95bb02ed32568fba69fa39a61b290b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/integrations/prefect-databricks/prefect_databricks/rest.py:57-74 | src/integrations/prefect-github/prefect_github/utils.py:50-66 \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":"src/integrations/prefect-databricks/prefect_databricks/rest.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eacc0d37c695fb19a733d5aee6267b1ca9f44b354f79d29e7425ccfd9bba21b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/client/orchestration/_flow_runs/client.py:716-733 | src/prefect/client/orchestration/_variables/client.py:162-173 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"119f5b141475bc451098017160bc2bbc5f27935b51d13cc64a7294dc98aae35b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/prefect/server/api/artifacts.py:200-210 | src/prefect/server/api/variables.py:137-144 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/artifacts.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddc03972f48bd707d60842d022205c61ee5ad9bb38f277f617babe320b43dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): src/prefect/server/api/flows.py:55-65 | src/prefect/server/api/task_runs.py:101-109 | src/prefect/server/api/workers.py:1323-1337 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/flows.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7067702e5a83a0a683a5954d2f9fbc9c74bdfdaab62d1bab3d6ade0e07e5bbcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2022_06_29_152219_2f46fc3f3beb_remove_name_column_for_notification_.py:29-33 | src/prefect/server/database/_migrations/versions/sqlite/2022_06_29_151832_42762c37b7bc_remove_name_column_for_notification_.py:29-35 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_06_29_152219_2f46fc3f3beb_remove_name_column_for_notification_.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e865c6d453ef50566a8870f6c0fcb88a41ec0727080486486282412ee698bf5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/prefect/client/orchestration/_flow_runs/client.py:190-205 | src/prefect/client/orchestration/_variables/client.py:84-96 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd6d56f1975a9ea213fda7e766aa8f83470c03775f8ff10fd76f167f687efaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/prefect/concurrency/asyncio.py:92-122 | src/prefect/concurrency/sync.py:89-117 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"src/prefect/concurrency/asyncio.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0051c61b4b45f3a9060ec9df5d4af40fe7a0a6bc54b8d72b2ef3ab8fa626a725"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): src/prefect/server/api/deployments.py:554-567 | src/prefect/server/api/flows.py:96-105 | src/prefect/server/api/saved_searches.py:53-64 | src/prefect/server/api/task_run_states.py:27-40 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"898918d8d6239cc66affae38c8b11b7542b4e85b97ccb8787d0390c1ba6abdc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/prefect/server/api/artifacts.py:220-229 | src/prefect/server/api/variables.py:153-160 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/artifacts.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72f88671294ad11050f461fe8e1e1f5114f887177628a8061ad9b861e619cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): src/prefect/concurrency/asyncio.py:34-83 | src/prefect/concurrency/sync.py:32-80 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"src/prefect/concurrency/asyncio.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1652407ab19194836dbb139b1734d8fe29e7a9455d67b5c4fe39088bb20219"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/prefect/client/schemas/responses.py:305-316 | src/prefect/server/schemas/responses.py:334-345 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/responses.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6239e45a75fb28df4d9f9b02b4def108ed8d2e811454b10ee7d880f1d6e574f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/prefect/server/api/block_schemas.py:152-158 | src/prefect/server/api/flow_run_states.py:27-40 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/block_schemas.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21fdf1ef1f15270e3fe3ff726351508361de9c8561e638e0462293ba37f7913"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_143502_b5f5644500d2_add_storage_configuration_to_work_pool.py:22-32 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_142603_3457c6ca2360_add_storage_configuration_to_work_pool.py:22-32 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_143502_b5f5644500d2_add_storage_configuration_to_work_pool.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cd02ed6e0c63684f1a4868269a424fb6ab180a5e90c6375e80e849f9800975"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/prefect/client/cloud.py:199-218 | src/prefect/client/orchestration/base.py:50-53 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/cloud.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e825df794bdb48d2285273f1e21ef3a473f15a5247cada1d046ac90188234ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/prefect/server/orchestration/core_policy.py:124-152 | src/prefect/server/orchestration/global_policy.py:71-96 \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":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"994a3aec876dbb5a8fb3e603cc61d3be815875cd177fb743e798f8bc489189d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/server/orchestration/core_policy.py:167-189 | src/prefect/server/orchestration/global_policy.py:114-124 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3960c0a876ac6fc53d57bafb83eec135d5711b50d428dca6c6182347385ec72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/prefect/server/events/stream.py:41-50 | src/prefect/server/logs/stream.py:42-60 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/stream.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16ff6b87c9500aa76b8214d43a9a718f1b45274d8cd41a92cde73faea358d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/prefect/server/api/task_runs.py:120-130 | src/prefect/server/api/ui/task_runs.py:172-179 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/task_runs.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0faa54ed4ceae363503ccbf5384122164bef477a9c607b8b17dc419af6cc890"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/prefect/flow_engine.py:702-712 | src/prefect/task_engine.py:362-372 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd48dddfbbd488396f4017559bf782ab8ad728338bb524227d0c15eeee5b14f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): src/prefect/server/models/artifacts.py:183-190 | src/prefect/server/models/concurrency_limits.py:106-116 | src/prefect/server/models/variables.py:60-67 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/artifacts.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8bf6f20e5036ae7f634ac64c277f7de3c09c64c0b05072695ec62c5021d327"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/integrations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py:231-248 | src/integrations/prefect-gcp/prefect_gcp/utilities.py:211-214 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31905c83d71551826ade1ab0b035c6b9c9881fa8163ac913883c9a1833ad926"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/prefect/_experimental/bundles/__init__.py:53-68 | src/prefect/_experimental/bundles/execute.py:28-40 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_experimental/bundles/__init__.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86842bf4905e3a61a869091daa09540919ad52536e42725ebc1657d9210c4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2022_08_06_145817_60e428f92a75_expand_deployment_schema_for_improved_ux.py:48-51 | src/prefect/server/database/_migrations/versions/sqlite/2022_08_06_130009_296e2665785f_expand_deployment_schema_for_improved_ux.py:48-51 | src/prefect/server/database/_migrations/versions/sqlite/2024_05_01_103824_20fbd53b3cef_add_catchup_fields_to_deploymentschedule.py:31-34 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_08_06_145817_60e428f92a75_expand_deployment_schema_for_improved_ux.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5716a800c0c2297bb166b53f653dbb32f65028e415d7423cc4ed299313eeb78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): src/prefect/server/database/_migrations/versions/sqlite/2023_03_15_123850_cf1159bd0d3c_add_artifact_description_col.py:29-34 | src/prefect/server/database/_migrations/versions/sqlite/2023_04_05_120713_340f457b315f_add_column_to_deployments_for_pull_steps.py:28-31 | src/prefect/server/database/_migrations/versions/sqlite/2023_09_06_084729_c2d001b7dd06_.py:31-36 | src/prefect/server/database/_migrations/versions/sqlite/2023_10_12_175815_f3165ae0a213_add_last_polled_to_deployment.py:37-42 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2023_03_15_123850_cf1159bd0d3c_add_artifact_description_col.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6a9afa3d8992f08073f0c44262cd0b723ac2ce35651514b62a2be7ff636010"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/prefect/events/filters.py:233-236 | src/prefect/server/events/filters.py:502-505 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/filters.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"6789213805b2bd703560bde6cd34eaa00650bf90b35fc5bd47d86d5f8f930f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/prefect/events/schemas/events.py:255-258 | src/prefect/server/events/schemas/events.py:301-304 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/schemas/events.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa6f0a2ab53ef85e683e57ce3f29f7d3be10793cefe1210d6fd6949e5973362"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:1674-1677 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:820-823 | src/integrations/prefect-sqlalchemy/prefect_sqlalchemy/database.py:650-653 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e75dea2e6acbc3629eae5980f385b3bda38473496eb89d946e813763f9f2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/prefect/client/orchestration/_automations/client.py:208-215 | src/prefect/client/orchestration/_flow_runs/client.py:1082-1092 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_automations/client.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fd9ef8dd01365f85374affd47b1666d42f7523d9a8c3b6ac0357069095ff72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/prefect/server/models/concurrency_limits_v2.py:129-136 | src/prefect/server/models/variables.py:37-53 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/concurrency_limits_v2.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f343d4de8802a0b20b1f571c8ce1ffea794ad2a459b5cb3d66b231247d8c0ca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/prefect/_internal/analytics/milestones.py:67-73 | src/prefect/_internal/analytics/notice.py:33-39 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/analytics/milestones.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8cbc1e5b995732b43fca9c311a3dfaab5feb383a3e3c0891312ab0c7c8f591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (132 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py:21-152 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.py:21-152 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.py\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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.py:156\u0060 calls \u0060get_bind\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py:157\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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce555c0f13a0cba80e0d593678b582a553598d09c18b6123304dc7273766241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (94 lines \u00D7 2): src/prefect/flows.py:1208-1301 | src/prefect/flows.py:1335-1428 \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":"src/prefect/flows.py"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd98719efa1981e9124f7bc1dc49be5aa0bd205f79d2849538db88c0885d64cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (92 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:76-167 | src/prefect/client/orchestration/_deployments/client.py:783-874 \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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7d1ccaba6795d7090df6a326b79cfb786767748a06308d5bde9a921be1d828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (83 lines \u00D7 2): src/prefect/deployments/runner.py:1649-1731 | src/prefect/deployments/runner.py:1890-1972 \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 \u0060src/prefect/deployments/runner.py:1649\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":"src/prefect/deployments/runner.py"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a19b374d34b5bb8d99c5b4d434a15924dcbc00aa5984b4c82232fd43985b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76 lines \u00D7 2): src/prefect/deployments/runner.py:1570-1645 | src/prefect/deployments/runner.py:1811-1886 \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":"src/prefect/deployments/runner.py"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe66233fbc39f05c5959751166a7a0b02ab47b919ce6fff4c199c16fd950e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70\u201375 lines \u00D7 2): src/prefect/deployments/flow_runs.py:65-134 | src/prefect/deployments/flow_runs.py:258-332 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fdb93292943fefc7e527d78ab1be39e5b1264ca2a1069d248fd557a9d46db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:55-122 | src/prefect/server/database/_migrations/versions/sqlite/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:57-124 \u2014 \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 162 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:55\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":"src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"59556bef88e95f135d36b5eee82cd7c85d533a0673cc2da40c9d3177e793f8f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): src/prefect/flow_runs.py:514-580 | src/prefect/flow_runs.py:643-709 \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":"src/prefect/flow_runs.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a36f8106cacaeb2c58a03f4d1e4f692858bbdec34d73f2ca04e942bf7740cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2): src/prefect/deployments/runner.py:1733-1798 | src/prefect/deployments/runner.py:1974-2039 \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 \u0060src/prefect/deployments/runner.py:1733\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":"src/prefect/deployments/runner.py"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b36d0a5f3bcda5e598df032bf180ac5f08665add28f989d27b21c2575175e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (136 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:22-157 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:22-157 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 279 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":"src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4195949f9cff051fe558470b4ad6faf0e8c0eabf6b853d634a5db89fa6adff18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:577-641 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:670-734 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:577\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fea3664e3d87199545adbad13d04eea06e7884d52ea0d3a64b4f66b3ca2198a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py:172-235 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.py:171-234 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.py\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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py:169\u0060 calls \u0060get_bind\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_105442_1678f2fb8b33_work_queue_data_migration.py:168\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_110543_f98ae6d8e2cc_work_queue_data_migration.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb65100291abb9c2c262a4f9a97b16766391d2f839910309688b0d7bc2f87d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201363 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:114-128 | src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:167-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cli/commands.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af630125a63e22d422b4b46325e9a9248eaf2262707476027cd2e944211d836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): src/integrations/prefect-snowflake/prefect_snowflake/database.py:975-1037 | src/integrations/prefect-snowflake/prefect_snowflake/database.py:1060-1122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: \u0060SnowflakeCredentials\u0060 names \u0060prefect_snowflake\u0060 in one and \u0060prefect_snowflake.credentials\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-snowflake/prefect_snowflake/database.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"00300a2f0261f83089b8f7af8be9dbe676314b59717f8b0f2b9096d00192b819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61\u201363 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:126-188 | src/prefect/server/database/_migrations/versions/sqlite/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:128-188 \u2014 \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 162 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:126\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":"src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5e517765dbfb41389d9d7c93f4d4df79dd4c028e594cdb9c27086838f5467f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59\u201362 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/core/runner.py:770-831 | src/integrations/prefect-dbt/prefect_dbt/core/runner.py:1000-1058 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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":"src/integrations/prefect-dbt/prefect_dbt/core/runner.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"998157748e760c1a5aad61b07d0cc9f0a802a063565c41845328588fd353c99c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:366-426 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:421-481 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:366\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"6880c99699ac151f21327193fe8b5149329c0321fc84ebcbfbe614d2794daa60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_07_06_152528_4cdc2ba709a4_migrates_block_schemas_with_new_secrets_.py:85-145 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_06_142824_e2dae764a603_migrates_block_schemas_with_new_secrets_.py:84-144 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_07_06_152528_4cdc2ba709a4_migrates_block_schemas_with_new_secrets_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_07_06_142824_e2dae764a603_migrates_block_schemas_with_new_secrets_.py\u0060 as WHOLE FILES: 94% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_06_152528_4cdc2ba709a4_migrates_block_schemas_with_new_secrets_.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c8a70327f3124c1993f8561a97aae4373ecf99397b3793c954790cb057e382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58\u201360 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/s3.py:669-728 | src/integrations/prefect-aws/prefect_aws/s3.py:745-802 \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 \u0060src/integrations/prefect-aws/prefect_aws/s3.py:669\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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbebdf26ee9f70d8ada214335706e5245d292d8f0bb623c7c3718dd685e0f17d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df465_migrate_artifact_data.py:23-82 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c26_migrate_artifact_data.py:25-84 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df465_migrate_artifact_data.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c26_migrate_artifact_data.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 128 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 before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c26_migrate_artifact_data.py:20\u0060 calls \u0060execute\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df465_migrate_artifact_data.py:19\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df465_migrate_artifact_data.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc70bd5afb186224e34b39c3da629608d8cb4a8173ee22fea377ba39ebb927d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:66-125 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:65-124 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 202 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":"src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce10324a38667515f92b1dd3cdf1926a63a1f36fbb4ff64fdffe4e13e7355c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59\u201360 lines \u00D7 2): src/prefect/server/events/actions.py:163-222 | src/prefect/server/events/actions.py:252-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/events/actions.py:163\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":"src/prefect/server/events/actions.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe73346025cceb95e5b80f18e6c944c7debf600eaafaab79faeebd4a8b5ee826"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:824-881 | src/integrations/prefect-gcp/prefect_gcp/bigquery.py:922-979 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: \u0060GcpCredentials\u0060 names \u0060prefect_gcp\u0060 in one and \u0060prefect_gcp.credentials\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb9c413a946ae2a55a69fd30570bab14c26b6677d14414b5822de5d15e928c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201358 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:374-431 | src/prefect/client/orchestration/__init__.py:1317-1367 \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 \u0060src/prefect/client/orchestration/__init__.py:374\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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe2ac83022c2526f395c6cd9bcd94743a849198494e54fa532752571cc89869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): src/prefect/deployments/runner.py:1309-1366 | src/prefect/deployments/runner.py:1450-1507 \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":"src/prefect/deployments/runner.py"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc75f890860cb2533b28ae28c71a0a36c7a07bc56fd69478e1fa83999381dcb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/observers/ecs.py:508-562 | src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:1202-1256 \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. 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":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c97cfd3246285e74c299672aaa256f4ee28a1da29829daa668143d722c80f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:668-722 | src/prefect/client/orchestration/_deployments/client.py:1382-1436 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: \u0060FlowRun\u0060 names \u0060prefect.client.schemas\u0060 in one and \u0060prefect.client.schemas.objects\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"75faab6b7b6d84f862986e5f2371e7fd5c06240c00fc7165c38246b836d1a561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201354 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/lambda_function.py:126-179 | src/integrations/prefect-aws/prefect_aws/lambda_function.py:195-245 \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":"src/integrations/prefect-aws/prefect_aws/lambda_function.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2f8bafe5d554d89a2da34341abed025a1a17a38e14e15f64a49784b9221d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201353 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py:705-755 | src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py:1140-1192 \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. 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":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e5908b0bd42157c938ac45ef0464f2e67689f59eaac3a2f92f217c8914d818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:463-514 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:668-719 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:543-594 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:786-837 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:463\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c65ba9c49f3c402e5cdd82787a9ee8f6b4e069e5bf295c81d772591a138fc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/client_waiter.py:22-73 | src/integrations/prefect-aws/prefect_aws/client_waiter.py:87-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: \u0060AwsCredentials\u0060 names \u0060prefect_aws\u0060 in one and \u0060prefect_aws.credentials\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/client_waiter.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8266939189ba7ca22d95fbb412b421d31c7b0f7e0837f2ecac34063c8d4b280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201352 lines \u00D7 2): src/integrations/prefect-azure/prefect_azure/deployments/steps.py:80-131 | src/integrations/prefect-azure/prefect_azure/deployments/steps.py:165-213 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/deployments/steps.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e1cdf64df14e3ac4fae30f589bfd4cc11be553ea7584f23e83c0bc03c79594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201352 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py:22-73 | src/prefect/server/database/_migrations/versions/sqlite/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py:22-67 \u2014 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 92 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. 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88a639832b3c3fcba1ae7a67b1883bfe79b9c2cb225db82e37c367b76b9eb55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201351 lines \u00D7 2): src/prefect/task_engine.py:576-624 | src/prefect/task_engine.py:1239-1289 \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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060state\u0060 to \u0060State[R]\u0060 in one and \u0060State\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abbecb421c76830ff86d32a590fdef00389842bf17412201b2a938025db7b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:657-705 | src/integrations/prefect-gcp/prefect_gcp/bigquery.py:741-789 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: \u0060GcpCredentials\u0060 names \u0060prefect_gcp\u0060 in one and \u0060prefect_gcp.credentials\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e17f40273599617ced96bbf8753a8bd3e5e848117deff487553e2464941f7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201349 lines \u00D7 2): src/prefect/_internal/states.py:183-231 | src/prefect/states.py:315-361 \u2014 before extracting anything, compare \u0060src/prefect/_internal/states.py\u0060 and \u0060src/prefect/states.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 210 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":"src/prefect/_internal/states.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7139d7956fed593e492b16644acdcf756201f57aa3d24014785aaeeac7a538"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): src/prefect/_internal/states.py:233-280 | src/prefect/states.py:363-410 \u2014 before extracting anything, compare \u0060src/prefect/_internal/states.py\u0060 and \u0060src/prefect/states.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 210 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 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":"src/prefect/_internal/states.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bd90b11f550d171affdeb4c908f75adeb4fa1ed66982bdd6e62e8c8fd5af88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): src/prefect/tasks.py:935-982 | src/prefect/tasks.py:1040-1087 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/prefect/tasks.py:985\u0060 calls \u0060create_task_run\u0060 and \u0060src/prefect/tasks.py:1089\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":"src/prefect/tasks.py"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"0226692fafe2aaa66c2e48234531c30ca5a50ed934b2ee7c83d9f2f61f2def7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201347 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1265-1311 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1345-1390 \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. 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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"858c6a2b3f6dc094f63402cd58491399922878e38bacf3ee5f68e3d6df4898d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:132-178 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:146-192 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3463616842002d5b175b90c6ba3d25d9f058fe5f5660daa284dfdd412f3403c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:841-886 | src/prefect/client/orchestration/__init__.py:1579-1624 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e1eb7e5e4a41cbff9cb1dd364621a8bc41a5c48a5e291c2bbfadbefead91c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py:34-79 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000042_f92143d30c24_implement_artifact_table.py:43-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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py:34\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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f339e992ac86f1e74ac0e08ca88fd8031671cebb43a6e3124d5024ac6dd01454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 3): src/prefect/_internal/versioning.py:143-187 | src/prefect/_internal/versioning.py:207-251 | src/prefect/_internal/versioning.py:271-315 \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":"src/prefect/_internal/versioning.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bec8215fe63bab8a18f68675892152b4f5206bde8a85179c134d8e5ac95f45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:238-281 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:286-329 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:238\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9edbe06b5d398a500d674473c474a8a4f284c8d324f0fc1f37105429b4daed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:24-67 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py:26-69 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 98 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:24\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, \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py:73\u0060 calls \u0060execute\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:71\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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4600d4ba8d92eb2bb1d88af7b530d8f5fe736a4a10999d9f926dd6248fc8d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): src/prefect/task_engine.py:184-227 | src/prefect/tasks.py:1082-1125 \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. 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":"src/prefect/task_engine.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c5474848c5f1dd929421eb72bfe20e16d35e1142fafbdf8398d435338d8a0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:473-515 | src/prefect/client/orchestration/_deployments/client.py:1187-1229 \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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f6acd5309c1b932c18511a55f6a772a4d97ce7909cb2f975b32905cd4248a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): src/prefect/filesystems.py:536-578 | src/prefect/filesystems.py:595-637 \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. 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":"src/prefect/filesystems.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e3ee19127e986a4e6cf0934f19f72550e48746b5cc692ced7b44561cb14dd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201343 lines \u00D7 2): src/prefect/infrastructure/provisioners/coiled.py:92-132 | src/prefect/infrastructure/provisioners/modal.py:99-141 \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. 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":"src/prefect/infrastructure/provisioners/coiled.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"49525884095a302e0233c61bf331c677a446646bbb92607e76bb15bda3b70866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:2365-2406 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:2424-2464 \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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":2365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea284eed8cfe35a0154161af5f4da9b91019c42cdf6b7b8b5ad7f3afb955775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): src/prefect/client/base.py:334-374 | src/prefect/client/base.py:606-647 \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 \u0060src/prefect/client/base.py:334\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 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":"src/prefect/client/base.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"e025b579441ec914378e6c60e07110fd5304f36397c7448d0ef440f63ffc017e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): src/prefect/deployments/runner.py:1378-1419 | src/prefect/deployments/runner.py:1518-1558 \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 \u0060src/prefect/deployments/runner.py:1378\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":"src/prefect/deployments/runner.py"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd92d765bb926c9417dae46e6f517b880bdd229f1d1e62ad50a990fe109aa7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:308-348 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:541-581 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:363-403 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:634-674 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:308\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, \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:583\u0060 calls \u0060Column\u0060, \u0060String\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:350\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d80c35f3091d629592c3d9ab4d031a24cfb648c35e2a581fea3ab95f4f6eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src/prefect/deployments/runner.py:463-503 | src/prefect/deployments/runner.py:569-609 \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":"src/prefect/deployments/runner.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0d46a2fcf27616d5482e27e2af11b04af3ad899f3942639420c5da9c856faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201341 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:209-246 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:211-251 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 202 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:209\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1c02812afd079ef4d00123392b18acb1c41cef0cc24ce73f78391eae61dbc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): src/prefect/server/events/filters.py:432-472 | src/prefect/server/events/filters.py:538-578 \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 \u0060src/prefect/server/events/filters.py:432\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 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":"src/prefect/server/events/filters.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ae5e0c6b5ded0d9412e7b0c7f6d128ef741ee3be12b1cecdb070663a7688c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/prefect/_internal/states.py:80-118 | src/prefect/states.py:214-252 \u2014 before extracting anything, compare \u0060src/prefect/_internal/states.py\u0060 and \u0060src/prefect/states.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 210 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":"src/prefect/_internal/states.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a557add811679e7879f998866339d485e27a998d0a8229dabc831d1c853ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/prefect/infrastructure/provisioners/cloud_run.py:314-352 | src/prefect/infrastructure/provisioners/container_instance.py:898-936 \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. 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":"src/prefect/infrastructure/provisioners/cloud_run.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f24612b326a46dfd2e1d97829ecd003bfa4364fb212eafb1fb745600130755b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df465_migrate_artifact_data.py:88-126 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c26_migrate_artifact_data.py:90-128 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df465_migrate_artifact_data.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c26_migrate_artifact_data.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 128 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df465_migrate_artifact_data.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc6f652601e6a6eeeaa7e5854990f04deeb187783e06eb1feeb1a6def6fa19c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_04_06_122716_15f5083c16bd_migrate_artifact_data.py:24-62 | src/prefect/server/database/_migrations/versions/sqlite/2023_04_06_122659_2dbcec43c857_migrate_artifact_data.py:26-64 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_04_06_122716_15f5083c16bd_migrate_artifact_data.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_04_06_122659_2dbcec43c857_migrate_artifact_data.py\u0060 as WHOLE FILES: 85% 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. 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_04_06_122716_15f5083c16bd_migrate_artifact_data.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3e54705907b8c010a565323f27cd70a7cefc8d347d6fb7877b0970dfb77a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): src/prefect/server/events/filters.py:704-742 | src/prefect/server/schemas/filters.py:1557-1595 \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":"src/prefect/server/events/filters.py"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c5527598ec184b27156141601053542a4f5369e14eac17627b9545bb61f194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201339 lines \u00D7 2): src/prefect/server/services/scheduler.py:247-285 | src/prefect/server/services/scheduler.py:324-358 \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 \u0060src/prefect/server/services/scheduler.py:247\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 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":"src/prefect/server/services/scheduler.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0727dc978f2495473375ee06877a5d0d2edfb6ccfe77825c259e4fc12d8741a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): src/integrations/prefect-aws/infra/worker/events_stack.py:61-98 | src/integrations/prefect-aws/infra/worker/service_stack.py:508-545 \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. 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":"src/integrations/prefect-aws/infra/worker/events_stack.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2df1d986b422bf13ec9ad2ef99b54ab08491adab38f955712f161daeb2dcc71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): src/prefect/client/orchestration/_flow_runs/client.py:140-177 | src/prefect/client/orchestration/_flow_runs/client.py:667-703 \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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d67b2b19d11bf7fdea2ef14e3536b80b8c419ecea6b67b565cd2bbb7738caf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): src/prefect/flow_engine.py:1069-1106 | src/prefect/flow_engine.py:1804-1841 \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":"src/prefect/flow_engine.py"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3d1a743f61c0632a7ce63351d262e22c8d8a418997dad1a60a5a6facfb7e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/integrations/prefect-aws/infra/worker/events_stack.py:103-139 | src/integrations/prefect-aws/infra/worker/service_stack.py:550-586 \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. 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":"src/integrations/prefect-aws/infra/worker/events_stack.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"248713e2f1477063320ad31f25584611a709ee45f446d61d3f0b8087ac6f28cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/s3.py:1021-1057 | src/integrations/prefect-aws/prefect_aws/s3.py:1076-1112 \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 \u0060src/integrations/prefect-aws/prefect_aws/s3.py:1021\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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2bc069e8cb51f3badcd2133e63996883e9a9e1b3f443ffcb5b4182638d464d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201337 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/cloud/_executor.py:218-254 | src/integrations/prefect-dbt/prefect_dbt/cloud/_executor.py:330-347 \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":"src/integrations/prefect-dbt/prefect_dbt/cloud/_executor.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"812669873522aa18d2714e63f231d12300346d334f3566e24604a6819ff2e436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/prefect/flow_engine.py:966-1002 | src/prefect/flow_engine.py:1703-1739 \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. 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":"src/prefect/flow_engine.py"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a47e0ff7e642f2d24d98696f5ed682240ad86d8bd4910417bf5dd77869167a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201337 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_05_10_145956_1c9390e2f9c6_replace_version_with_checksum_and_.py:99-134 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py:106-142 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_10_145956_1c9390e2f9c6_replace_version_with_checksum_and_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 64 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_10_145956_1c9390e2f9c6_replace_version_with_checksum_and_.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b31e3dff859c9dd9c9517c1b99b675e760a313d4d1e4efeb8a11bc81c82a12c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/s3.py:1440-1475 | src/integrations/prefect-aws/prefect_aws/s3.py:1496-1531 \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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"80749b8b6d4568db322de54205b41e744a928f02d00e736102095b83ac9958f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/prefect/client/orchestration/_flow_runs/client.py:53-88 | src/prefect/client/orchestration/_flow_runs/client.py:580-615 \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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43d654905514635088f464a668569ba980f8dfa4f2e977f8e6fb005eafb0c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:155-189 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:165-199 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:387-421 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 250 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:155\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f752b8363bfae545ef6dc253373997db8bf5513f6722eda38fce4972fee3ad93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/prefect/client/base.py:395-429 | src/prefect/client/base.py:668-702 \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":"src/prefect/client/base.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd32bd1e29a9d2b15876c9b70978675ca58b0612e0c413b246c692e89cd3bb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:331-365 | src/prefect/client/orchestration/__init__.py:1278-1312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/prefect/client/orchestration/__init__.py:366\u0060 calls \u0060AsyncExitStack\u0060 and \u0060src/prefect/client/orchestration/__init__.py:1313\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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1200540e51f8e9eab8b260b2ae627ce5908f1e5d69be7b205aff1d50bda21b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): src/prefect/flows.py:262-295 | src/prefect/tasks.py:437-469 \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 \u0060src/prefect/flows.py:262\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":"src/prefect/flows.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"175a65d0afda1518f6ad3fc34d67d46315980a121e0c50440778e83a1e57cc6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:28-62 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:27-63 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 202 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:28\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"880dfd96f37a0a0261fc0fe7b42f2925b29e40d4ea64a8bca72aedb5237e904e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201333 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_04_21_095519_14dc68cc5853_backfill_state_name.py:27-59 | src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py:46-78 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_21_113057_db6bde582447_backfill_state_name.py:27-53 | src/prefect/server/database/_migrations/versions/sqlite/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py:46-72 \u2014 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 92 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. 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_04_21_095519_14dc68cc5853_backfill_state_name.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c732d2fadd562ce3838e2f858cc82504a655efe6f37056d483fb9c9324ba9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/prefect/results.py:1076-1108 | src/prefect/results.py:1140-1172 \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":"src/prefect/results.py"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"318dc5e3fc9dc21c59936d3e94540d5aa0f52aba1da40eee68413b405ee3a642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py:39-71 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py:43-75 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py:41\u0060 calls \u0060execute\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py:38\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"705db9d1ea896f5da6cbde07b87e42985dfe571eb7a2a88b6d23d6df761ede5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): src/prefect/runtime/deployment.py:60-91 | src/prefect/runtime/flow_run.py:87-118 | src/prefect/runtime/task_run.py:51-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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runtime/deployment.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a7d0fbc319fa4f4d5c7ea5889a4f5aac738f62bca0df8540240d2fc3271ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:100-131 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:110-141 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:332-363 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 250 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:100\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9dbe06141cc7f1b89506eec00daf8ce3ad3c77ed528576a7d1ed0893ae5288b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/prefect/cli/automation.py:196-227 | src/prefect/cli/automation.py:256-287 \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":"src/prefect/cli/automation.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d376f5512736f4d95b2e2ad6c0f08acb55b93e7cb0db9d20e847c0af1d153cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/prefect/client/base.py:240-271 | src/prefect/client/base.py:513-544 \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":"src/prefect/client/base.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"901343711ac536137bee70d0ab4347b4e6fcf831107d4ae5cc6b2df1312c30d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/prefect/server/api/deployments.py:1007-1038 | src/prefect/server/api/deployments.py:1214-1245 \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 \u0060src/prefect/server/api/deployments.py:1007\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, \u0060src/prefect/server/api/deployments.py:1040\u0060 calls \u0060now\u0060 and \u0060src/prefect/server/api/deployments.py:1247\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":"src/prefect/server/api/deployments.py"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f73fbf417f62cc1d720eeb0cc5db9b2cda4015df8005af403c7fe3125e0fa62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/prefect/server/database/_migrations/versions/sqlite/2022_05_30_100855_d76326ed0d06_rename_run_alerts_to_run_notifications.py:20-51 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_30_100855_d76326ed0d06_rename_run_alerts_to_run_notifications.py:56-87 \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":"src/prefect/server/database/_migrations/versions/sqlite/2022_05_30_100855_d76326ed0d06_rename_run_alerts_to_run_notifications.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8588a54c7c151b81f9d6b89eae25ee1c4409f570f7ec453be1a07dc785e5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201331 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:82-109 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:186-216 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:96-123 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:199-229 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py\u0060 as WHOLE FILES: this scan already matched 9 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:82\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 before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:81\u0060 calls \u0060Column\u0060, \u0060String\u0060, \u0060Boolean\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:186\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f435c9f21266577fb3141808f150ca8a60c6719b30f9e36eb5250eb330044a94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201331 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:194-212 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:111-141 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:111-141 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:194\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a634a51a69711e8256b8fae3baf862ea75dba88fe05a945db203e57c706f70fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 3): src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:64-94 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:86-114 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:336-366 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 247 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 \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:64\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":"src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"92edff5fb55ac506afc45434f547db66bbf030868daa044c9f4e6d6e0efc38fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/s3.py:945-975 | src/integrations/prefect-aws/prefect_aws/s3.py:982-1012 \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. 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"087b5aeb5e49b48fc0e0b9609e079f0ca0613b168ed954add4387c8a99d6e0ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:522-552 | src/prefect/client/orchestration/__init__.py:1775-1805 \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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"638def615ceb1bc6756f721b187b572ca4b2a3973690f99fb9808de17853b7e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_214717_4ff2f2bf81f4_adds_block_type_slug.py:42-72 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_25_142515_f335f9633eec_adds_block_type_slug.py:45-75 \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":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_214717_4ff2f2bf81f4_adds_block_type_slug.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f4a0324f552a2f985794141fdd1812dfaa656f9d48c61d0e5424fba5efec64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:22-52 | src/prefect/server/database/_migrations/versions/sqlite/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py:22-52 \u2014 \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 162 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2025_09_17_091213_9e83011d1f2a_migrate_v1_concurrency_limits_to_v2.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4218a1b712c246ce48fb963c8f1c67f86ebdd7c24abf90b8c053ff354f9feb6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201331 lines \u00D7 2): src/prefect/server/database/_migrations/versions/sqlite/2022_07_11_113314_638cbcc2a158_add_infrastructure_block_id_to_.py:22-52 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_25_151028_88c2112b668f_update_deployments_to_include_more_.py:35-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_07_11_113314_638cbcc2a158_add_infrastructure_block_id_to_.py:22\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":"src/prefect/server/database/_migrations/versions/sqlite/2022_07_11_113314_638cbcc2a158_add_infrastructure_block_id_to_.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fcaf97ff5cc317b87e9b5325fbae174b41102b907e8fd30bec7820fadc5005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:562-591 | src/prefect/client/orchestration/_deployments/client.py:1276-1305 \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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a2b223451f12c1efc252dd9c755d7a77994b8c7867e303454cad401d85f3eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201330 lines \u00D7 2): src/prefect/flow_engine.py:1188-1217 | src/prefect/flow_engine.py:1924-1950 \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 \u0060src/prefect/flow_engine.py:1924\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":"src/prefect/flow_engine.py"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fc7647cc3eacbfeb32d3eaca2f480cdeb644e5183d72e0a0c9af1ac9c3ecd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:89-116 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:92-121 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 202 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d592742c133310113dfe1e613f73ecf9e139ad6a27a4d1253d0a6dc01fb0a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): src/prefect/server/database/query_components.py:626-655 | src/prefect/server/database/query_components.py:928-956 \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 \u0060src/prefect/server/database/query_components.py:626\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":"src/prefect/server/database/query_components.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ada4421ae67e062e108f8e00bde7693c768565557306489276c8c69494377f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): src/prefect/transactions.py:679-707 | src/prefect/transactions.py:731-760 \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":"src/prefect/transactions.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"924076c353a1e80fc102b0e693c0902a4591264d726d8646e75eabe93550113b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:36-64 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df465_migrate_artifact_data.py:95-123 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py:38-66 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c26_migrate_artifact_data.py:97-125 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 98 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"482726f8311113ac72f75e8826930e5c96178ff243736cd041c3e540fa3b4822"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:130-158 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:150-178 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:402-430 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 247 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 \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:130\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":"src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8931468ad407f47d38de0691a1a30cbf6822e91b50e3447292a7c3d8c097822a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/prefect/client/orchestration/_flow_runs/client.py:90-118 | src/prefect/client/orchestration/_flow_runs/client.py:617-645 \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 \u0060src/prefect/client/orchestration/_flow_runs/client.py:90\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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc581f728fb630365251feb0c3e70976ce736ede13609aebd50dfd5bcb4f73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201329 lines \u00D7 2): src/prefect/flows.py:2346-2368 | src/prefect/tasks.py:2157-2185 \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 \u0060src/prefect/flows.py:2346\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":"src/prefect/flows.py"},"region":{"startLine":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40a321159b1c5b0646cd0fa988a607223ebc80dbda69f059361d25b8684b9d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): src/prefect/server/database/query_components.py:657-685 | src/prefect/server/database/query_components.py:958-984 \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 \u0060src/prefect/server/database/query_components.py:657\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":"src/prefect/server/database/query_components.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d41d10f06eff96231fdd9e761900c3b1b9169c211254077d3d436a19426b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/prefect/server/models/flow_runs.py:647-675 | src/prefect/server/models/task_runs.py:539-567 \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 \u0060src/prefect/server/models/flow_runs.py:647\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":"src/prefect/server/models/flow_runs.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe5cae16682b5c553042f1d6b7fe2781e3ff7cbc5c847471332fc9182adc377"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): src/prefect/utilities/engine/__init__.py:581-609 | src/prefect/utilities/engine/__init__.py:677-703 \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. 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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"121bbd0f0a8df2942df3939cb76812ace3120faf18e64a204cd0e8737113e6cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:53-80 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:108-135 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:60-87 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:122-149 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:53\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd045a37bf001ab63ebd65d01f0aafaeead11e49ad8b970b6187d131f33800e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 3): src/prefect/server/api/concurrency_limits.py:256-282 | src/prefect/server/api/concurrency_limits.py:326-353 | src/prefect/server/api/concurrency_limits.py:382-408 \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 \u0060src/prefect/server/api/concurrency_limits.py:326\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 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":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40e752b1eae833b55fd7f1a9a7eb606a33da94faec1d8010ee3821473cc9203"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/prefect/_internal/engine.py:121-148 | src/prefect/runner/_workspace_runtime_bootstrap.py:121-148 \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 after the matched lines, \u0060src/prefect/runner/_workspace_runtime_bootstrap.py:150\u0060 calls \u0060getattr\u0060 and \u0060src/prefect/_internal/engine.py:150\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":"src/prefect/_internal/engine.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f2bbd273cc2b3d2d91d2b9ba0dc5bf01270de55ea4b5b0f703ecca388f76c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/prefect/_internal/states.py:282-309 | src/prefect/states.py:412-439 \u2014 before extracting anything, compare \u0060src/prefect/_internal/states.py\u0060 and \u0060src/prefect/states.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 210 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 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":"src/prefect/_internal/states.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cfcd09128743db01539c6df143ed1754b6e1167f0513146c86c534a984550e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): src/prefect/flow_engine.py:737-764 | src/prefect/flow_engine.py:1480-1506 \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 \u0060src/prefect/flow_engine.py:1480\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":"src/prefect/flow_engine.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3687cb7a7a07b9559de59f7132c54598e6b637d0a8f276b662da70c2877295"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201328 lines \u00D7 2): src/prefect/flow_runs.py:277-304 | src/prefect/flow_runs.py:588-609 \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 \u0060src/prefect/flow_runs.py:277\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 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":"src/prefect/flow_runs.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"77105fefebe5ef043d3717ed920882cfc7211b39623baf079f45857846ae8918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201328 lines \u00D7 2): src/prefect/flow_runs.py:434-461 | src/prefect/flow_runs.py:717-738 \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 \u0060src/prefect/flow_runs.py:434\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 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":"src/prefect/flow_runs.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"3333f18e6a1b050b858c4d8e1e272bcf39e7095e04862d015608bccb5ca98d4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:37-64 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:288-314 \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 \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py: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":"src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"527c71843a5458b5362ecf1a61af358a17a4898912615753554c2682f7079c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/prefect/task_engine.py:716-743 | src/prefect/task_engine.py:1381-1408 \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":"src/prefect/task_engine.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3de79ecb7107c4597d4d81bf7253aaaf4814feb480d3c5968a72860b4833840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): src/prefect/utilities/engine/__init__.py:190-215 | src/prefect/utilities/engine/__init__.py:242-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/utilities/engine/__init__.py:190\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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa68e2d3b588496aa9fc816bb387d4ba69fb928f51ce1d79019744204f1e292f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 3): src/prefect/server/models/work_queues.py:432-456 | src/prefect/server/models/workers.py:384-410 | src/prefect/server/models/workers.py:835-861 \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. 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":"src/prefect/server/models/work_queues.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"918dc22f3969cf43ebed3466b5d020217e97753fa2ff6364e1ea8b99a9d0122e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): src/integrations/prefect-azure/prefect_azure/repository.py:147-169 | src/integrations/prefect-gitlab/prefect_gitlab/repositories.py:158-184 \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":"src/integrations/prefect-azure/prefect_azure/repository.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54252ac72dd22b859fad9e1afe30ad3bbb9f778ef4d5fe51ebef81eacbb95aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/core/_executor.py:624-650 | src/integrations/prefect-dbt/prefect_dbt/core/_executor.py:668-691 \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 \u0060src/integrations/prefect-dbt/prefect_dbt/core/_executor.py:624\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":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c8115f749fb9bb94af843d718d3f42b85438ebd218ed8857f3518d6e648b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/integrations/prefect-redis/prefect_redis/ordering.py:249-275 | src/prefect/server/events/ordering/memory.py:213-239 \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. 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":"src/integrations/prefect-redis/prefect_redis/ordering.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a998935d5bf5f56ef35579fd229d0a40fb7f88fa5d45f0530110f8d8671cec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/prefect/deployments/runner.py:645-671 | src/prefect/deployments/runner.py:703-729 \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":"src/prefect/deployments/runner.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"555cebe09b05ff6db869975e6409907d7d445e2e4cf376cbb0425531bcd9c9e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201327 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:153-176 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:154-180 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 202 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:153\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dfe733c64b2e092ccc81d7ca3102c782170c7633eed31c237f029762900299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py:28-52 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_09_125712_cc510aec4689_automation_event_follower.py:27-53 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_09_125712_cc510aec4689_automation_event_follower.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py:28\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abc9a151135b1400a1b20dc29d4f59ffff1e87fbcc8fc12dc646ee1b750302b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/s3.py:2317-2342 | src/integrations/prefect-aws/prefect_aws/s3.py:2359-2384 \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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":2317}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0e20f9a8dc67b61f1622a469316d4258f16bf8893d6c62be43647247c85320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): src/prefect/_internal/buildx.py:111-135 | src/prefect/utilities/dockerutils.py:200-225 \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 \u0060src/prefect/_internal/buildx.py: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":"src/prefect/_internal/buildx.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de6318b06d6cd4917c70390de4be8160aafc79741bcb74fe9fdf1fbf696e51e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/prefect/client/schemas/objects.py:1476-1501 | src/prefect/server/schemas/core.py:1045-1070 \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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060last_polled\u0060 to \u0060datetime.datetime | None = None\u0060 in one and \u0060Optional[DateTime] = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/objects.py"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f0be347847abdc7462e2666728f3db510d598d5f4733784183998ce3764d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/prefect/flows.py:1949-1974 | src/prefect/flows.py:2012-2037 \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 \u0060src/prefect/flows.py:1949\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":"src/prefect/flows.py"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce07dc3fd40ccb5e5ab655701c93be2b0d1f0d08e2773e5ccf8c7293b3745f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:434-456 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:506-531 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:434\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"933d1cacce983410ce6267b2d4c80f24746082ab0ae48df98c54fce76f7db779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/prefect/task_engine.py:499-524 | src/prefect/task_engine.py:1148-1173 \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":"src/prefect/task_engine.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"06834600dfe82f55eb4b5b50e289742d34a4fe210c12b8e42a17c5bc1c8b0365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): src/prefect/utilities/importtools.py:420-445 | src/prefect/utilities/importtools.py:449-473 \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":"src/prefect/utilities/importtools.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bffabfb6f8818c2565f12fbb0ca5541052922717f021e779fb8211c6863a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:49-73 | src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:107-131 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py:66-90 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py:124-148 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 84 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:49\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76583710ca23fe0d3937f9302365d81db79a5c4973262034921bc32ca3b2416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): src/prefect/deployments/runner.py:1250-1274 | src/prefect/deployments/runner.py:1383-1407 | src/prefect/deployments/runner.py:1522-1546 \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 \u0060src/prefect/deployments/runner.py:1250\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":"src/prefect/deployments/runner.py"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"701895353eb83e0c1f7c06fd4e0bd730c01e410863118d6baf9b909f84d66213"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/integrations/prefect-databricks/prefect_databricks/flows.py:204-228 | src/integrations/prefect-databricks/prefect_databricks/flows.py:548-572 \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 \u0060src/integrations/prefect-databricks/prefect_databricks/flows.py:204\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":"src/integrations/prefect-databricks/prefect_databricks/flows.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"209959f5f11e000d31842d98429c045d2de75c4b480d12f720d2e5f0e866392b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1160-1184 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1213-1237 \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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6ada373c80767ea9b73a9bf2b841a88dd788bce02944e5c204850d457e0699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201325 lines \u00D7 2): src/prefect/flow_engine.py:1268-1292 | src/prefect/flow_engine.py:2008-2027 \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":"src/prefect/flow_engine.py"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddfc9e14b2e5498e8f18d91563bfee2862a88a162c571555e4fb7087f4163f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/prefect/flows.py:857-881 | src/prefect/flows.py:1002-1026 \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 \u0060src/prefect/flows.py:857\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 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":"src/prefect/flows.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ef1985dada16250f30071878911b679df374de3ad4fb7bbafb9990faeb806f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:34-58 | src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py:43-67 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:34\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, \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py:70\u0060 calls \u0060batch_alter_table\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:61\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f1555cb2ee87d22c620bf21e2fa133f10889b7c6bc2ae808427c7ee9a41138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/integrations/prefect-azure/prefect_azure/credentials.py:46-69 | src/integrations/prefect-gcp/prefect_gcp/credentials.py:47-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/integrations/prefect-azure/prefect_azure/credentials.py:71\u0060 calls \u0060ValueError\u0060, \u0060format\u0060 and \u0060src/integrations/prefect-gcp/prefect_gcp/credentials.py:72\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":"src/integrations/prefect-azure/prefect_azure/credentials.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7589454204f278b19dcf4b010525f7cf332c631494fb59f27ad7c7aa700ae72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/integrations/prefect-docker/prefect_docker/worker.py:703-726 | src/prefect/workers/process.py:234-257 \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 \u0060src/integrations/prefect-docker/prefect_docker/worker.py:703\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":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ff94a8014a6d9919950dfee18a4d450c1cb4d76be432648b6f24fb6bfd5608"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:735-753 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:1358-1381 \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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"29082cfd99202d1e88807f32e1c6829a44551be64f1f4a9613323ee3692684c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): src/prefect/_internal/states.py:127-150 | src/prefect/states.py:261-282 \u2014 before extracting anything, compare \u0060src/prefect/_internal/states.py\u0060 and \u0060src/prefect/states.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 210 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":"src/prefect/_internal/states.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"65553ff8783110ab066394b10ed9251230b5cdf8107846744dac345e030d27dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/prefect/_internal/waiters.py:94-117 | src/prefect/task_runs.py:90-113 \u2014 before extracting anything, compare \u0060src/prefect/_internal/waiters.py\u0060 and \u0060src/prefect/task_runs.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"src/prefect/_internal/waiters.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d198855d6acae989b4d2430e7022faed17b59f656c61b903c156cf9737a5186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:1133-1156 | src/prefect/client/orchestration/__init__.py:1524-1547 \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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c71370806a845906f8af81f2a1ee8c3e4b34e20814afafc09bb6a1b08e4f068"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/prefect/flow_engine.py:676-699 | src/prefect/flow_engine.py:1418-1441 \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. 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":"src/prefect/flow_engine.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d4e04c0346e07f2166b42f4423e169c5252a479a80d9ce992df81e730553b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/prefect/flow_engine.py:1144-1167 | src/prefect/flow_engine.py:1879-1902 \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 \u0060src/prefect/flow_engine.py:1144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060client\u0060 to \u0060Optional[SyncPrefectClient] = None\u0060 in one and \u0060Optional[PrefectClient] = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac717133f1f50d14079be1d3aa4d5a6a6ca6b1be2006421ffe74bea5f65d5a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:77-100 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py:94-117 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 84 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbe07f26e26a3ca3d5ddeebf07f33535aa9081294eee21860705602b933ee81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:95-116 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:94-117 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py: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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6789f8b78e79d2f988624341a754d98b08c684cc0cd0911459db72844abde6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2026_10_19_000000_e7f54680bce3_add_automation_held_event.py:24-46 | src/prefect/server/database/_migrations/versions/sqlite/2026_10_19_000000_8f5eda7c1dd7_add_automation_held_event.py:24-47 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2026_10_19_000000_e7f54680bce3_add_automation_held_event.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2026_10_19_000000_8f5eda7c1dd7_add_automation_held_event.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2026_10_19_000000_e7f54680bce3_add_automation_held_event.py:24\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":"src/prefect/server/database/_migrations/versions/postgresql/2026_10_19_000000_e7f54680bce3_add_automation_held_event.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f177ad31b1f122e23ad217d82b760044c1fb492da00f56954740ade3928b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): src/prefect/server/events/actions.py:1552-1574 | src/prefect/server/events/actions.py:1670-1693 \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":"src/prefect/server/events/actions.py"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4d693a693e73e53a481357d50d58b703dabf2e801228e056fa7f17aef1e67a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/prefect/server/events/filters.py:632-655 | src/prefect/server/schemas/filters.py:1517-1540 \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. 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":"src/prefect/server/events/filters.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cb07ebe2bdcda7e563bbe3913d8346cd5afe6d6434ff2c9575d719ee2b00fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): src/prefect/server/events/triggers.py:1123-1144 | src/prefect/server/events/triggers.py:1191-1214 \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 \u0060src/prefect/server/events/triggers.py:1123\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":"src/prefect/server/events/triggers.py"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"90595f8b0c86f91a0c37edcffeedb385c43276abecfdd43601c5e9a5bba5c468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/prefect/server/models/block_schemas.py:350-373 | src/prefect/server/models/block_schemas.py:801-824 \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 \u0060src/prefect/server/models/block_schemas.py:350\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":"src/prefect/server/models/block_schemas.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b25bf5a4e00ddde4bc66fa8484b71b240d8fc7481afac3274c9474f35ee33b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 37): src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:38-60 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:76-98 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:124-146 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:170-192 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:210-232 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:262-284 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:341-363 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:525-547 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:612-634 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:768-790 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_04_093838_619bea85701a_block_data.py:23-45 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_15_211737_28ae48128c75_add_configurations.py:23-45 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:22-44 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:67-89 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_20_103610_e1ff4973a9eb_add_block_spec_table.py:23-45 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py:24-46 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:23-45 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:68-90 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:36-58 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:98-120 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:26-48 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:78-100 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:143-165 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:48-70 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:98-120 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:163-185 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:298-320 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:350-372 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:415-437 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000042_f92143d30c24_implement_artifact_table.py:24-46 | src/prefect/server/database/_migrations/versions/sqlite/2023_03_20_184534_b9aafc3ab936_add_artifact_collection_table.py:24-46 | src/prefect/server/database/_migrations/versions/sqlite/2023_04_05_134301_3d46e23593d6_add_variables.py:24-46 | src/prefect/server/database/_migrations/versions/sqlite/2023_08_02_113813_5b0bd3b41a23_create_concurrency_limit_v2_table.py:23-45 | src/prefect/server/database/_migrations/versions/sqlite/2023_12_07_095112_a299308852a7_create_flow_run_input_table.py:23-45 | src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py:24-46 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:128-150 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:173-195 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_02_04_093838_619bea85701a_block_data.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 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 \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:23\u0060 calls \u0060execute\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:36\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":"src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e612cd10f9066042c13d226a0d957924cc297ed881230e7f6bdad3367a23aed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:35-57 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:141-163 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:42-64 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:147-169 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py\u0060 as WHOLE FILES: this scan already matched 9 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:35\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2ed7b55f560b0b9582f6ceca16bc1fc504b1ea08c4754a5b8c685fc7546b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 3): src/prefect/server/models/block_schemas.py:345-365 | src/prefect/server/models/block_schemas.py:684-706 | src/prefect/server/models/block_schemas.py:796-816 \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 \u0060src/prefect/server/models/block_schemas.py:345\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, \u0060src/prefect/server/models/block_schemas.py:710\u0060 calls \u0060order_by\u0060, \u0060asc\u0060 and \u0060src/prefect/server/models/block_schemas.py:366\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/models/block_schemas.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c73e344c419d7ffcf11e91443ace5ed6472e975d0ad47d97eecfc2945cb48c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): src/prefect/cli/work_queue.py:570-592 | src/prefect/cli/work_queue.py:615-636 \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":"src/prefect/cli/work_queue.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f5797170738147b7b40685cbda7980490518486472e10288ccf97bc5d138a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/prefect/client/orchestration/_artifacts/client.py:46-68 | src/prefect/client/orchestration/_artifacts/client.py:149-171 \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 \u0060src/prefect/client/orchestration/_artifacts/client.py:46\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":"src/prefect/client/orchestration/_artifacts/client.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a617747cdd8e5182df0c320e4ecb736befdaee2710f3693c6435769618390d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/prefect/filesystems.py:129-151 | src/prefect/filesystems.py:166-188 \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. 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":"src/prefect/filesystems.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9ca2b260592bb2395c0b7afa89c548bcb710eaf04d038b6807737dbec80ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/prefect/flow_engine.py:1006-1028 | src/prefect/flow_engine.py:1743-1765 \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 \u0060src/prefect/flow_engine.py:1006\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 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":"src/prefect/flow_engine.py"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e8195865169231d584528b93ec984f4390f04b67acd773fc9b04ba7b205c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_08_06_145817_60e428f92a75_expand_deployment_schema_for_improved_ux.py:22-44 | src/prefect/server/database/_migrations/versions/sqlite/2022_08_06_130009_296e2665785f_expand_deployment_schema_for_improved_ux.py:22-44 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_08_06_145817_60e428f92a75_expand_deployment_schema_for_improved_ux.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_08_06_130009_296e2665785f_expand_deployment_schema_for_improved_ux.py\u0060 as WHOLE FILES: 83% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_08_06_145817_60e428f92a75_expand_deployment_schema_for_improved_ux.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e40c22a27ec6cb2383ee59741eed3024efec699cd1efb8b22f86e382a8515dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py:22-44 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:25-47 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e864e64be75d93fe3890f70de3985180b0bc385638a77dc43b49b16345223c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 6): src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:65-86 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:120-141 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:96-113 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:72-93 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:134-155 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:96-113 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:65\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e24d7d06a29443e277ff7fdd9ddb74b2fbc3fb1196a3eb222b3e266217804ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 6): src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:120-141 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:183-204 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:140-161 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:203-224 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:392-413 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:455-476 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 247 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 \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:120\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f36d0171bcef978e122bc4777d851799e3a6da0d88de20a8db93ee1ad8e8f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): src/integrations/prefect-github/prefect_github/organization.py:974-995 | src/integrations/prefect-github/prefect_github/repository_owner.py:163-184 | src/integrations/prefect-github/prefect_github/user.py:1173-1194 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository_owner.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"1182ce8708d296b4cb5fb71abb47329780f2ab57cf73200d4aed232146ef6f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:130-151 | src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:231-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:130\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 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":"src/integrations/prefect-dbt/prefect_dbt/cli/commands.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfd9e7c688b7d1f45013c39de7c07a4834c9a87c80203508931eebba4df34fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/integrations/prefect-github/prefect_github/organization.py:734-755 | src/integrations/prefect-github/prefect_github/user.py:879-900 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdbaffbb0302a8b18e748871f564e69e245e41c73456608ee0cd478320dad6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/integrations/prefect-github/prefect_github/organization.py:834-855 | src/integrations/prefect-github/prefect_github/user.py:1033-1054 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"746e59089470e4af9173c9971452587abbb24d1db23b92b718407f541e10a0d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/integrations/prefect-github/prefect_github/organization.py:1075-1096 | src/integrations/prefect-github/prefect_github/user.py:1504-1525 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab200786dcdacb4ca6d06426d5ccfb2afd8ed0ee36a3f0cf729d8a9a949d476e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/integrations/prefect-github/prefect_github/organization.py:1471-1492 | src/integrations/prefect-github/prefect_github/user.py:1892-1913 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2a7467c00b9c00a867745bb50fefb5eb0c80c0efd3bbfe0ba3a640ff3a70b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/integrations/prefect-github/prefect_github/organization.py:1748-1769 | src/integrations/prefect-github/prefect_github/user.py:2063-2084 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b7b51329efee1fe4199693ade1be661dc96f38b6b4def185f08d1b51228b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/integrations/prefect-github/prefect_github/organization.py:1812-1833 | src/integrations/prefect-github/prefect_github/user.py:2127-2148 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34b4a6a60f2dda250b0202e1e2c3c9828782d5eb590ed0b7d0c46baf6f3ecae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/integrations/prefect-github/prefect_github/organization.py:1875-1896 | src/integrations/prefect-github/prefect_github/user.py:2190-2211 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1875}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a940d248f43ba510ee56118ad3cdc036b646185fb8ad0c5a98cbfeab61ca42d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/_internal/states.py:152-173 | src/prefect/states.py:284-305 \u2014 before extracting anything, compare \u0060src/prefect/_internal/states.py\u0060 and \u0060src/prefect/states.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 210 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":"src/prefect/_internal/states.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce957e63e956b73dacb9260df039cf7d667e051b0974490aec4cef7ae9571c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/prefect/blocks/redis.py:91-111 | src/prefect/blocks/redis.py:132-153 \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":"src/prefect/blocks/redis.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c0a09ba0e705adfbeebdf39c0700ffeaf67320507131ebd686691bd9da1fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/client/base.py:471-492 | src/prefect/client/base.py:744-765 \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. 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":"src/prefect/client/base.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8760e0d0db75ff6a01b437f55c0e0c160e547a3ce31fe97ece6992538b3cdce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/deployments/runner.py:437-458 | src/prefect/deployments/runner.py:543-564 \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":"src/prefect/deployments/runner.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a066c67dbe8b57c87c6e89993cf1a7422399ebf0701648240341055266d50d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/server/api/flow_runs.py:361-382 | src/prefect/server/api/task_runs.py:152-173 \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 \u0060src/prefect/server/api/flow_runs.py:361\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":"src/prefect/server/api/flow_runs.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"79054654f623be7767390c6df2cc39e339b29a04e59dab9bbc6cbc2c9c491a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:84-105 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:98-119 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:84\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"451ae5f9af29d20b4d296fa7f2d6b774f790ba7c873109955677d6c4498d2f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_05_26_135743_724e6dcc6b5d_add_block_schema_capabilities.py:25-46 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_19_165808_33439667aeea_add_block_schema_capabilities.py:27-48 \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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_26_135743_724e6dcc6b5d_add_block_schema_capabilities.py:25\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_26_135743_724e6dcc6b5d_add_block_schema_capabilities.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6862c430e83abbec098478db0b56900958ecdb6689924d8fae24cf70a6729f32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/server/events/actions.py:134-155 | src/prefect/server/events/actions.py:229-250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/actions.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcf0fd3dd57f4460febc4af846039414bec8809477a9afe577e8dcec10d9b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/task_engine.py:458-479 | src/prefect/task_engine.py:1110-1131 \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":"src/prefect/task_engine.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9cdc9612cea09dc40012c298e7b4e1b65a1ca0f179727f81ac515e139134a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 22): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:189-209 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:210-229 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:199-219 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:220-239 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:421-441 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:442-461 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py:44-64 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py:65-85 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py:152-172 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py:173-193 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:213-233 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:234-254 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:233-253 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:254-274 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:485-505 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:506-526 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000042_f92143d30c24_implement_artifact_table.py:113-133 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000042_f92143d30c24_implement_artifact_table.py:135-155 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:65-85 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:86-106 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:154-172 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:173-193 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 250 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:189\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 before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:152\u0060 calls \u0060alter_column\u0060, \u0060batch_alter_table\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:189\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"47afd90220fe47b44a7d2958096c5d1ff902092688aba03cc199d49341f71d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 4): src/integrations/prefect-github/prefect_github/organization.py:334-354 | src/integrations/prefect-github/prefect_github/repository.py:1015-1035 | src/integrations/prefect-github/prefect_github/user.py:354-374 | src/integrations/prefect-github/prefect_github/viewer.py:314-332 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"539513299e5a29a80908c7f5f05ebbbcfca5c2409a08b5035ddd24f0839c1c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 4): src/integrations/prefect-github/prefect_github/organization.py:630-650 | src/integrations/prefect-github/prefect_github/repository.py:1618-1638 | src/integrations/prefect-github/prefect_github/user.py:775-795 | src/integrations/prefect-github/prefect_github/viewer.py:693-711 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacf0ba95f4d1005ff14d864295c131ffb6a9e85c686cd62e0d4d2fa2a47defa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 4): src/integrations/prefect-github/prefect_github/organization.py:895-915 | src/integrations/prefect-github/prefect_github/repository.py:2295-2315 | src/integrations/prefect-github/prefect_github/user.py:1094-1114 | src/integrations/prefect-github/prefect_github/viewer.py:976-994 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4d783a5fd88aab977edfa2d64510454f611af9ff0d94a475538ab796f95dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 4): src/integrations/prefect-github/prefect_github/organization.py:976-996 | src/integrations/prefect-github/prefect_github/repository_owner.py:165-185 | src/integrations/prefect-github/prefect_github/user.py:1175-1195 | src/integrations/prefect-github/prefect_github/viewer.py:1051-1069 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository_owner.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"84917194b6b5d30019016e8722c045f663f2f782e844fc2a8b3fd8edccc6d6f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201321 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:396-416 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:624-638 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:451-471 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:717-731 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:396\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af1bc50ca6d030f57e32d293c56886c4ff20be2cd3fe5e342e5c161d53cd915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/integrations/prefect-github/prefect_github/organization.py:399-419 | src/integrations/prefect-github/prefect_github/repository.py:939-959 | src/integrations/prefect-github/prefect_github/user.py:419-439 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"5675b85d66ac65a56c6811fcb850be6a88eefd40bc423ee3f81a3d3d7818b5db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): src/integrations/prefect-github/prefect_github/organization.py:464-484 | src/integrations/prefect-github/prefect_github/user.py:484-504 | src/integrations/prefect-github/prefect_github/viewer.py:432-450 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb7b4a13f9a4a0c5e404a8f2e1ee61ab964d874a937d80ad096099bd7216f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): src/integrations/prefect-github/prefect_github/organization.py:1942-1962 | src/integrations/prefect-github/prefect_github/user.py:2311-2331 | src/integrations/prefect-github/prefect_github/viewer.py:2067-2085 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36ef8d6c7a3249beab1299feb6a088230c17abd252f00161dfa31f71bcb421b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): src/integrations/prefect-github/prefect_github/organization.py:2006-2026 | src/integrations/prefect-github/prefect_github/user.py:2452-2472 | src/integrations/prefect-github/prefect_github/viewer.py:2196-2214 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef195eafedc956d82c9df60c742a1958e19d34ab2398aad67cc9f49384dc907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): src/integrations/prefect-github/prefect_github/repository.py:646-666 | src/integrations/prefect-github/prefect_github/user.py:205-225 | src/integrations/prefect-github/prefect_github/viewer.py:183-201 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 244 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":"src/integrations/prefect-github/prefect_github/repository.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb16163056b849308534c761614e2f89f3c5f85c4ea1147ef7349378ea8439e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/integrations/prefect-databricks/prefect_databricks/flows.py:183-201 | src/integrations/prefect-databricks/prefect_databricks/flows.py:526-546 \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 \u0060src/integrations/prefect-databricks/prefect_databricks/flows.py:183\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":"src/integrations/prefect-databricks/prefect_databricks/flows.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3614a6ac2a8122b26b19f45c86cc0e23744453ddcfd27562ef772bd7be4e283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/integrations/prefect-github/prefect_github/organization.py:1130-1150 | src/integrations/prefect-github/prefect_github/user.py:1671-1691 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9858c112015730a55cd7e5d0ec5cde372555be2d7d735682b1e5eadd8c7dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/integrations/prefect-github/prefect_github/repository.py:2371-2391 | src/integrations/prefect-github/prefect_github/user.py:1383-1403 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 244 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":"src/integrations/prefect-github/prefect_github/repository.py"},"region":{"startLine":2371}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96d65efcbeb9a008830dac3fc69cdbadb3e1b784c69bbef8e9ddfcdaaee70fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/integrations/prefect-github/prefect_github/user.py:139-159 | src/integrations/prefect-github/prefect_github/viewer.py:123-141 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/viewer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 449 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c92224a578245c8141a23a52dc23fabb51ae731b0a0ed240178a7bbef1c9909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/integrations/prefect-github/prefect_github/user.py:1825-1845 | src/integrations/prefect-github/prefect_github/viewer.py:1629-1647 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/viewer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 449 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"708735c683cb7b996c9fcca8cec6389e0feaa86eb67e17e0215eaa1cb73a2f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/integrations/prefect-github/prefect_github/user.py:1994-2014 | src/integrations/prefect-github/prefect_github/viewer.py:1780-1798 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/viewer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 449 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"36dd4919625330041e3525eb9e642429e4006407a353a3d93240b5496099660b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/prefect/_internal/waiters.py:120-140 | src/prefect/task_runs.py:116-136 \u2014 before extracting anything, compare \u0060src/prefect/_internal/waiters.py\u0060 and \u0060src/prefect/task_runs.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/waiters.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"88059b552a5f9ac029f3d0fbf7495366242e902f43c4c17d85000aef0c64a05b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/prefect/cli/automation.py:457-477 | src/prefect/cli/automation.py:571-591 \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":"src/prefect/cli/automation.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e12f6a82bce83f4b360d8748ad61fc16ad60dabafb290a33059f6d86b6b4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/prefect/flow_runs.py:249-269 | src/prefect/flow_runs.py:406-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":"src/prefect/flow_runs.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d27dcd7dd781352cca080dde5751c9a6f5f4e962f98f5670983158357e648e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/prefect/locking/memory.py:106-124 | src/prefect/locking/memory.py:159-179 \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 \u0060src/prefect/locking/memory.py:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"src/prefect/locking/memory.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6ce9577c28850412e52cbd6530ac21f94c05a28aed50ef2a10b9afc99824f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/prefect/results.py:573-593 | src/prefect/results.py:627-647 \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 \u0060src/prefect/results.py:573\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":"src/prefect/results.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d578d28a8d96a234e2f62624ffbdc8f5845dee4365234ac3632b01a861a433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): src/prefect/server/models/work_queues.py:387-407 | src/prefect/server/models/workers.py:792-810 \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 \u0060src/prefect/server/models/work_queues.py:387\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 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":"src/prefect/server/models/work_queues.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25c156a63e8ba2d6f0c7de15e5f9dbe2125ed37219c1fbac83fb692c2960314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 21): src/integrations/prefect-github/prefect_github/organization.py:159-178 | src/integrations/prefect-github/prefect_github/organization.py:337-356 | src/integrations/prefect-github/prefect_github/organization.py:981-1000 | src/integrations/prefect-github/prefect_github/repository.py:343-362 | src/integrations/prefect-github/prefect_github/repository.py:474-493 | src/integrations/prefect-github/prefect_github/repository.py:649-668 | src/integrations/prefect-github/prefect_github/repository.py:1018-1037 | src/integrations/prefect-github/prefect_github/repository.py:2376-2395 | src/integrations/prefect-github/prefect_github/repository_owner.py:170-189 | src/integrations/prefect-github/prefect_github/user.py:208-227 | src/integrations/prefect-github/prefect_github/user.py:357-376 | src/integrations/prefect-github/prefect_github/user.py:565-584 | src/integrations/prefect-github/prefect_github/user.py:1180-1199 | src/integrations/prefect-github/prefect_github/user.py:1388-1407 | src/integrations/prefect-github/prefect_github/user.py:2389-2408 | src/integrations/prefect-github/prefect_github/viewer.py:184-203 | src/integrations/prefect-github/prefect_github/viewer.py:315-334 | src/integrations/prefect-github/prefect_github/viewer.py:505-524 | src/integrations/prefect-github/prefect_github/viewer.py:1054-1073 | src/integrations/prefect-github/prefect_github/viewer.py:1238-1257 | src/integrations/prefect-github/prefect_github/viewer.py:2137-2156 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb9fd2fa54c28987ae593213e76584f7daa8a02364bce3682c9056fbf65b7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 14): src/integrations/prefect-github/prefect_github/organization.py:268-287 | src/integrations/prefect-github/prefect_github/organization.py:402-421 | src/integrations/prefect-github/prefect_github/organization.py:1405-1424 | src/integrations/prefect-github/prefect_github/organization.py:1475-1494 | src/integrations/prefect-github/prefect_github/organization.py:1643-1662 | src/integrations/prefect-github/prefect_github/organization.py:1752-1771 | src/integrations/prefect-github/prefect_github/repository.py:942-961 | src/integrations/prefect-github/prefect_github/repository.py:1552-1571 | src/integrations/prefect-github/prefect_github/user.py:422-441 | src/integrations/prefect-github/prefect_github/user.py:1896-1915 | src/integrations/prefect-github/prefect_github/user.py:2067-2086 | src/integrations/prefect-github/prefect_github/viewer.py:374-393 | src/integrations/prefect-github/prefect_github/viewer.py:1692-1711 | src/integrations/prefect-github/prefect_github/viewer.py:1845-1864 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"438994e11ff6621db4e4d9fa5ae3b3df41b8811bf46bb1a46e4ffd90e217620e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 4): src/integrations/prefect-github/prefect_github/organization.py:1132-1151 | src/integrations/prefect-github/prefect_github/repository.py:2594-2613 | src/integrations/prefect-github/prefect_github/user.py:1673-1692 | src/integrations/prefect-github/prefect_github/viewer.py:1495-1512 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"326060a8319c8be86485c47a5d1e4fe3ecdf7e0ff0ceb84d025de11294d48ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/integrations/prefect-github/prefect_github/organization.py:679-698 | src/integrations/prefect-github/prefect_github/repository_owner.py:86-105 | src/integrations/prefect-github/prefect_github/user.py:824-843 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository_owner.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 102 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"703b997952cbc5b78fb52b101ad98c1f4518f34762e499828559ec66694a12e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 3): src/integrations/prefect-github/prefect_github/repository.py:2655-2674 | src/integrations/prefect-github/prefect_github/user.py:1727-1746 | src/integrations/prefect-github/prefect_github/viewer.py:1543-1560 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 244 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":"src/integrations/prefect-github/prefect_github/repository.py"},"region":{"startLine":2655}}}],"partialFingerprints":{"codehealthFindingId/v1":"635bb89bcbb2e3558a24c13fcc1ff308b875803171d0b7b19022314b9bc44200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py:67-86 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:111-129 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:111-129 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 279 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py:67\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ec989ebc7993a8e448f905bf7fba3f94f3399ddc8b6750ba146c4589ad8878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/prefect/server/worker_communication/cleanup_queue/memory.py:263-282 | src/prefect/server/worker_communication/cleanup_queue/memory.py:316-335 | src/prefect/server/worker_communication/cleanup_queue/memory.py:380-399 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/worker_communication/cleanup_queue/memory.py:314\u0060 calls \u0060ValueError\u0060 and \u0060src/prefect/server/worker_communication/cleanup_queue/memory.py:262\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":"src/prefect/server/worker_communication/cleanup_queue/memory.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cabf5a166f9e934b907dbdfa376e7ddde4cad99455aad3462b4b5493f2257f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/core/_freshness.py:210-229 | src/integrations/prefect-dbt/prefect_dbt/core/_manifest.py:601-620 \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":"src/integrations/prefect-dbt/prefect_dbt/core/_freshness.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"5786d5b5d8ce7b15a9b8e74733673db821737d5768b2a6d56b626ed306cdffd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/core/_manifest.py:320-339 | src/integrations/prefect-dbt/prefect_dbt/core/_manifest.py:463-479 \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. 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":"src/integrations/prefect-dbt/prefect_dbt/core/_manifest.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"f595bad0ea92db0af92c253a50f3a3693c9b029ace572af2a1a137508ff8f584"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/integrations/prefect-github/prefect_github/user.py:663-682 | src/integrations/prefect-github/prefect_github/viewer.py:593-610 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/viewer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 449 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"4402602d32488d8ddd63cf9daae6adc5a5d49d8fd2079a8c783e36d95859f3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/integrations/prefect-github/prefect_github/user.py:717-736 | src/integrations/prefect-github/prefect_github/viewer.py:641-658 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/viewer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 449 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a6d3f4ac789678dc1d50e9f00ae6f74a3661ccac8a0e805be6a91caccdc756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/integrations/prefect-github/prefect_github/user.py:936-955 | src/integrations/prefect-github/prefect_github/viewer.py:836-853 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/viewer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 449 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0563c6aae3684c9b6ac65eae9a12551e97d7844ddbf3645cdfee36eb654992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/integrations/prefect-github/prefect_github/user.py:1273-1292 | src/integrations/prefect-github/prefect_github/viewer.py:1137-1154 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/viewer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 449 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"2337ce83a159abc7ca47475937c61b159b23a6593f9fb1dbc33b83f4b9f20fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/integrations/prefect-github/prefect_github/user.py:1619-1638 | src/integrations/prefect-github/prefect_github/viewer.py:1447-1464 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/viewer.py\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 449 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":"src/integrations/prefect-github/prefect_github/user.py"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ad5baccea671685b53edea092215f0def95d5fad8a59132a9f9c54e9d502bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:681-700 | src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:756-775 \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 \u0060src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:681\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 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":"src/integrations/prefect-redis/prefect_redis/cleanup_queue.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02ec3054f1163b94923417277ad7fc14f2dae6d7cbadaf747e2c8dcd20ed27c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): src/prefect/deployments/flow_runs.py:195-212 | src/prefect/deployments/flow_runs.py:392-411 \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 \u0060src/prefect/deployments/flow_runs.py:195\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":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"161373495b1b856fd64a6bce8a9f1863f2c9213129f1190c1bb72ee76f3bded2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/prefect/deployments/runner.py:1104-1123 | src/prefect/deployments/runner.py:1255-1274 \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 \u0060src/prefect/deployments/runner.py:1104\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":"src/prefect/deployments/runner.py"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"303c3556a92596fbddfdf3f8e741c96377b148d5f1c45324649eec1fca29ee08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/events/schemas/labelling.py:28-49 | src/prefect/server/events/schemas/labelling.py:28-49 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/labelling.py\u0060 and \u0060src/prefect/server/events/schemas/labelling.py\u0060 as WHOLE FILES: 100% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/schemas/labelling.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d30f1ddb9ad2dffdee45cf7449f1b72d8571da2b4550f57617623f8197e5dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/prefect/flow_engine.py:1293-1312 | src/prefect/flow_engine.py:2029-2047 \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":"src/prefect/flow_engine.py"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1255934a24e1f270a85215a4e641adb65412a91d37b75e20ad5bbd3be6f7cec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/prefect/flows.py:2071-2090 | src/prefect/flows.py:2124-2143 \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 \u0060src/prefect/flows.py:2071\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":"src/prefect/flows.py"},"region":{"startLine":2071}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3fdc91a5511a3fa855de0e83b45c6c7c6789e758b32c3c226832f6eb1e8e8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/prefect/locking/memory.py:80-99 | src/prefect/locking/memory.py:133-152 \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. 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":"src/prefect/locking/memory.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e49aa01a5af95f43989111c6787c1332b77466a2a98bd2003b89dc91e41d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/prefect/server/models/artifacts.py:209-228 | src/prefect/server/models/artifacts.py:256-275 \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 \u0060src/prefect/server/models/artifacts.py:209\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":"src/prefect/server/models/artifacts.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3ff5d97890d45c10030e07c1e629e58ac1c418d1062547cb2b8b6d8fde93e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): src/prefect/server/models/events.py:466-485 | src/prefect/server/models/events.py:551-569 \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 \u0060src/prefect/server/models/events.py:466\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":"src/prefect/server/models/events.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f14e97611bb0fd68f67ef0efaa3cbd326f26b85e9a95febabc516cf32b0567b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/prefect/server/orchestration/rules.py:296-315 | src/prefect/server/orchestration/rules.py:453-472 \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":"src/prefect/server/orchestration/rules.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"6101eea6cf89e5da2e746bd5272303e1fdb11766d4050f06eb132ff2c68510f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 64): src/integrations/prefect-github/prefect_github/organization.py:161-179 | src/integrations/prefect-github/prefect_github/organization.py:270-288 | src/integrations/prefect-github/prefect_github/organization.py:339-357 | src/integrations/prefect-github/prefect_github/organization.py:404-422 | src/integrations/prefect-github/prefect_github/organization.py:467-485 | src/integrations/prefect-github/prefect_github/organization.py:530-548 | src/integrations/prefect-github/prefect_github/organization.py:633-651 | src/integrations/prefect-github/prefect_github/organization.py:898-916 | src/integrations/prefect-github/prefect_github/organization.py:983-1001 | src/integrations/prefect-github/prefect_github/organization.py:1407-1425 | src/integrations/prefect-github/prefect_github/organization.py:1477-1495 | src/integrations/prefect-github/prefect_github/organization.py:1645-1663 | src/integrations/prefect-github/prefect_github/organization.py:1754-1772 | src/integrations/prefect-github/prefect_github/organization.py:1945-1963 | src/integrations/prefect-github/prefect_github/organization.py:2009-2027 | src/integrations/prefect-github/prefect_github/repository.py:345-363 | src/integrations/prefect-github/prefect_github/repository.py:476-494 | src/integrations/prefect-github/prefect_github/repository.py:651-669 | src/integrations/prefect-github/prefect_github/repository.py:719-737 | src/integrations/prefect-github/prefect_github/repository.py:944-962 | src/integrations/prefect-github/prefect_github/repository.py:1020-1038 | src/integrations/prefect-github/prefect_github/repository.py:1554-1572 | src/integrations/prefect-github/prefect_github/repository.py:1621-1639 | src/integrations/prefect-github/prefect_github/repository.py:1798-1816 | src/integrations/prefect-github/prefect_github/repository.py:1870-1888 | src/integrations/prefect-github/prefect_github/repository.py:2298-2316 | src/integrations/prefect-github/prefect_github/repository.py:2378-2396 | src/integrations/prefect-github/prefect_github/repository.py:2490-2508 | src/integrations/prefect-github/prefect_github/repository.py:3254-3272 | src/integrations/prefect-github/prefect_github/repository_owner.py:172-190 | src/integrations/prefect-github/prefect_github/user.py:142-160 | src/integrations/prefect-github/prefect_github/user.py:210-228 | src/integrations/prefect-github/prefect_github/user.py:359-377 | src/integrations/prefect-github/prefect_github/user.py:424-442 | src/integrations/prefect-github/prefect_github/user.py:487-505 | src/integrations/prefect-github/prefect_github/user.py:567-585 | src/integrations/prefect-github/prefect_github/user.py:778-796 | src/integrations/prefect-github/prefect_github/user.py:1097-1115 | src/integrations/prefect-github/prefect_github/user.py:1182-1200 | src/integrations/prefect-github/prefect_github/user.py:1390-1408 | src/integrations/prefect-github/prefect_github/user.py:1828-1846 | src/integrations/prefect-github/prefect_github/user.py:1898-1916 | src/integrations/prefect-github/prefect_github/user.py:1997-2015 | src/integrations/prefect-github/prefect_github/user.py:2069-2087 | src/integrations/prefect-github/prefect_github/user.py:2314-2332 | src/integrations/prefect-github/prefect_github/user.py:2391-2409 | src/integrations/prefect-github/prefect_github/user.py:2455-2473 | src/integrations/prefect-github/prefect_github/viewer.py:124-142 | src/integrations/prefect-github/prefect_github/viewer.py:186-204 | src/integrations/prefect-github/prefect_github/viewer.py:317-335 | src/integrations/prefect-github/prefect_github/viewer.py:376-394 | src/integrations/prefect-github/prefect_github/viewer.py:433-451 | src/integrations/prefect-github/prefect_github/viewer.py:507-525 | src/integrations/prefect-github/prefect_github/viewer.py:694-712 | src/integrations/prefect-github/prefect_github/viewer.py:977-995 | src/integrations/prefect-github/prefect_github/viewer.py:1056-1074 | src/integrations/prefect-github/prefect_github/viewer.py:1240-1258 | src/integrations/prefect-github/prefect_github/viewer.py:1630-1648 | src/integrations/prefect-github/prefect_github/viewer.py:1694-1712 | src/integrations/prefect-github/prefect_github/viewer.py:1781-1799 | src/integrations/prefect-github/prefect_github/viewer.py:1847-1865 | src/integrations/prefect-github/prefect_github/viewer.py:2068-2086 | src/integrations/prefect-github/prefect_github/viewer.py:2139-2157 | src/integrations/prefect-github/prefect_github/viewer.py:2197-2215 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"859975d6a91ba49a6d005a7416e6ae5a500ef01def42145da72396a002cb3e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 27): src/integrations/prefect-github/prefect_github/organization.py:738-756 | src/integrations/prefect-github/prefect_github/organization.py:838-856 | src/integrations/prefect-github/prefect_github/organization.py:1079-1097 | src/integrations/prefect-github/prefect_github/organization.py:1195-1213 | src/integrations/prefect-github/prefect_github/organization.py:1576-1594 | src/integrations/prefect-github/prefect_github/organization.py:1816-1834 | src/integrations/prefect-github/prefect_github/organization.py:1879-1897 | src/integrations/prefect-github/prefect_github/repository.py:1084-1102 | src/integrations/prefect-github/prefect_github/repository.py:1209-1227 | src/integrations/prefect-github/prefect_github/repository.py:1373-1391 | src/integrations/prefect-github/prefect_github/repository.py:2764-2782 | src/integrations/prefect-github/prefect_github/repository.py:2916-2934 | src/integrations/prefect-github/prefect_github/repository.py:3320-3338 | src/integrations/prefect-github/prefect_github/user.py:883-901 | src/integrations/prefect-github/prefect_github/user.py:1037-1055 | src/integrations/prefect-github/prefect_github/user.py:1450-1468 | src/integrations/prefect-github/prefect_github/user.py:1508-1526 | src/integrations/prefect-github/prefect_github/user.py:1566-1584 | src/integrations/prefect-github/prefect_github/user.py:2131-2149 | src/integrations/prefect-github/prefect_github/user.py:2194-2212 | src/integrations/prefect-github/prefect_github/viewer.py:787-805 | src/integrations/prefect-github/prefect_github/viewer.py:923-941 | src/integrations/prefect-github/prefect_github/viewer.py:1294-1312 | src/integrations/prefect-github/prefect_github/viewer.py:1346-1364 | src/integrations/prefect-github/prefect_github/viewer.py:1398-1416 | src/integrations/prefect-github/prefect_github/viewer.py:1903-1921 | src/integrations/prefect-github/prefect_github/viewer.py:1960-1978 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/repository.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 182 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":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"438be59fe6d6fb02e6919c964c387002d16cc872660a904feb2c3cac9b58e347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:41-59 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:51-69 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:273-291 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:51-69 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:73-91 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:323-341 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 250 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:41\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac595f0069411c4596e5e396d5bf158c4a7701f197b561a0a8ae603d3f04e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 3): src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:263-281 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:27-45 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:281-296 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 247 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":"src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a9aa8c9354218addb8f3da4f0a16987498f2ed8ffecf4ae95a9e77c20daa9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py:779-797 | src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py:1108-1124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a77a46c54cab2612715a7c5036ae7ee6242a51574d9fc23120122228b08241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:2244-2261 | src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:2273-2291 \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":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":2244}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b08e5213489cb012ff59002c4c1372fcf223f80dcc496d23f017ea44a96d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/integrations/prefect-docker/prefect_docker/worker.py:733-751 | src/prefect/workers/process.py:261-279 \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. 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":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"6defc900b9b30b8ae4028214ee98c7c80799af154763cafcba355fb2a7ec9a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/prefect/cli/transfer/_migratable_resources/automations.py:163-181 | src/prefect/cli/transfer/_migratable_resources/automations.py:183-201 \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":"src/prefect/cli/transfer/_migratable_resources/automations.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3e8707e31821038b29e4ed66f4d8f4a8ab5d90256fcf03a14f7928c750563f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/prefect/client/orchestration/_flow_runs/client.py:399-417 | src/prefect/client/orchestration/_flow_runs/client.py:927-945 \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 \u0060src/prefect/client/orchestration/_flow_runs/client.py:399\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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9a60f9c5fc9fdfc40b9c5cc31467d1b2bb6756777e92189b73864cfcf8cd65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:25-42 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:246-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:25\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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0135d64e2c309a9494c258ab5f820f011ff7aa3285e8d709f323840ab06e8ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/prefect/states.py:495-513 | src/prefect/states.py:596-614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"src/prefect/states.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f1b9c145c8b13ce8dacb6e79acd312623b2a642cf099c5ff0bfa9d0b403c30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/prefect/task_engine.py:657-675 | src/prefect/task_engine.py:1320-1338 \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 \u0060src/prefect/task_engine.py:657\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060transaction\u0060 to \u0060Transaction\u0060 in one and \u0060AsyncTransaction\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"e195c0329f2fe2d1d4219a5a038713261e63b3e19955366091bbc366a4ee86da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/prefect/transactions.py:435-453 | src/prefect/transactions.py:599-617 \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 \u0060src/prefect/transactions.py:435\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 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":"src/prefect/transactions.py"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"05238d8464bfd7a1349bd180646981d9c651363a2f7b076f47a2f2ed1c687a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/prefect/utilities/callables/__init__.py:700-718 | src/prefect/utilities/callables/__init__.py:830-848 \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":"src/prefect/utilities/callables/__init__.py"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"8573461cacf661a73a4172ade88fdd44ed8a4fe61ce890ca7417fa837dcb75ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:207-224 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:47-64 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:153-170 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:54-71 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:159-176 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:207\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"006deb52d567169243266d64db0f39965fe490c9c9b176aa69699eadc8e863eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): src/prefect/flows.py:839-856 | src/prefect/flows.py:862-879 | src/prefect/flows.py:982-999 | src/prefect/flows.py:1007-1024 \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":"src/prefect/flows.py"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"659d4ad608f5dfb8c60a215bf86c687b6e2c7a5fdbdf7fc18c22754e137b8b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:35-49 | src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:93-107 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py:40-57 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py:110-124 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 84 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:93\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 before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:32\u0060 calls \u0060drop_constraint\u0060, \u0060batch_alter_table\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:93\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"8657697d721cd19ad2392eef4d2e4b2f641c7958a1ea8abcc997aac8494e7e2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:20-34 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py:58-75 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py:22-36 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py:62-79 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 98 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py:20\u0060 calls \u0060execute\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:19\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e058b6424de6608cec96f661135cb2ebc85a15e691b7fa65824be6a3eff419b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/integrations/prefect-github/prefect_github/mutations.py:51-68 | src/integrations/prefect-github/prefect_github/mutations.py:378-395 | src/integrations/prefect-github/prefect_github/mutations.py:462-479 \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":"src/integrations/prefect-github/prefect_github/mutations.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8481e98e8e705371805fc7f22d836a96284c9837945eaa0be1022d812306af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): src/prefect/cli/work_pool.py:1423-1438 | src/prefect/cli/work_pool.py:1568-1585 | src/prefect/cli/work_pool.py:1716-1733 \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. 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":"src/prefect/cli/work_pool.py"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca23ff280927276ae1996016d0949eb55072aba64200937dedc68ddad99f4294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/deployments/steps.py:92-109 | src/integrations/prefect-gcp/prefect_gcp/deployments/steps.py:194-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/deployments/steps.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"41028685d5a6357f7d8c704b3a2c4888172ca83ab0138c36123e30365aeb5b10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/integrations/prefect-github/prefect_github/mutations.py:115-132 | src/integrations/prefect-github/prefect_github/mutations.py:597-614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/mutations.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6862a5b325d10b770b91e3c9c3333f6802eb19900f37e930f1f780fa8d09195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/integrations/prefect-github/prefect_github/mutations.py:420-437 | src/integrations/prefect-github/prefect_github/mutations.py:504-521 \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":"src/integrations/prefect-github/prefect_github/mutations.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1fb82a692ee5beef88564656d879d2548b02d10ee57669844f8c89ae7758ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/cli/deploy/_core.py:476-493 | src/prefect/flows.py:1619-1636 \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 \u0060src/prefect/cli/deploy/_core.py:476\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":"src/prefect/cli/deploy/_core.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de80ab18ed08545b95d01bd0a2b747ea97a8cca5899184daf68ede233f014ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/cli/deploy/_sla.py:20-37 | src/prefect/cli/deploy/_triggers.py:51-68 \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. 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":"src/prefect/cli/deploy/_sla.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e4953f844ee0ffd9a16c21f5cc2bac46ebe07ecc81612bec65d28f27f2fd09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/client/base.py:315-332 | src/prefect/client/base.py:588-605 \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":"src/prefect/client/base.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"a781278d2ff338711892e6997866036ce30a2f31fa154b7ced29c668455d5108"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): src/prefect/client/orchestration/_blocks_types/client.py:127-144 | src/prefect/client/orchestration/_blocks_types/client.py:308-324 \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 \u0060src/prefect/client/orchestration/_blocks_types/client.py:308\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":"src/prefect/client/orchestration/_blocks_types/client.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"0679f43698d638c9403075fc78f2c96e0a6ce0eb394fb16ef0f2e19d1ad218c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:358-375 | src/prefect/client/orchestration/_deployments/client.py:1072-1089 \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 \u0060src/prefect/client/orchestration/_deployments/client.py:358\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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2cc8388e1273f5cbffca5aa274eed1cb77061a12a02fc402db2a1ea484ad37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/client/orchestration/_work_pools/client.py:66-83 | src/prefect/client/orchestration/_work_pools/client.py:394-411 \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 \u0060src/prefect/client/orchestration/_work_pools/client.py:66\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 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":"src/prefect/client/orchestration/_work_pools/client.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9691829bf65d40f5a799618aa48ca089bd19fb53aa5f28a0fc77211fc400c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/client/schemas/schedules.py:56-73 | src/prefect/server/schemas/schedules.py:736-753 \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. 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":"src/prefect/client/schemas/schedules.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"67103d8669144f279a1706b9d212b0b757bd86b5d55df483ac3eabd9e40b734d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/events/schemas/automations.py:220-237 | src/prefect/server/events/schemas/automations.py:362-379 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/automations.py\u0060 and \u0060src/prefect/server/events/schemas/automations.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060data\u0060 to \u0060Dict[str, Any]\u0060 in one and \u0060Dict[str, Any] | Any\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/schemas/automations.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f571aa9c884964054757d3659c265fdd34107c786ad0d4db46d2fdb613f377d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/flow_engine.py:1170-1187 | src/prefect/flow_engine.py:1905-1922 \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 \u0060src/prefect/flow_engine.py:1170\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":"src/prefect/flow_engine.py"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2bf2acb90635fdb9b50f8fd0eeb5db13d332e9ee7223f7c3ab1eb7510222683"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/input/actions.py:38-55 | src/prefect/input/actions.py:69-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":"src/prefect/input/actions.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dca74fa2a2162aa9ad8e83a89b15cbd8f3feffd093e072762611385d4b0d53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/input/run_input.py:623-640 | src/prefect/input/run_input.py:732-749 \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. 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":"src/prefect/input/run_input.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d91eb69e555b3504e203bc4f66caa8f023bd0a2abf07a181d603d2d20f2a75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:138-153 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:159-176 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"064f56a12bd1b60b2e4db21ff76c54bd197fb6abb5034b531236679e6fcbd8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py:20-37 | src/prefect/server/database/_migrations/versions/sqlite/2022_08_07_134138_575634b7acd4_add_work_queue_name_to_runs.py:20-37 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_08_07_134138_575634b7acd4_add_work_queue_name_to_runs.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8720d21871b49f2f616e5ad7e1f2bf948ecbf389a36afb842d4be86641e452"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py:99-116 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:48-65 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3871073dd16374f5f5172ddbf7decd6636e27589f9a52c2b5153d3aea700bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 2): src/prefect/server/services/scheduler.py:72-89 | src/prefect/server/services/scheduler.py:91-103 \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 \u0060src/prefect/server/services/scheduler.py:72\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":"src/prefect/server/services/scheduler.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"032177a743f6788d3b0dd24eeadcf4411efc06ab3ed9913ce9969e03baac694c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/task_engine.py:677-694 | src/prefect/task_engine.py:1340-1357 \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":"src/prefect/task_engine.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c86886c9d3ce5db3de5f9d95fb7921a757be08d68506f0b6c1b68d34f1b4a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/task_engine.py:829-846 | src/prefect/task_engine.py:1498-1515 \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":"src/prefect/task_engine.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"330272029b88f06d105eb640b84b0e5adc654f929cf3d3282c2e18d799f15f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/transactions.py:368-385 | src/prefect/transactions.py:532-549 \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 \u0060src/prefect/transactions.py:368\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 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":"src/prefect/transactions.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"211c23fece30c896051f749414213b3802a9e47a5eb88fa360e94a4d7c685f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 8): src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:77-93 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:82-98 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:92-108 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:314-330 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:91-107 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:102-118 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:122-138 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:374-390 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 as WHOLE FILES: this scan already matched 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py: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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f8deec285daafb702f069e3bccdb810837c6f6da88b8d0d29b8509129a02c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 6): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:273-287 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:504-520 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:709-725 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:321-335 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:584-600 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:827-843 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:273\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3aa9c0f7ef2ab31325f316bc75c3c56b74d9c2058c79cf3c68968890827e15b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:104-120 | src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:56-72 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:190-206 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:107-123 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:118-134 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:107-123 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:104\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fcae6ea97d36f09dfd9b919cd63278d262b3fd77fd62e583554ddd56e98ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:142-158 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:214-230 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:54-70 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:84-100 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:160-176 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:142\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 before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:140\u0060 calls \u0060create_index\u0060, \u0060f\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:213\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6963b07850e361d7c6326d46c0bac75666bb475cd6fc380fd91d54a8fc36c876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/core/runner.py:872-886 | src/integrations/prefect-dbt/prefect_dbt/core/runner.py:1131-1147 \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. 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":"src/integrations/prefect-dbt/prefect_dbt/core/runner.py"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eea0b5d63b5040907a1e982886d825a765aef158e71b19729afbd54e707b779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/integrations/prefect-github/prefect_github/mutations.py:298-314 | src/integrations/prefect-github/prefect_github/mutations.py:337-353 \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":"src/integrations/prefect-github/prefect_github/mutations.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"097899e33d508eb9b0d9763bf576babd8d0a5c7a7a429bca207cbd2aa445d15d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/prefect/_internal/concurrency/calls.py:418-433 | src/prefect/_internal/concurrency/calls.py:452-468 \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":"src/prefect/_internal/concurrency/calls.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c025168a0fa585124d959bc6ac49525e8035b35fc9ca6cbe81fef8eecf9ed4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/_internal/observers.py:233-249 | src/prefect/_internal/observers.py:402-418 \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":"src/prefect/_internal/observers.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e1cf44faf535bc4e20b890f2086ecb81ef832a29a93965b5c4e3852f14ac34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/cli/work_pool.py:1189-1205 | src/prefect/cli/work_queue.py:743-759 \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 \u0060src/prefect/cli/work_pool.py:1189\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":"src/prefect/cli/work_pool.py"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4be377e68c957bc51d79121318a830ea3ce45e23a03301fedba22a19df1f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:439-455 | src/prefect/client/orchestration/__init__.py:1366-1382 \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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc445aa39120c74722aab70d783a48a4a3b4076855feb5584377512e22a42f84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/client/orchestration/_concurrency_limits/client.py:82-98 | src/prefect/client/orchestration/_concurrency_limits/client.py:543-559 \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 \u0060src/prefect/client/orchestration/_concurrency_limits/client.py:82\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":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"47959056dcdec7de41bd76fd883b04db06c76ebef0565c8b325a9e874cc65533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/events/filters.py:141-157 | src/prefect/server/events/filters.py:232-248 \u2014 before extracting anything, compare \u0060src/prefect/events/filters.py\u0060 and \u0060src/prefect/server/events/filters.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 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 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":"src/prefect/events/filters.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9704d7c5f5486600840c07f925192ebce6974286a6aa8426b8c40849ab1059d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/flow_engine.py:720-736 | src/prefect/flow_engine.py:1462-1478 \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 \u0060src/prefect/flow_engine.py:720\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 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":"src/prefect/flow_engine.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"acebd530e0a76e61db05c18f6ea006146bfd05e03579a1f419f325602e2e8919"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:199-215 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:234-250 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:199\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"888186165fc7711ac3423bdb37ae8eeeb6e74b154e52027a7ecefa0cbc5657cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py:19-31 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py:24-40 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_04_23_114831_fd966d4ad99c_rename_block_to_blockbasis_and_.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 84 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_04_23_132803_d38c5e6a9115_rename_block_to_blockbasis_and_.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f50e87e58fa6beb56736febb4614d224bfeba2752f8197b4eb6f47d9300800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py:41-57 | src/prefect/server/database/_migrations/versions/sqlite/2022_08_07_134138_575634b7acd4_add_work_queue_name_to_runs.py:41-57 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_08_07_134138_575634b7acd4_add_work_queue_name_to_runs.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1b279c88f89b8b4be78a27e96375c9b62483de4550aba45c0160feeb836ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py:106-122 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py:129-145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py:106\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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d70f459d9d1602855f3b2a88af4d429586faefcfac9099f1ca32455e6a3c06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:28-42 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:27-43 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:28\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5196ee78a18bef696c53afd29e910cb27e202552670829d38820132925502b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/server/database/query_components.py:712-728 | src/prefect/server/database/query_components.py:1004-1020 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/query_components.py:712\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, \u0060src/prefect/server/database/query_components.py:1023\u0060 calls \u0060distinct\u0060 and \u0060src/prefect/server/database/query_components.py:731\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":"src/prefect/server/database/query_components.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed075ffa9971ea7bf089a6728966df7626a3b88d43ee33d8f6a39f8b0646d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/server/models/work_queues.py:110-126 | src/prefect/server/models/workers.py:541-557 \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 \u0060src/prefect/server/models/work_queues.py:110\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 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":"src/prefect/server/models/work_queues.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"2751dc030325c1df88e4ae7f2e988fe2cadce374a8f9aa2e3e1d33b556b7f357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/prefect/task_engine.py:748-764 | src/prefect/task_engine.py:1414-1429 \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. 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":"src/prefect/task_engine.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de53dc7e409837a29633855872074f2f8ee8975c162e3dfbeae25e514f486c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/prefect/task_engine.py:1840-1856 | src/prefect/task_engine.py:1918-1933 \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 \u0060src/prefect/task_engine.py:1918\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":"src/prefect/task_engine.py"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c143e9f9975ec5d627b493f25820a72a4512559a6f3cd80c19abf4bd91c8f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 95): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:44-57 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:75-88 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:116-129 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:155-168 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:188-201 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:227-240 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:299-312 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:458-471 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:532-545 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:663-676 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py:29-42 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py:29-42 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:28-41 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:66-79 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py:29-42 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_10_145956_1c9390e2f9c6_replace_version_with_checksum_and_.py:30-43 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:29-42 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:67-80 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:42-55 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:97-110 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:29-42 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:71-84 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:128-141 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:39-52 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:81-94 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:138-151 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:261-274 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:303-316 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:360-373 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py:28-41 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:47-60 | src/prefect/server/database/_migrations/versions/postgresql/2023_03_20_185238_d20618ce678e_add_artifact_collection_table.py:27-40 | src/prefect/server/database/_migrations/versions/postgresql/2023_04_05_134520_310dda75f561_add_variables.py:28-41 | src/prefect/server/database/_migrations/versions/postgresql/2023_08_02_133838_5f623ddbf7fe_create_concurrency_limit_v2_table.py:28-41 | src/prefect/server/database/_migrations/versions/postgresql/2023_12_07_095320_733ca1903976_create_flow_run_input_table.py:29-42 | src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:28-41 | src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py:35-48 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:59-72 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:117-130 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:173-186 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:243-256 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py:49-62 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:38-51 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:112-125 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:84-97 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:135-148 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:173-186 | src/prefect/server/database/_migrations/versions/postgresql/2026_10_19_000000_e7f54680bce3_add_automation_held_event.py:48-61 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:49-64 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:87-102 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:135-150 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:181-196 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:221-236 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:273-288 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:352-367 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:536-551 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:623-638 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:779-794 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_04_093838_619bea85701a_block_data.py:34-49 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_15_211737_28ae48128c75_add_configurations.py:34-49 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:33-48 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:78-93 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_20_103610_e1ff4973a9eb_add_block_spec_table.py:34-49 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py:35-50 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:34-49 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:79-94 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:47-62 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:109-124 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:37-52 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:89-104 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:154-169 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:59-74 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:109-124 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:174-189 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:309-324 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:361-376 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:426-441 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000042_f92143d30c24_implement_artifact_table.py:35-50 | src/prefect/server/database/_migrations/versions/sqlite/2023_03_20_184534_b9aafc3ab936_add_artifact_collection_table.py:35-50 | src/prefect/server/database/_migrations/versions/sqlite/2023_04_05_134301_3d46e23593d6_add_variables.py:35-50 | src/prefect/server/database/_migrations/versions/sqlite/2023_08_02_113813_5b0bd3b41a23_create_concurrency_limit_v2_table.py:34-49 | src/prefect/server/database/_migrations/versions/sqlite/2023_12_07_095112_a299308852a7_create_flow_run_input_table.py:34-49 | src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py:35-50 | src/prefect/server/database/_migrations/versions/sqlite/2024_03_13_111316_bacc60edce16_create_csrf_token_toble.py:35-50 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:58-73 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:120-135 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:175-190 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:246-261 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_09_125712_cc510aec4689_automation_event_follower.py:48-63 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:37-52 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:111-126 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:84-97 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:139-154 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:184-199 | src/prefect/server/database/_migrations/versions/sqlite/2026_10_19_000000_8f5eda7c1dd7_add_automation_held_event.py:48-63 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:44\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, \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:131\u0060 calls \u0060Column\u0060, \u0060Integer\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:59\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c482d33e6c762dc2d250b3d4ec9e92fa763d07c5feca47dfe1cc60a4df91fee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 7): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:212-225 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:52-65 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:82-95 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:158-171 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:59-74 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:89-104 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:164-179 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py: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. 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76e3d67fd7bb4d79035c4062a759ce3a63afcf9c277e3ac95e7f02a891f23e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 6): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:96-107 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:151-166 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:106-117 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:161-176 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:328-339 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:383-398 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 250 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6971765a0f5f02220486bfe52aab87e90fa52b77552d7d748b3f08be2276266"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 5): src/prefect/server/models/artifacts.py:317-331 | src/prefect/server/models/artifacts.py:363-377 | src/prefect/server/models/deployments.py:612-625 | src/prefect/server/models/flow_runs.py:328-342 | src/prefect/server/models/flows.py:248-263 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/models/artifacts.py:317\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":"src/prefect/server/models/artifacts.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbf69012c735d6d518489bab39d10d4963d5aa9ba77d9907f4696178f21d1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:26-37 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:247-259 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:39-54 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:290-304 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 125 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:26\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:37\u0060 calls \u0060drop_index\u0060, \u0060drop_constraint\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:25\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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"05811193ad4fce151aca3961de465b7ae2038e00129e5098439e3feb280bc41e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:360-371 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:78-93 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:415-426 \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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:360\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cf3bc80cb9abf6bb148906e91a707374b509ae7a5f5c8f21a31b3a960fdb62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): src/prefect/server/events/actions.py:797-812 | src/prefect/server/events/actions.py:1562-1575 | src/prefect/server/events/actions.py:1679-1694 \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":"src/prefect/server/events/actions.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aaa7c9e67559af625eb2bb05cb396d6a2ce034271f9bfaddad022db4aa8d46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/secrets_manager.py:134-149 | src/integrations/prefect-aws/prefect_aws/secrets_manager.py:224-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 \u0060src/integrations/prefect-aws/prefect_aws/secrets_manager.py:134\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/integrations/prefect-aws/prefect_aws/secrets_manager.py:152\u0060 calls \u0060pop\u0060 and \u0060src/integrations/prefect-aws/prefect_aws/secrets_manager.py:242\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":"src/integrations/prefect-aws/prefect_aws/secrets_manager.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f953ba0405db9ad68358f2609984a99c734b5127eda5cd90af2cdb6e4b7d67a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:664-679 | src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:934-949 \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 \u0060src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:664\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":"src/integrations/prefect-redis/prefect_redis/cleanup_queue.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"49690613481ad56be204d69e0d84f1e3328608e81effc2966e46ef57c289738f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/client/orchestration/_blocks_schemas/client.py:24-39 | src/prefect/client/orchestration/_blocks_schemas/client.py:118-133 \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 \u0060src/prefect/client/orchestration/_blocks_schemas/client.py:24\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":"src/prefect/client/orchestration/_blocks_schemas/client.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2af834924a67264cf717bb2348e36db1c7c14a011541da9ba649e023dd33fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:262-277 | src/prefect/client/orchestration/_deployments/client.py:975-990 \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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b684450c5b1673f31d3902edfa51b69abc1cde87895cb0ee039549963ef8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/deployments/flow_runs.py:215-230 | src/prefect/deployments/flow_runs.py:414-429 \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 \u0060src/prefect/deployments/flow_runs.py:215\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":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc656121c0934c0b7849b3d768a2894f520124cc39d11151acb32f2861c70613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): src/prefect/deployments/runner.py:1507-1520 | src/prefect/flows.py:1428-1443 \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":"src/prefect/deployments/runner.py"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"232bdb6499fccbf9f7009a5ff90bb460145a5b186f032ea55e4050de6790675a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/flows.py:1784-1799 | src/prefect/runner/runner.py:484-499 \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 \u0060src/prefect/flows.py:1784\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":"src/prefect/flows.py"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad777bfeaff4b74948d96824fbb0ba0b35e897515d60d8d813f0fb861b482e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/flows.py:2377-2392 | src/prefect/tasks.py:2200-2215 \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 \u0060src/prefect/flows.py:2377\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":"src/prefect/flows.py"},"region":{"startLine":2377}}}],"partialFingerprints":{"codehealthFindingId/v1":"7678bdead85faac4f75fabd5082f5db0c3f44c122327d2d8ec1767cf1aaaed13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/results.py:137-152 | src/prefect/results.py:178-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/results.py:137\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 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":"src/prefect/results.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bea74c799760b6bd4209435ce2b3613a048d7267f806c94c9846f322cc7f350"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/results.py:712-727 | src/prefect/results.py:757-772 \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 \u0060src/prefect/results.py:712\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 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":"src/prefect/results.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"d843a090ca78dba7f6b16578ab18270c98ddfdc744fa1c33ed263b59ea5e352b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:648-661 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:759-774 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:648\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"482f713bba0b7e15060a2d3ac6735c89bc6366d782b1bfd8ea13ac40f2b99924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_05_26_135743_724e6dcc6b5d_add_block_schema_capabilities.py:61-76 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_19_165808_33439667aeea_add_block_schema_capabilities.py:74-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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_26_135743_724e6dcc6b5d_add_block_schema_capabilities.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2f32a096f43a6e8a95a6aa80c91e95a3abea6b806514e0d4f08be227be8d37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/server/services/cancellation_cleanup.py:466-481 | src/prefect/server/services/cancellation_cleanup.py:520-535 \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 \u0060src/prefect/server/services/cancellation_cleanup.py:466\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":"src/prefect/server/services/cancellation_cleanup.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e7ab5742a96265bf263001287635eae8b9fbe2ef155edc15809eab08483fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 2): src/prefect/task_engine.py:898-913 | src/prefect/task_engine.py:1571-1581 \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":"src/prefect/task_engine.py"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"d698bbfd2fba33a440c6022a281d63746cf1b3cbafc6eeb8301978cfee2f4d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/prefect/task_runners.py:184-199 | src/prefect/utilities/callables/__init__.py:894-909 \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":"src/prefect/task_runners.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f390db972cbb3cc18753b3594b984466c4dd0f7af80280feb60ea5b44e9cc22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 19): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:276-285 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:508-518 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:713-723 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:100-112 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:74-88 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:129-143 | src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:52-64 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:186-198 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:256-268 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:103-115 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:205-219 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:324-333 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:588-598 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:831-841 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:114-126 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:81-95 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:143-157 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:103-115 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:218-232 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:276\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:275\u0060 calls \u0060Column\u0060, \u0060UUID\u0060, \u0060ForeignKeyConstraint\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:100\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b016500a8631886af542961bc9b9271ab1cba8c60a99ee93ed007cb93c42a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): src/prefect/flows.py:1589-1603 | src/prefect/flows.py:1784-1798 | src/prefect/flows.py:2352-2366 | src/prefect/flows.py:2847-2861 | src/prefect/runner/runner.py:392-406 | src/prefect/runner/runner.py:484-498 | src/prefect/tasks.py:2169-2183 \u2014 there are 7 copies across 3 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/flows.py:1589\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":"src/prefect/flows.py"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"e553d8b686430bda7ae9c76bf97c0aa91ff5394ed83d2c04510742e4acb9d4e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 5): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:251-265 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:357-370 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:79-93 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:299-313 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:412-425 \u2014 there are 5 copies across 3 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:251\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bf7a3ffc0e78e5943a291c5694636c305635c6bd022ac55ab85199e9381a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_233637_add97ce1937d_update_deployments_to_include_more_.py:38-52 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_11_113314_638cbcc2a158_add_infrastructure_block_id_to_.py:24-38 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_11_113314_638cbcc2a158_add_infrastructure_block_id_to_.py:42-56 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_25_151028_88c2112b668f_update_deployments_to_include_more_.py:38-52 | src/prefect/server/database/_migrations/versions/sqlite/2024_09_16_162719_4ad4658cbefe_add_deployment_to_global_concurrency_.py:22-36 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_233637_add97ce1937d_update_deployments_to_include_more_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_07_25_151028_88c2112b668f_update_deployments_to_include_more_.py\u0060 as WHOLE FILES: 83% 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_07_11_113314_638cbcc2a158_add_infrastructure_block_id_to_.py:22\u0060 calls \u0060execute\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_09_16_162719_4ad4658cbefe_add_deployment_to_global_concurrency_.py:21\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_233637_add97ce1937d_update_deployments_to_include_more_.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe54618cde29fd6747ccb9df23d63c5231018f7698ec892cdba3ac700c2363d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/prefect/server/events/filters.py:369-383 | src/prefect/server/events/filters.py:454-468 | src/prefect/server/events/filters.py:560-574 \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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/events/filters.py:451\u0060 calls \u0060pop\u0060, \u0060in_\u0060 and \u0060src/prefect/server/events/filters.py:367\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":"src/prefect/server/events/filters.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3cebc13dfe27a2f94039857dc1b2aa174d44e00537c3b747df741286bcb6c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): src/prefect/server/services/cancellation_cleanup.py:466-480 | src/prefect/server/services/cancellation_cleanup.py:520-534 | src/prefect/server/services/pause_expirations.py:69-81 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/services/cancellation_cleanup.py:466\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":"src/prefect/server/services/cancellation_cleanup.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c310f5402ca23bc22dab0d62450d64f7dafd09301d42aad1da8f6e83f2cc23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/integrations/prefect-azure/prefect_azure/bundles/execute.py:37-51 | src/integrations/prefect-azure/prefect_azure/bundles/upload.py:31-45 \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":"src/integrations/prefect-azure/prefect_azure/bundles/execute.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c8e0dc02909dc112f1c996c7159cdbdddc189176884b00077671da5a8d248d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py:201-215 | src/integrations/prefect-gitlab/prefect_gitlab/repositories.py:179-193 \u2014 before extracting anything, compare \u0060src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py\u0060 and \u0060src/integrations/prefect-gitlab/prefect_gitlab/repositories.py\u0060 as WHOLE FILES: this scan already matched 5 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":"src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"759a7a8a31fb431e0b0d4cd8721e54079ac10fb03f14ddd03155fc41e058178a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:151-165 | src/integrations/prefect-gcp/prefect_gcp/bigquery.py:278-292 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/integrations/prefect-gcp/prefect_gcp/bigquery.py:148\u0060 calls \u0060get_run_logger\u0060, \u0060info\u0060 and \u0060src/integrations/prefect-gcp/prefect_gcp/bigquery.py:261\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":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1400cef6ee87820d95d8ea3f948379385769c3a09692e5478bd7cd6977b60f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/bundles/execute.py:37-51 | src/integrations/prefect-gcp/prefect_gcp/bundles/upload.py:47-61 \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, \u0060src/integrations/prefect-gcp/prefect_gcp/bundles/execute.py:53\u0060 calls \u0060TemporaryDirectory\u0060, \u0060Path\u0060, \u0060basename\u0060 and \u0060src/integrations/prefect-gcp/prefect_gcp/bundles/upload.py:63\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":"src/integrations/prefect-gcp/prefect_gcp/bundles/execute.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00c7e20b132c5899ab51959c58f9e9a60ffb05a4a40bc4e00748768f873efc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:584-598 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:600-614 \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. 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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"445a824a8b473cd00c2e63179810a7429c83211718bfe62acd42627a07038c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/bundles/__init__.py:827-841 | src/prefect/bundles/__init__.py:895-909 \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 \u0060src/prefect/bundles/__init__.py:827\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":"src/prefect/bundles/__init__.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa968a6268da6270124118fb29c0d77f1dfab2ab520217f3d3ffb808b547ee6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/prefect/cli/flow_run.py:488-501 | src/prefect/cli/flow_run.py:542-556 \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 \u0060src/prefect/cli/flow_run.py:542\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":"src/prefect/cli/flow_run.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ddc8c705ad5189037858362c254b71eef4bcf1e6764804551c152134bfc2a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/prefect/cli/work_queue.py:216-230 | src/prefect/cli/work_queue.py:796-808 \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 \u0060src/prefect/cli/work_queue.py:216\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":"src/prefect/cli/work_queue.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"1725e9ae60ea237826837fa1ab9178db5c10e4a9fc90f7e93ffbbe8a04c5ce99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/prefect/client/orchestration/_blocks_documents/client.py:69-83 | src/prefect/client/orchestration/_blocks_documents/client.py:228-241 \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 \u0060src/prefect/client/orchestration/_blocks_documents/client.py:228\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":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69901f2ab823940b0bb43e56397ee447cde37b084cdf0818d7444233aa118f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/prefect/client/orchestration/_blocks_types/client.py:106-120 | src/prefect/client/orchestration/_blocks_types/client.py:287-300 \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 \u0060src/prefect/client/orchestration/_blocks_types/client.py:287\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":"src/prefect/client/orchestration/_blocks_types/client.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"188dd97ddef21f38cca19cbd096cb3ea5af4b2d785f399803e3632d5cec92989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:169-181 | src/prefect/client/orchestration/_deployments/client.py:876-890 \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. 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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bfc6aab1a52a6fa8d1d69180b7e6b7f72c1b154b8faeb8c91202fa1c3dbd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/client/schemas/actions.py:313-327 | src/prefect/client/schemas/actions.py:398-412 \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":"src/prefect/client/schemas/actions.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e78c8248bf4ce788656e69f4b137ea9e5c7e5a942d6c4d72e536ff36a3eedc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/client/schemas/objects.py:483-497 | src/prefect/server/schemas/states.py:271-285 \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. 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":"src/prefect/client/schemas/objects.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"110eed6540f8ed0142a16d8dd3165a29dec3b78ec84e72ce3340e7ff9c5cbaf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/events/filters.py:179-193 | src/prefect/server/events/filters.py:312-326 \u2014 before extracting anything, compare \u0060src/prefect/events/filters.py\u0060 and \u0060src/prefect/server/events/filters.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 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 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":"src/prefect/events/filters.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3f1e585040754275802cd38f9044ccd6e8afdca28eaa788e20982c6914fb98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/locking/_filelock.py:195-209 | src/prefect/locking/_filelock.py:213-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. 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":"src/prefect/locking/_filelock.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2ddb5e8dca3d956ec1216026e5566eb376601ec6f43ea3b5d99943b1f115d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/server/api/concurrency_limits.py:122-136 | src/prefect/server/api/concurrency_limits.py:165-179 \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. 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":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c509743cc40d7d0519f22ee5790215c68db5f057af575f75b6218282c6932f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_07_19_160058_bb4dc90d3e29_renames_existing_block_types.py:38-52 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_19_153432_628a873f0d1a_renames_existing_block_types.py:38-52 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_07_19_160058_bb4dc90d3e29_renames_existing_block_types.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_07_19_153432_628a873f0d1a_renames_existing_block_types.py\u0060 as WHOLE FILES: 85% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_19_160058_bb4dc90d3e29_renames_existing_block_types.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ca4b2df0e75fdb8e328b26d557829d50b1d92eb560023062689c17be81893f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_07_21_133134_e085c9cbf8ce_remove_flow_runners.py:40-54 | src/prefect/server/database/_migrations/versions/postgresql/2022_07_21_133134_e085c9cbf8ce_remove_flow_runners.py:66-79 \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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_07_21_133134_e085c9cbf8ce_remove_flow_runners.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":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_21_133134_e085c9cbf8ce_remove_flow_runners.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"35442e6a1d1ed98878d796d917e8847ce1646030947009f7f2f3bcadd6d76087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/server/schemas/actions.py:1057-1071 | src/prefect/server/schemas/core.py:1243-1257 \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. 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":"src/prefect/server/schemas/actions.py"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f1f99094982351a07eca0dc8f314ef4e5e2bc219bce1c2c22439ee38c62966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/states.py:479-493 | src/prefect/states.py:565-579 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/prefect/states.py:494\u0060 calls \u0060_from_metadata\u0060 and \u0060src/prefect/states.py:581\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/states.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a2cf3bfe5c4444d792264f5358242b2d41e4cff9c18b57b75a01bdd74877c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/task_engine.py:850-864 | src/prefect/task_engine.py:1519-1533 \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":"src/prefect/task_engine.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c977d3b191f79bf60e4d0b715f7a8bedb7398ff773e4a8d881ae02aaab73a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/utilities/processutils/__init__.py:562-576 | src/prefect/utilities/processutils/__init__.py:582-596 \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":"src/prefect/utilities/processutils/__init__.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1d3aec3314286f47e52abc5714064b0afd437a89bcfc1ee339837e80c797f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 13): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:94-107 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:149-162 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:104-117 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:159-172 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:326-339 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:381-394 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:68-81 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:114-127 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:177-190 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:134-147 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:197-210 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:386-399 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:449-462 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 250 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:94\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, \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:108\u0060 calls \u0060create_index\u0060, \u0060f\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:163\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb6de1fd0ef86b7f5073a9751d5c7c1bcb87059d3bd2d4a81d688d4e5ddafd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 6): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:64-73 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:175-186 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:54-64 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:71-82 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:203-216 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:61-73 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"87945efe6d18db524f5b28f87f3455f76603a8a1fe2ef3112f8eb3fa862dbb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/prefect/events/clients.py:407-420 | src/prefect/events/clients.py:830-843 | src/prefect/logging/clients.py:261-274 \u2014 \u0060src/prefect/events/clients.py\u0060 and \u0060src/prefect/logging/clients.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/clients.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5646f07d9e12bb3a3829064f25057da11d256df61ba1e300c6ae56eb882ac23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): src/prefect/server/database/query_components.py:717-730 | src/prefect/server/database/query_components.py:748-759 | src/prefect/server/database/query_components.py:1009-1022 \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 \u0060src/prefect/server/database/query_components.py:717\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, \u0060src/prefect/server/database/query_components.py:1023\u0060 calls \u0060distinct\u0060 and \u0060src/prefect/server/database/query_components.py:731\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/query_components.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4c55462fe8da9063e9cd6715794fc5a5e1c3dac00d07b022363fbef024ccd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/s3.py:1707-1720 | src/integrations/prefect-aws/prefect_aws/s3.py:1777-1790 \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. 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1707}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de61c2da0589228bf01853e6565bc0750217f5f07b393e08aa2de3fbe27e718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/bigquery.py:168-181 | src/integrations/prefect-gcp/prefect_gcp/bigquery.py:294-307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/bigquery.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"446776b75d459f25cad8cab55367a24b26544a75e1fe4b3f2e89a5482ee5624e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/cli/work_pool.py:1174-1187 | src/prefect/cli/work_queue.py:728-741 \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 \u0060src/prefect/cli/work_pool.py:1174\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":"src/prefect/cli/work_pool.py"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01c7d9a963efddd26bb4bb85518936926720e7250eba9ac8597d2fda6ab3194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/client/orchestration/_blocks_types/client.py:63-76 | src/prefect/client/orchestration/_blocks_types/client.py:243-256 \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 \u0060src/prefect/client/orchestration/_blocks_types/client.py:63\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":"src/prefect/client/orchestration/_blocks_types/client.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"682f79a0e5be93ab4c03ff13aed9500dbf48acdf51eda86431c20b205d322df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): src/prefect/deployments/runner.py:1645-1656 | src/prefect/flows.py:1568-1581 \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":"src/prefect/deployments/runner.py"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1ace1ed4d3d5087ef4f9b12b03d42aa5ce19ce1d4d2d1d4f72a8045dd64123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/filesystems.py:191-204 | src/prefect/filesystems.py:282-295 \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":"src/prefect/filesystems.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0a5104f879f04335499f0e063e8c26f57918a673d9f80b3711ab62ba6cd173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/flow_engine.py:1031-1044 | src/prefect/flow_engine.py:1768-1781 \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":"src/prefect/flow_engine.py"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eeae8bdc1ad4d7e43d4b361a344477894ab44ceff342cff2aaafc4020ca8be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/prefect/flows.py:3497-3509 | src/prefect/flows.py:3518-3531 \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 \u0060src/prefect/flows.py:3497\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":"src/prefect/flows.py"},"region":{"startLine":3497}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad8290e79211ae789f87930ab99d1a0c7dc8c58d8427cd77577c302d919ef9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/input/run_input.py:767-780 | src/prefect/input/run_input.py:793-806 \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":"src/prefect/input/run_input.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2849c7f181a3080b23853e254409088dce7f5f411c0527e35cdca4d651ae422"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/prefect/server/api/automations.py:58-71 | src/prefect/server/api/automations.py:110-122 \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 \u0060src/prefect/server/api/automations.py:58\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":"src/prefect/server/api/automations.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5baef66ff72622bc0aab16406f8e90ee6953c166a165444be43af3c0a0372e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:126-139 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:140-153 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 184 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2bac6dc6b4fa468b69b5de527a1a2f371c59fc62b72624947573aaf6bd57f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_233637_add97ce1937d_update_deployments_to_include_more_.py:23-36 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_25_151028_88c2112b668f_update_deployments_to_include_more_.py:22-35 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_233637_add97ce1937d_update_deployments_to_include_more_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_07_25_151028_88c2112b668f_update_deployments_to_include_more_.py\u0060 as WHOLE FILES: 83% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_233637_add97ce1937d_update_deployments_to_include_more_.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f838170307e51269fb741cafb30736ddfcabc3fd60f4220bbaef14c2054836c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_05_21_101457_94622c1663e8_json_variables.py:24-37 | src/prefect/server/database/_migrations/versions/sqlite/2024_05_21_123101_2ac65f1758c2_json_variables.py:24-37 \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":"src/prefect/server/database/_migrations/versions/postgresql/2024_05_21_101457_94622c1663e8_json_variables.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16eb56327bb46435689803c6d7bb661274303908eb1ca51fb3f1ae29c21d780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/prefect/server/models/deployments.py:538-550 | src/prefect/server/models/flows.py:196-209 \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 \u0060src/prefect/server/models/deployments.py:538\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":"src/prefect/server/models/deployments.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38adf0f26a066b81900976710c0b93ac77a4550fa19011068719fc98c9583c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/task_engine.py:807-820 | src/prefect/task_engine.py:1476-1489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060client\u0060 to \u0060Optional[SyncPrefectClient] = None\u0060 in one and \u0060Optional[PrefectClient] = None\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebfaf9942645c480720d7337e1215b1f91b55457487c7f178d52b32a7c7de1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:84-94 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:189-199 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:98-108 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:80-92 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:202-212 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py\u0060 as WHOLE FILES: this scan already matched 9 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:81\u0060 calls \u0060Column\u0060, \u0060String\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:186\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5116c576b49a35e08ab588683b6170a65211124d8dabf5e1e993fd28b75cdf28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 5): src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py:61-71 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:135-145 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:190-200 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:261-273 | src/prefect/server/database/_migrations/versions/sqlite/2026_10_19_000000_8f5eda7c1dd7_add_automation_held_event.py:63-73 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2026_10_19_000000_8f5eda7c1dd7_add_automation_held_event.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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 \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py:61\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":"src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e308d03478f3ca1e4509f78e1ba0b94b8a6ac14ecefab5f7cf72784b5c5b8e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/prefect/flow_engine.py:1091-1103 | src/prefect/flow_engine.py:1826-1838 | src/prefect/task_engine.py:511-523 | src/prefect/task_engine.py:1160-1172 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/flow_engine.py:1091\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":"src/prefect/flow_engine.py"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"86912bf98a250e2784cd697262d29430d7b19b763e28ec8b24bbe0b41598ed43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/integrations/prefect-docker/prefect_docker/worker.py:737-749 | src/prefect/workers/base.py:1158-1170 | src/prefect/workers/process.py:265-277 \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 \u0060src/integrations/prefect-docker/prefect_docker/worker.py:737\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":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"7287775ae6b3e47212584a0c4d8c618ae19a76b4c970b1f47dd8f68978602af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/prefect/filesystems.py:190-202 | src/prefect/filesystems.py:212-223 | src/prefect/filesystems.py:281-293 \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":"src/prefect/filesystems.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7665d35a1ba9c8e41df50e930df7909a154a2ee78504416d18369eb6b0b1c03d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/s3.py:2165-2177 | src/integrations/prefect-aws/prefect_aws/s3.py:2235-2247 \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. 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":2165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98b7c00b669ba14860526de4e799f29493637fef8609fcc49950fc73d15b307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py:239-251 | src/integrations/prefect-gitlab/prefect_gitlab/repositories.py:229-241 \u2014 before extracting anything, compare \u0060src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py\u0060 and \u0060src/integrations/prefect-gitlab/prefect_gitlab/repositories.py\u0060 as WHOLE FILES: this scan already matched 5 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":"src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5791fccd458ab77fdbe5ba4b6563aaff679f2884ca1edf9936be3b577fdbb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/integrations/prefect-github/prefect_github/repository.py:142-154 | src/integrations/prefect-github/prefect_github/repository.py:184-196 \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 \u0060src/integrations/prefect-github/prefect_github/repository.py:142\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":"src/integrations/prefect-github/prefect_github/repository.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7c9d9f14f104d9809498ce38691fd773676fb006847ab588d3f1458cb918c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/_experimental/sla/client.py:37-51 | src/prefect/_experimental/sla/client.py:78-92 \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 \u0060src/prefect/_experimental/sla/client.py:37\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 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":"src/prefect/_experimental/sla/client.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a672d155f43fc8b213df7a2ff5153c34f5dde1c2577a4758b08d49305d167fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/prefect/cli/block.py:345-356 | src/prefect/cli/block.py:447-459 \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 \u0060src/prefect/cli/block.py:447\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":"src/prefect/cli/block.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7631f2714777530bf12157e19c199a01a7c46ac321f7d5166eee5f23ab5c6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/cli/work_queue.py:276-288 | src/prefect/cli/work_queue.py:321-333 \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 \u0060src/prefect/cli/work_queue.py:276\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":"src/prefect/cli/work_queue.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c484d3e1d708b41ba44bc3630c071c49bf58ea9a044f0cbad16271469732ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/client/orchestration/_blocks_schemas/client.py:49-61 | src/prefect/client/orchestration/_blocks_schemas/client.py:143-155 \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 \u0060src/prefect/client/orchestration/_blocks_schemas/client.py:49\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":"src/prefect/client/orchestration/_blocks_schemas/client.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fa4adc81b52cd0483dd18a287abcd7af126733b86dcc9f557a43a0d3ef102b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/prefect/client/orchestration/_concurrency_limits/client.py:367-378 | src/prefect/client/orchestration/_concurrency_limits/client.py:828-840 \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 \u0060src/prefect/client/orchestration/_concurrency_limits/client.py:367\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":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce08e8cc5328fc8b07c8deafd452e8edc20097bfb682044d839e60fe008faf1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/client/orchestration/_variables/client.py:32-44 | src/prefect/client/orchestration/_variables/client.py:104-116 \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 \u0060src/prefect/client/orchestration/_variables/client.py:32\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":"src/prefect/client/orchestration/_variables/client.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c4fd9e5fa61cc8b0af1079f19531656a8c74f840e8cd7f87520d08601c09de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/concurrency/_asyncio.py:104-116 | src/prefect/concurrency/_asyncio.py:157-169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/concurrency/_asyncio.py:155\u0060 calls \u0060_release_lease_when_granted\u0060 and \u0060src/prefect/concurrency/_asyncio.py:103\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":"src/prefect/concurrency/_asyncio.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3929238f133dbdeb1f14975099184daafaa8d0f251c72d0f551dca7f9de06c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/events/filters.py:239-251 | src/prefect/server/events/filters.py:508-520 \u2014 before extracting anything, compare \u0060src/prefect/events/filters.py\u0060 and \u0060src/prefect/server/events/filters.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 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 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":"src/prefect/events/filters.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54b517f26a5ba998f6fcc5f0e5d4a46185f1cdbdce4942bfacefa1ab069da20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/flow_engine.py:904-916 | src/prefect/flow_engine.py:1640-1652 \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":"src/prefect/flow_engine.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51f302495aa89919b75efc932372005048275f08ccff391c29a291203f51ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/server/api/deployments.py:588-600 | src/prefect/server/api/deployments.py:629-641 \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":"src/prefect/server/api/deployments.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef89edded83e81c1b2c64c27437671e83be5f4f34166dc96d50c74b4dfb8b7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py:125-137 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:128-140 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9d7e67f0b7ebc4e55b24b4cfb0f068ec1195a8f9a47e8db5588d78f1849ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py:22-33 | src/prefect/server/database/_migrations/versions/sqlite/2024_03_13_111316_bacc60edce16_create_csrf_token_toble.py:22-34 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_03_13_111316_bacc60edce16_create_csrf_token_toble.py\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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py:22\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55e1733ad5b1cb79cdee28c70206fb6b9856515e667d836059740f41d954a74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:65-76 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:63-75 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:65\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3f8cbe864c55a84133c2336cfd3d265411c17fe4db0a3fa688cfc57d5591c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/server/models/work_queues.py:272-284 | src/prefect/server/models/workers.py:292-304 \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":"src/prefect/server/models/work_queues.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"8072985798253f81f447a88e2505201a349a924b465d393f2093a1ce9c787e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/server/orchestration/rules.py:322-334 | src/prefect/server/orchestration/rules.py:483-495 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/orchestration/rules.py:322\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":"src/prefect/server/orchestration/rules.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"217f70c18cfb46affed6f696190084f6a5a8272a1dbb8bc168608903fe17432c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/prefect/task_engine.py:1017-1029 | src/prefect/task_engine.py:1687-1698 \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":"src/prefect/task_engine.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"1721c2394386890e779f964c2b8573389b771c4fffbfe00fd0667821a494aa4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/tasks.py:903-915 | src/prefect/tasks.py:1021-1033 \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":"src/prefect/tasks.py"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54f6d9d7d1f4327c4ef115ac16f46cb0eb080e051486859b495d8d355fd0b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/transactions.py:336-348 | src/prefect/transactions.py:500-512 \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. 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":"src/prefect/transactions.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"14394db1eba2deabd3ffe134ba657d3e31b02da341aa876c4b83a2de8ad39b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 6): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:108-114 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:519-530 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:59-69 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:69-79 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:291-301 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:122-130 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py: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. 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcf7951988ca5ebce746f30eec6f729bf471aa91f5ae7664db1d52e2160f9b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): src/prefect/cli/concurrency_limit.py:161-172 | src/prefect/cli/flow_run.py:307-317 | src/prefect/cli/task_run.py:176-186 | src/prefect/cli/work_pool.py:561-572 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/cli/concurrency_limit.py:161\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. 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":"src/prefect/cli/concurrency_limit.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9de5e894a358a0b709652e3fc4462234cf7ca5d6761538433453a2b090cca12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): src/prefect/deployments/runner.py:1104-1115 | src/prefect/deployments/runner.py:1255-1266 | src/prefect/deployments/runner.py:1386-1397 | src/prefect/deployments/runner.py:1525-1536 \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":"src/prefect/deployments/runner.py"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ff9f809c11f5c4dd490d7b5a4ce49df5601f2c126fe8e86a297f71fcf2f63f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:135-146 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py:48-55 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:156-167 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_04_093838_619bea85701a_block_data.py:55-62 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae7e7409b799680d802883264b3d5a35eea1eaad77e2677addb7220a8b01235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/integrations/prefect-aws/prefect_aws/s3.py:1049-1060 | src/integrations/prefect-aws/prefect_aws/s3.py:1104-1115 | src/integrations/prefect-azure/prefect_azure/blob_storage.py:670-681 \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. 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2795b79e84be41b2b69823405d38a878eb208a5ee9001f7b73ea8265fdaf88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:1067-1078 | src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:1090-1101 \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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:1066\u0060 calls \u0060RuntimeError\u0060 and \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py:1089\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":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0228711ce895cfcc2f177dc87a076bf4b21e9ad7a2b81eefac971e4cb8ea8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/cli/flow_run.py:446-457 | src/prefect/cli/flow_run.py:503-514 \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":"src/prefect/cli/flow_run.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f470912cfb3b212ade3b540a6cbffb5486eee4c979d6987b13ec2aa5205fe70d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:655-666 | src/prefect/client/orchestration/__init__.py:1908-1919 \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 \u0060src/prefect/client/orchestration/__init__.py:655\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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a4328aefecfaad4252e69a8b579ef4e440584088881466bc2d0613c2bf318f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/client/orchestration/_blocks_documents/client.py:47-58 | src/prefect/client/orchestration/_blocks_documents/client.py:205-216 \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 \u0060src/prefect/client/orchestration/_blocks_documents/client.py: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. 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":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"401154cb93d8c3d7d2c6e86dc9aa7ed86124ff14d9433c5c09824d4f92549c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/client/orchestration/_blocks_types/client.py:84-95 | src/prefect/client/orchestration/_blocks_types/client.py:264-275 \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 \u0060src/prefect/client/orchestration/_blocks_types/client.py:84\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":"src/prefect/client/orchestration/_blocks_types/client.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"be56f88c4850ee42db13e09a601ab5969c305887d0c01798dda8da55c6ef460d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/client/orchestration/_concurrency_limits/client.py:416-427 | src/prefect/client/orchestration/_concurrency_limits/client.py:878-889 \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 \u0060src/prefect/client/orchestration/_concurrency_limits/client.py:416\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 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":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"696ad95b4216af175fe72b2b9716fed7d97c65082622b62337d8ee13fa7ded9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/client/orchestration/_flow_runs/client.py:434-445 | src/prefect/client/orchestration/_flow_runs/client.py:962-973 \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 \u0060src/prefect/client/orchestration/_flow_runs/client.py:434\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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"712c53b3308d2ba54728945a778be77bfaa7cf99f4c845c9e1d28521134b6e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/events/filters.py:81-92 | src/prefect/server/events/filters.py:148-159 \u2014 before extracting anything, compare \u0060src/prefect/events/filters.py\u0060 and \u0060src/prefect/server/events/filters.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 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 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":"src/prefect/events/filters.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7871f5909abd3f4a13d9587d27e7e05c5341a744cf248deae4bb29014deed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/prefect/futures.py:646-656 | src/prefect/futures.py:749-760 \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":"src/prefect/futures.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c59390b5b92d80df401661fb17aa0b03fa8d379df67a1a21f88e111cfcd48c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/prefect/locking/filesystem.py:113-124 | src/prefect/locking/filesystem.py:163-173 \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. 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":"src/prefect/locking/filesystem.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"11eab32ebc61e156a951bc07cd35e205bacb1192bcb5120391535937c816a708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/results.py:827-838 | src/prefect/results.py:897-908 \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. 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":"src/prefect/results.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ab517638a5754242f3a725c1b3af4fc3c7d2257435ab0a2ecdd1994befb32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/server/api/work_queues.py:114-125 | src/prefect/server/api/work_queues.py:142-153 \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 \u0060src/prefect/server/api/work_queues.py:114\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":"src/prefect/server/api/work_queues.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d17d4bea244a14fd1716ce93e974252b872444a17120e766ebaf67145ae258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py:23-34 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py:25-36 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81c3e8fc1ae83bb9e8f90176eec8d360f7569514e296b569bbd3a93f5590b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py:141-152 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py:140-151 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"550078a5c9e7e590546605fc3450d83dba7cae94ce754ae1587f6f6ab6c49580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:80-91 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_132409_bfe42b7090d6_clean_up_work_queue_migration.py:89-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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:80\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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00b6bf032ffae94c87aa585aa7b900d3c2ccfc57e310c1960315b3adb3b1e56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:161-172 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:161-172 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 279 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":"src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddea0b30dcaa84218be60088ec93f23c7866ed132113a18dbab8c0c1fdb2bdeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): src/prefect/server/events/actions.py:1361-1372 | src/prefect/server/events/actions.py:1437-1446 \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":"src/prefect/server/events/actions.py"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"150345d7bfeff424a9edabd8a80835d1d227a72023062c422d11bcf7d995726f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/server/models/artifacts.py:553-564 | src/prefect/server/services/db_vacuum.py:568-579 \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 \u0060src/prefect/server/models/artifacts.py:553\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":"src/prefect/server/models/artifacts.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02d97bb190ca4ac23aa1d23447e66c39d1b98c3acb05bd8e27e0cf120aef66b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 63): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:50-60 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:81-89 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:122-130 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:161-171 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:194-204 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:233-243 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:305-315 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:482-491 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:538-548 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:687-696 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py:35-43 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py:35-45 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:34-44 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:72-82 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py:35-43 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_10_145956_1c9390e2f9c6_replace_version_with_checksum_and_.py:36-44 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:73-81 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:48-58 | src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:103-113 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:35-43 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:77-87 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:134-142 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:45-53 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:87-97 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:144-152 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:267-275 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:309-319 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:366-374 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:53-61 | src/prefect/server/database/_migrations/versions/postgresql/2023_03_20_185238_d20618ce678e_add_artifact_collection_table.py:33-41 | src/prefect/server/database/_migrations/versions/postgresql/2023_04_05_134520_310dda75f561_add_variables.py:34-42 | src/prefect/server/database/_migrations/versions/postgresql/2023_12_07_095320_733ca1903976_create_flow_run_input_table.py:35-43 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:57-67 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:95-103 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:143-151 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:189-199 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:229-239 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:281-291 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:360-370 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:562-571 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:631-641 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:805-814 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_04_093838_619bea85701a_block_data.py:42-50 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_15_211737_28ae48128c75_add_configurations.py:42-52 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:41-51 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:86-96 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_20_103610_e1ff4973a9eb_add_block_spec_table.py:42-50 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py:43-51 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:87-95 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:55-65 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:117-127 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:45-53 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:97-107 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:162-170 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:67-75 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:117-127 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:182-190 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:317-325 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:369-379 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:434-442 | src/prefect/server/database/_migrations/versions/sqlite/2023_03_20_184534_b9aafc3ab936_add_artifact_collection_table.py:43-52 | src/prefect/server/database/_migrations/versions/sqlite/2023_04_05_134301_3d46e23593d6_add_variables.py:43-51 | src/prefect/server/database/_migrations/versions/sqlite/2023_12_07_095112_a299308852a7_create_flow_run_input_table.py:42-50 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py: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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:130\u0060 calls \u0060Column\u0060, \u0060String\u0060, \u0060Integer\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:60\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49b4e4e49d38c6409ea0a2d5aef6d5a07c9424aff1cf046c257ef389e595b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 21): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:274-282 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:505-515 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:710-720 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:91-101 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:147-156 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:101-111 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:157-166 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:323-333 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:379-388 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:66-75 | src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:50-59 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:322-330 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:585-595 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:828-838 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:111-121 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:175-184 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:131-141 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:195-204 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:383-393 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:447-456 | src/prefect/server/database/_migrations/versions/sqlite/2024_01_22_120214_265eb1a2da4c_create_deployment_schedule_and_add_.py:59-68 \u2014 there are 21 copies across 9 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 21 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:274\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 before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_01_22_120615_8cf4d4933848_create_deployment_schedule_and_add_.py:49\u0060 calls \u0060Column\u0060, \u0060Boolean\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:274\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c3b8891afec131b76e491d04b88b622c571bba55a56d248752fa3565b9e196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:439-448 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:643-653 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:512-521 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:755-764 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:439\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"2215d3877ebffa2968bbe04b10dcb814510c70aa53ba8188e42f66c9054bd28a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:95-105 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:96-106 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:98-108 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:95-105 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 202 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py: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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac6af377377f74ced22728ab8ab1471ea18ca2d4763262d9eaf1bba303436bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:213-223 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_09_125658_916718e8330f_automation_event_follower.py:25-36 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:216-226 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_09_125712_cc510aec4689_automation_event_follower.py:24-35 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 202 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:213\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3aa51404db56c4386dd9eb0ec457ad844424ff9826567891dc19e7e906fe55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/_cli/ecs_worker.py:164-175 | src/integrations/prefect-aws/prefect_aws/_cli/ecs_worker.py:293-303 \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":"src/integrations/prefect-aws/prefect_aws/_cli/ecs_worker.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd69335b36111ea2612fe2545b4d863e6f3792d984a72a8efae53828572bb908"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1188-1198 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1241-1248 \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 \u0060src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:1188\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 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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef0c8edff2abace8ea1985f42aeb1181cff45d1d817e610820f13d2e8d40091"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py:107-117 | src/integrations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py:360-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 \u0060src/integrations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py:107\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 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":"src/integrations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"50446be2a17d09eed77588d3e927d19d0cafda005faf438aef5ae7e3b5e1abb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): src/prefect/bundles/__init__.py:818-825 | src/prefect/bundles/__init__.py:883-893 \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 \u0060src/prefect/bundles/__init__.py:883\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":"src/prefect/bundles/__init__.py"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a38746b82aa9e9f34ea17d5d0ea1f6df8611d05b1a4d2a8c955c296d66425a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/cli/automation.py:229-239 | src/prefect/cli/automation.py:289-299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/automation.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"8023ce08efface3213e09f63a8d8e98df75e2fcb7f84e0b799cba85ae159d53e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/client/orchestration/_blocks_documents/client.py:127-137 | src/prefect/client/orchestration/_blocks_documents/client.py:284-294 \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 \u0060src/prefect/client/orchestration/_blocks_documents/client.py:127\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":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"738666644896bebfa8497643b1a6539c3a08f601c6fc515b641d2ef7561b8182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/client/orchestration/_blocks_types/client.py:188-198 | src/prefect/client/orchestration/_blocks_types/client.py:368-378 \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 \u0060src/prefect/client/orchestration/_blocks_types/client.py:188\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":"src/prefect/client/orchestration/_blocks_types/client.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24501ce1755c563911b9bf9dd11c5a5caf9a17b42a07d05a056f9e786e3a8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/client/orchestration/_concurrency_limits/client.py:385-395 | src/prefect/client/orchestration/_concurrency_limits/client.py:847-857 \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 \u0060src/prefect/client/orchestration/_concurrency_limits/client.py:385\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 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":"src/prefect/client/orchestration/_concurrency_limits/client.py"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7e16512366a51c021c756ed69965bddbac450833665a051c29adcc12bea524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/deployments/runner.py:819-829 | src/prefect/deployments/runner.py:885-895 \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 \u0060src/prefect/deployments/runner.py:819\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":"src/prefect/deployments/runner.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b302ac02de2e72eb3a631b9855d376f6e2bab0b976ff3be5905bcb23b322120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/input/run_input.py:609-619 | src/prefect/input/run_input.py:718-728 \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. 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":"src/prefect/input/run_input.py"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc1234960e85d2d41682b03e701830d6e32940876163edb7714f38448faae0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src/prefect/runner/storage.py:279-289 | src/prefect/runner/storage.py:326-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":"src/prefect/runner/storage.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"528be953463dcbce13d21e4e548685b8717c7c55a1e8dc5f83ad8e815036dfa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_214717_4ff2f2bf81f4_adds_block_type_slug.py:23-33 | src/prefect/server/database/_migrations/versions/sqlite/2022_07_25_142515_f335f9633eec_adds_block_type_slug.py:23-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. 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_25_214717_4ff2f2bf81f4_adds_block_type_slug.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7be5a1959ff12c57c95c7fef7d069daa77758a2f1703a6e831c1b1cb00fe316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:22-32 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_132409_bfe42b7090d6_clean_up_work_queue_migration.py:22-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_31_132409_bfe42b7090d6_clean_up_work_queue_migration.py:20\u0060 calls \u0060execute\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py:21\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_31_133052_2a88656f4a23_clean_up_work_queue_migration.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"45948980d4e21356b6a3b5e00c83b5681149ef9ee7c9d1df8e2f34d33e24ba5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:77-87 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:79-90 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 202 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py: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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e47374a45dda17faa2cd87c8cedce171a59d9b80951c3eb48e5fbfbe06df12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/server/database/query_components.py:608-618 | src/prefect/server/database/query_components.py:911-921 \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":"src/prefect/server/database/query_components.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"38568810c4796fefd66ce12704e20df82e9ff9be4799e653fb376aac9cc4b3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/task_engine.py:976-986 | src/prefect/task_engine.py:1645-1656 \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 \u0060src/prefect/task_engine.py:1645\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":"src/prefect/task_engine.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b05e48009dd5c301ebc31c9359e69e855aeb3b1c0bc673fd4cae6ac4fcaa07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/task_engine.py:1063-1073 | src/prefect/task_engine.py:1716-1726 \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 \u0060src/prefect/task_engine.py:1063\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":"src/prefect/task_engine.py"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"056194195ccdd28f552712c2a0dd3cfc0291335a2ff2b09235e380599f6e2d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/transactions.py:410-420 | src/prefect/transactions.py:574-584 \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":"src/prefect/transactions.py"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"118d8582e87d60ab139e05474330c403bdffbc9aaa3155ecc5f43d3a62bf9581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 9): src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:83-91 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:37-45 | src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py:53-62 | src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:188-196 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py:97-105 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:78-87 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:37-45 | src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py:53-62 | src/prefect/server/database/_migrations/versions/sqlite/2025_04_28_133722_7655f31c5157_remove_flow_run_notifications.py:201-209 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py:81\u0060 calls \u0060Column\u0060, \u0060String\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2025_04_29_112902_4160a4841eed_remove_flow_run_notifications.py:186\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3973e52e11c1f3c23573a03665da9d475d9333e611dd7b3321c7bd7b7b365ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 7): src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py:48-57 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:94-101 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:56-63 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:66-73 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:288-295 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_15_211737_28ae48128c75_add_configurations.py:55-64 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:108-115 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py:48\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35046b0db1105edb10a9783210ffca6e62f2d2883926f8ccaf96962e700799b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:691-700 | src/prefect/client/orchestration/_deployments/client.py:577-586 | src/prefect/client/orchestration/_deployments/client.py:1291-1300 | src/prefect/client/orchestration/_flow_runs/client.py:160-169 | src/prefect/client/orchestration/_flow_runs/client.py:687-696 \u2014 there are 5 copies across 3 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":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6651b3869ff86d38a5e6bc3ea57905347072dba3be221008696066104c92039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/integrations/prefect-aws/prefect_aws/s3.py:1050-1059 | src/integrations/prefect-aws/prefect_aws/s3.py:1105-1114 | src/integrations/prefect-azure/prefect_azure/blob_storage.py:671-680 | src/integrations/prefect-azure/prefect_azure/deployments/steps.py:142-151 \u2014 there are 4 copies across 3 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. 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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5a6a3a8db358ae60e70a697f50c01b07f804743c03611ef5166f2720c0779f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/prefect/client/orchestration/_blocks_documents/client.py:130-139 | src/prefect/client/orchestration/_blocks_documents/client.py:287-296 | src/prefect/client/orchestration/_blocks_types/client.py:191-200 | src/prefect/client/orchestration/_blocks_types/client.py:371-380 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/client/orchestration/_blocks_documents/client.py:130\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":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"be182190878c7800888099518b295411d4525e3e9321024726899fae7a8df19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:106-117 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:116-127 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:338-349 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py:79-88 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 250 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py:78\u0060 calls \u0060PrimaryKeyConstraint\u0060, \u0060f\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:106\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3401eb24ccc014e28f85032293eed72559842275813096a5db31c5fa8ed3718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:23-31 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:66-75 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:22-30 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py:65-74 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_10_104304_824e9edafa60_adds_events_tables.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 91 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:23\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:31\u0060 calls \u0060Column\u0060, \u0060Text\u0060, \u0060JSON\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py:75\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_10_194742_15768c2ec702_add_events_and_event_resources_tables.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03b5732f72bffbb90f988fae900207b0c8e769debe761c805cca06f7caf66c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py:201-210 | src/integrations/prefect-github/prefect_github/repository.py:133-142 | src/integrations/prefect-gitlab/prefect_gitlab/repositories.py:179-188 \u2014 before extracting anything, compare \u0060src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py\u0060 and \u0060src/integrations/prefect-gitlab/prefect_gitlab/repositories.py\u0060 as WHOLE FILES: this scan already matched 5 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":"src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b23a792440bbf7c7cee8e9b09f20ba23f620e7ec21947f1c45d6beef1c2af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/prefect/server/__init__.py:13-22 | src/prefect/server/api/__init__.py:79-88 | src/prefect/server/schemas/__init__.py:37-46 \u2014 before extracting anything, compare \u0060src/prefect/server/__init__.py\u0060 and \u0060src/prefect/server/api/__init__.py\u0060 as WHOLE FILES: 87% 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. 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":"src/prefect/server/__init__.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8e869f12d354be58203283a604496d87b75632ac80757d126f4cdf16741315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/automations.py:213-222 | src/prefect/automations.py:260-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"src/prefect/automations.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc254d1a1549f4851c0b7e0c35115d18403cb78ca1f7b1f45e91fea2799bc423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/cli/cloud/webhook.py:44-53 | src/prefect/cli/cloud/webhook.py:79-88 \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":"src/prefect/cli/cloud/webhook.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89c93ac9c0543ab306b6ed2da7a4115d5cf30eece48ffd31ada4c6e6a27ea94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:743-752 | src/prefect/client/orchestration/_deployments/client.py:1457-1466 \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 \u0060src/prefect/client/orchestration/_deployments/client.py:743\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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"a124361c4f0e02fa4a035c3a0420a374661483a13dba72b29a2557f6516d3378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/client/orchestration/_flow_runs/client.py:219-228 | src/prefect/client/orchestration/_flow_runs/client.py:747-756 \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 \u0060src/prefect/client/orchestration/_flow_runs/client.py:219\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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81075510d606fa63b070dbe155ade82db4901052b115d213732b79c28a8f049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/events/schemas/events.py:175-184 | src/prefect/server/events/schemas/events.py:194-203 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/events.py\u0060 and \u0060src/prefect/server/events/schemas/events.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 54 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 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":"src/prefect/events/schemas/events.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"afced517f518714e4b49d42860584a5bf86fa55cc6f52d1f5f89203163447ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/filesystems.py:662-671 | src/prefect/filesystems.py:677-686 \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":"src/prefect/filesystems.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f5691624368d9987ba3f450759d6892209bebf906e23f3c5cff36ae6f6a33a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): src/prefect/server/database/query_components.py:699-708 | src/prefect/server/database/query_components.py:995-1002 \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 \u0060src/prefect/server/database/query_components.py:699\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/query_components.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cd7a6d86b291b84687f90855bad2bf2105879f8e955c2d29fe1f18e5a56ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/prefect/server/database/query_components.py:730-739 | src/prefect/server/database/query_components.py:1024-1032 \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 \u0060src/prefect/server/database/query_components.py:730\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 before the matched lines, \u0060src/prefect/server/database/query_components.py:1023\u0060 calls \u0060distinct\u0060, \u0060join\u0060 and \u0060src/prefect/server/database/query_components.py:730\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/query_components.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"33959440c934f7a22f3d905e4492824d03671e9b581d95eae825244cff834ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/server/schemas/filters.py:2316-2325 | src/prefect/server/schemas/filters.py:2465-2474 \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. 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":"src/prefect/server/schemas/filters.py"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"003f1ccbe98fbfece2367e541f427c6ec22ad1c7412fbcc6d4fc28e4ffbee59f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/task_engine.py:783-792 | src/prefect/task_engine.py:1450-1459 \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":"src/prefect/task_engine.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"beacb17eed2f4aa3869fba23fff8424e3a53cb760a9c8380de45964d8274cec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/utilities/callables/__init__.py:749-758 | src/prefect/utilities/callables/__init__.py:775-784 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/callables/__init__.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0a889bb5e509d202f3f9055d5b90f0e2e246ffb5a1c8c2d45ce0141bab4de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 6): src/prefect/cli/artifact.py:78-84 | src/prefect/cli/block.py:288-294 | src/prefect/cli/concurrency_limit.py:167-173 | src/prefect/cli/global_concurrency_limit.py:57-65 | src/prefect/cli/variable.py:70-76 | src/prefect/cli/work_pool.py:567-573 \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 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/cli/artifact.py:78\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":"src/prefect/cli/artifact.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c93fdfad810e881f771ea48d8775ae935257952dc550376afa144a33c28e036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 5): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:849-857 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:863-869 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:864-872 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:884-890 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:891-894 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:860\u0060 calls \u0060drop_table\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:872\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"095c7c6ede6b6ac53382952a9c620dff3b085485b103cf67152ac60dff285269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py:26-34 | src/prefect/server/database/_migrations/versions/postgresql/2026_10_19_000000_e7f54680bce3_add_automation_held_event.py:39-47 | src/prefect/server/database/_migrations/versions/sqlite/2024_03_13_111316_bacc60edce16_create_csrf_token_toble.py:26-36 | src/prefect/server/database/_migrations/versions/sqlite/2026_10_19_000000_8f5eda7c1dd7_add_automation_held_event.py:39-49 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_03_13_111316_bacc60edce16_create_csrf_token_toble.py\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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py:26\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"084d4bc70e3494029d11180ee984a0a94d5159ccafdc7a956870dbffbfc0112b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:237-245 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:23-31 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:244-252 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 250 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c8e66a0076e6610b4934e4e8840c910ab5bee6bd7ecac478b2f630ffeca7a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): src/prefect/server/models/variables.py:99-107 | src/prefect/server/models/workers.py:159-166 | src/prefect/server/models/workers.py:679-686 \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. 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":"src/prefect/server/models/variables.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51c498d09d1aadc91e60f0c1175ac5265a99784d986c0ac03ff900a2bdff23d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/integrations/prefect-aws/prefect_aws/s3.py:2190-2198 | src/integrations/prefect-aws/prefect_aws/s3.py:2256-2264 \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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/integrations/prefect-aws/prefect_aws/s3.py:2188\u0060 calls \u0060gather\u0060 and \u0060src/integrations/prefect-aws/prefect_aws/s3.py:2254\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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16a02650e265f5fb6e9cb25432a62c78054832ec9da3d1baae53ae49611aaf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:357-365 | src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py:460-468 \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":"src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b98d16ce7d18ff8d6c5c3da99cac97ce735595428523dea8118ed37c9330056"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/blocks/core.py:1579-1587 | src/prefect/blocks/core.py:1676-1684 \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 \u0060src/prefect/blocks/core.py:1579\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":"src/prefect/blocks/core.py"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"1675133fbe63167ef7a988793e312a6436f08b54e29c5de9d4b9809300ddfdbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/blocks/notifications.py:60-68 | src/prefect/blocks/notifications.py:83-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":"src/prefect/blocks/notifications.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc90f5ad18a33e698495389ddc828ca33c5f885e432e16ef27bbbdc0581cb0c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/cli/work_pool.py:707-715 | src/prefect/cli/work_queue.py:473-481 \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. 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":"src/prefect/cli/work_pool.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec45023fc7034eca337038a06c390277ec7508c3d22594f093359466fd97f230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/logging/handlers.py:285-293 | src/prefect/logging/handlers.py:303-313 \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":"src/prefect/logging/handlers.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26e2c87fa9fd075f5a8043f168870ac2c01dddd52eac48fc731ca16fb9c193c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:859-862 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:879-887 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:910-917 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:910\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 before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:879\u0060 calls \u0060drop_table\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:859\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"df10c7ac4e751d329c85a3652cbab685468121276069975455c024024ab7b57d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py:44-47 | src/prefect/server/database/_migrations/versions/postgresql/2023_04_05_134520_310dda75f561_add_variables.py:44-52 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_04_093838_619bea85701a_block_data.py:51-54 | src/prefect/server/database/_migrations/versions/sqlite/2023_04_05_134301_3d46e23593d6_add_variables.py:53-61 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_04_05_134520_310dda75f561_add_variables.py\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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py:44\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_04_05_134520_310dda75f561_add_variables.py:44\u0060 calls \u0060Column\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py:44\u0060 does not \u2014 after which the two agree again for 5 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_5f376def75c3_block_data.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe79bf91622cc262449450ebe1d7528a42bdbb79f63f66143f7a320bf1abf14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/prefect/server/database/query_components.py:688-696 | src/prefect/server/database/query_components.py:986-993 \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 \u0060src/prefect/server/database/query_components.py:688\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":"src/prefect/server/database/query_components.py"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"288af8a796db5b0d0efc695cce9374716c5ea31146690d273435aa739c8633f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/utilities/dockerutils.py:418-426 | src/prefect/utilities/dockerutils.py:439-450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/utilities/dockerutils.py:418\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":"src/prefect/utilities/dockerutils.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5194cb08af6c93e990476b51395592e0aa8bf37fe0d70cd76be68215b28e06e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 6): src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:66-73 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:88-95 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:338-345 | src/prefect/server/database/_migrations/versions/sqlite/2023_04_05_134301_3d46e23593d6_add_variables.py:58-65 | src/prefect/server/database/_migrations/versions/sqlite/2023_08_02_113813_5b0bd3b41a23_create_concurrency_limit_v2_table.py:57-63 | src/prefect/server/database/_migrations/versions/sqlite/2024_03_13_111316_bacc60edce16_create_csrf_token_toble.py:50-57 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 247 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 \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:66\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":"src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"036dc019ae6bda0239edd011c46fbd0abbd1d29a3a4c3b6003dece8e5b440982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:54-60 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:64-70 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:286-292 | src/prefect/server/database/_migrations/versions/postgresql/2023_03_20_185238_d20618ce678e_add_artifact_collection_table.py:42-49 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 250 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:54\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba26892e9c36a8c483a2d37de5fad23ac1c9826249590a38f83cd258757f8966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:223-230 | src/prefect/server/database/_migrations/versions/postgresql/2026_10_19_000000_e7f54680bce3_add_automation_held_event.py:26-33 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:226-233 | src/prefect/server/database/_migrations/versions/sqlite/2026_10_19_000000_8f5eda7c1dd7_add_automation_held_event.py:26-33 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 202 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:223\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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ba37fb5cb199e85f24440f0653766b5c2cae302828d097cda0cb14310f2fa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/integrations/prefect-azure/prefect_azure/repository.py:163-170 | src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py:200-207 | src/integrations/prefect-gitlab/prefect_gitlab/repositories.py:178-185 \u2014 before extracting anything, compare \u0060src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py\u0060 and \u0060src/integrations/prefect-gitlab/prefect_gitlab/repositories.py\u0060 as WHOLE FILES: this scan already matched 5 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":"src/integrations/prefect-azure/prefect_azure/repository.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba84ba20255e953431078d3238759a658dbb19ec4d1f40fc6ad6951378ab8949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/prefect/cli/flow.py:71-78 | src/prefect/cli/flow_run.py:313-320 | src/prefect/cli/task_run.py:182-189 \u2014 before extracting anything, compare \u0060src/prefect/cli/flow_run.py\u0060 and \u0060src/prefect/cli/task_run.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/cli/flow_run.py:311\u0060 calls \u0060exit_with_success\u0060 and \u0060src/prefect/cli/flow.py:69\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":"src/prefect/cli/flow.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbb9ba66b0a01b04ef29a99e353a0e419b069005b74258be6874435cf2dd6d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/prefect/server/schemas/filters.py:764-771 | src/prefect/server/schemas/filters.py:1099-1106 | src/prefect/server/schemas/filters.py:2563-2570 \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":"src/prefect/server/schemas/filters.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"470ab769bff6aac4b8f8f9e0b5d2c90174e03ee7f5e24f168eed865c0a27a7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/integrations/prefect-docker/prefect_docker/deployments/steps.py:356-363 | src/prefect/utilities/dockerutils.py:257-264 \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 \u0060src/integrations/prefect-docker/prefect_docker/deployments/steps.py:356\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":"src/integrations/prefect-docker/prefect_docker/deployments/steps.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"162d7c6c285ed43f09c389867f7ae0a58de9de57b548a2714dd033e1e2f24bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:416-423 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:388-395 \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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"009638667362222bf8ba893540793096a84e976e4b940045a2a7304f3e937d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/cli/work_pool.py:572-582 | src/prefect/cli/work_queue.py:547-557 \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":"src/prefect/cli/work_pool.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"0105994a4a931ffb8b532fa14157676f12621bcfb366898298e860cea52c0650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:558-565 | src/prefect/client/orchestration/__init__.py:1811-1818 \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. 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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3d28fb03d1ace007fa05b1ef37ce0d012e4a6a8cfceec980b37603fcbf1d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:593-600 | src/prefect/client/orchestration/__init__.py:686-692 \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. 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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"678c0675b2f350e5c6f2c30e9b1d2497231185c7181e376623a82c67804f92c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:749-756 | src/prefect/client/orchestration/__init__.py:2002-2009 \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 \u0060src/prefect/client/orchestration/__init__.py:749\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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c4caa16d558840754e4635b9fe8697f91bab9311b8c071ef246e41f84c5620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/events/schemas/events.py:75-82 | src/prefect/server/events/schemas/events.py:79-86 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/events.py\u0060 and \u0060src/prefect/server/events/schemas/events.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 54 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":"src/prefect/events/schemas/events.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6d722451c8de044afacc59a83db56a29d65f3e9b6f32a2c3ebf8e041e7bfb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/events/schemas/events.py:230-237 | src/prefect/server/events/schemas/events.py:276-283 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/events.py\u0060 and \u0060src/prefect/server/events/schemas/events.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 54 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 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":"src/prefect/events/schemas/events.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e995b776c13746c4af6f79b165e8748a655e1f0d3839b49fb034f0c13a5bc10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/flow_engine.py:1671-1678 | src/prefect/task_engine.py:1465-1472 \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":"src/prefect/flow_engine.py"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c4cb9ca91fa84e6575e930b4e2f4f84b049336fa4937cf582460075fc05a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/results.py:517-524 | src/prefect/results.py:568-575 \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":"src/prefect/results.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fadd83eae838cbf3c8ac1e8085489642cd7939518492e718d5cc2618e4fc98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/results.py:542-549 | src/prefect/results.py:622-629 \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":"src/prefect/results.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"33837378379c49789297b1637b4066aa0554c99f3a099defce03b5dd42c0a809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/server/schemas/filters.py:778-785 | src/prefect/server/schemas/filters.py:1107-1114 \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":"src/prefect/server/schemas/filters.py"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8244d1440c7decd5ed79f932cc520d2d12ef23b5130e613693cfdd8e2dc1a25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/settings/sources.py:264-271 | src/prefect/settings/sources.py:341-348 \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. 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":"src/prefect/settings/sources.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc601d579a57fc37f2cfc0a846f4e6509f68a82f5fcd28ddd03d1841389663a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py:52-58 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:71-77 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py:29-35 | src/prefect/server/database/_migrations/versions/sqlite/2022_08_07_134138_575634b7acd4_add_work_queue_name_to_runs.py:52-58 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py:75-81 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py:31-37 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_08_07_134138_575634b7acd4_add_work_queue_name_to_runs.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 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 before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py:73\u0060 calls \u0060execute\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py:70\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_08_07_134410_77eb737fc759_add_work_queue_name_to_runs.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae580abb572c657ff25bb5f426051a3e4c068015e17ba7f68fe9d59e3d57cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/prefect/cli/concurrency_limit.py:165-172 | src/prefect/cli/flow_run.py:311-317 | src/prefect/cli/global_concurrency_limit.py:55-64 | src/prefect/cli/task_run.py:180-186 | src/prefect/cli/work_pool.py:565-572 \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 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/cli/concurrency_limit.py:165\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":"src/prefect/cli/concurrency_limit.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbafdc939a323089aaccfa4b025b318d128d433cbf5df9ed236d4f8b5b945af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:268-274 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:374-382 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:316-322 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:429-437 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc90879b9773f9414e6b21ffc51fdf8dc7a0b9ac8350697425414db7b564114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/integrations/prefect-redis/prefect_redis/blocks.py:197-203 | src/integrations/prefect-redis/prefect_redis/blocks.py:216-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/integrations/prefect-redis/prefect_redis/blocks.py:197\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":"src/integrations/prefect-redis/prefect_redis/blocks.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88e197d2dfaf052325d2cd33179f49b05fa27f346b569f75e181c3c231bb978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/prefect/__init__.py:210-216 | src/prefect/client/schemas/__init__.py:88-94 \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. 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":"src/prefect/__init__.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0daab4aa7cb1eb14f574756ab2a9c3862fca3dcc2c98c071237b966559020d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/prefect/_internal/pydantic/validated_func.py:206-213 | src/prefect/_internal/pydantic/validated_func.py:219-225 \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 \u0060src/prefect/_internal/pydantic/validated_func.py:206\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":"src/prefect/_internal/pydantic/validated_func.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbc4a85e27f1343a7489944758683aaa35c68571e88c17bc19aa5a6d6822624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/prefect/cli/global_concurrency_limit.py:78-84 | src/prefect/cli/variable.py:83-89 \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 \u0060src/prefect/cli/global_concurrency_limit.py:78\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":"src/prefect/cli/global_concurrency_limit.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"427fe50766fdcb432f593766f2902c8dd8bc835d0f8b0026653cbc4718401155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/prefect/cli/work_pool.py:736-742 | src/prefect/cli/work_queue.py:484-490 \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. 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":"src/prefect/cli/work_pool.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72e6f2191017a29c5b6b1eef0901ad518f328ecbab708587028c3bd2eb8cbff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/prefect/client/orchestration/__init__.py:1846-1853 | src/prefect/client/orchestration/__init__.py:1939-1945 \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. 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":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":1846}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97356edc5e04326c5f9ba8c190dc703d43f219fe7cd5ee7706fde928029a8d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/prefect/flow_engine.py:1136-1142 | src/prefect/flow_engine.py:1871-1877 \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 \u0060src/prefect/flow_engine.py:1136\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":"src/prefect/flow_engine.py"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f68fd5cf308b5e19504553045ab1dfb76ad12731e8b5e0cb7440cde7f7fa9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:63-68 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:174-181 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py:47-54 | src/prefect/server/database/_migrations/versions/postgresql/2023_04_05_134520_310dda75f561_add_variables.py:48-53 | src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py:47-54 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:70-75 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:202-209 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_15_211737_28ae48128c75_add_configurations.py:54-61 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:63\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_13_125213_679e695af6ba_add_configurations.py:55\u0060 calls \u0060create_index\u0060, \u0060f\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2024_03_13_111215_7a653837d9ba_create_csrf_token_toble.py:57\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e816dabf349c3292460a5d10d9ab2bf95bc08e3776cb4ec4b68df3e4b33e573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): src/prefect/cli/artifact.py:76-84 | src/prefect/cli/block.py:288-293 | src/prefect/cli/block.py:498-508 | src/prefect/cli/concurrency_limit.py:167-173 | src/prefect/cli/global_concurrency_limit.py:57-65 | src/prefect/cli/variable.py:70-76 | src/prefect/cli/work_pool.py:567-573 \u2014 there are 7 copies across 6 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/cli/artifact.py:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/cli/artifact.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"796d68175ec63b29201949572f8077dcd19f2a6b2b2257c24d3a27a94f993837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:54-59 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:56-62 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:66-72 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py:288-294 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:61-66 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py\u0060 as WHOLE FILES: this scan already matched 5 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:54\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, \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py:63\u0060 calls \u0060create_index\u0060, \u0060f\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:60\u0060 does not \u2014 after which the two agree again for 4 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ce9ea5fd8099b471f8431c44e5b247060e72cba338b0eecbd373a8616f18b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:388-393 | src/prefect/server/database/_migrations/versions/postgresql/2024_04_03_112409_aeea5ee6f070_automations_models.py:80-87 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:443-448 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_03_111618_07ed05dfd4ec_automations_models.py:83-90 \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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:388\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce303f594f5bae476746cf2343eaf02da31c86a557148dd3bfa71e447b2f079a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/cli/work_pool.py:1163-1168 | src/prefect/cli/work_queue.py:692-697 \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":"src/prefect/cli/work_pool.py"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1a189f9751dbe14329fd2b9857f95d51a98f37af204da8fbe8d583df9a4003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/flow_engine.py:932-937 | src/prefect/task_engine.py:798-803 \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":"src/prefect/flow_engine.py"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"1687dc530cdfb41e72284c7719c02bdb6f53ac3a0eb857dfb665caf81761f2b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/flows.py:3691-3696 | src/prefect/utilities/callables/__init__.py:583-588 \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 \u0060src/prefect/flows.py:3691\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":"src/prefect/flows.py"},"region":{"startLine":3691}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f4015371ea2af53c68d24b04b135fcd9fecbc18a77e41c3b406f74717031e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:858-861 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:875-880 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:899-904 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:875\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:899\u0060 calls \u0060drop_table\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:858\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82114ad33253b45724e8c067f5e79f43c181bcec22f40a86980eb6a1183fafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/server/database/query_components.py:759-764 | src/prefect/server/database/query_components.py:1047-1052 \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 \u0060src/prefect/server/database/query_components.py:759\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/query_components.py:1044\u0060 calls \u0060type_coerce\u0060 and \u0060src/prefect/server/database/query_components.py:758\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":"src/prefect/server/database/query_components.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96090ce8a49dc225f39531c196c4b2f3e2e716ee4a12f137185fb08dcc3c5ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/settings/base.py:78-83 | src/prefect/settings/base.py:96-101 \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":"src/prefect/settings/base.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6499ff1540e65df32b08e00a07f9e928d1e1b56a419896df09fdba3ad9db9eed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:582-586 | src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py:42-47 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:675-679 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_20_103610_e1ff4973a9eb_add_block_spec_table.py:49-54 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:582\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:581\u0060 calls \u0060Column\u0060, \u0060Interval\u0060, \u0060String\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py:42\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"008a3c47a700a83523394da1d6d3d5aa38803251d533b482145bc485cd474c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py:55-59 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py:69-74 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:91-95 | src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py:341-346 \u2014 there are 4 copies across 3 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/sqlite/2022_04_25_135207_b75d279ba985_replace_version_with_checksum.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2030285b05e42de333f120c077a94189fcdbccc4df80fad57206aea81b478505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:283-290 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:640-644 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:331-338 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ef1bafa1da18a775e6d373076192ba8404054b49901d2718fa42dd9ca21e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:877-883 | src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:892-896 | src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py:170-173 | src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py:920-924 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py\u0060 as WHOLE FILES: this scan already matched 31 separate duplicated blocks between them, totalling at least 603 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 before the matched lines, \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:875\u0060 calls \u0060drop_table\u0060, \u0060drop_index\u0060 and \u0060src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py:891\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":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f054cfedc43cf57fe2f3e623bdca9949a034f6f1f883fbc33aa56f58e16521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:1736-1742 | src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:2213-2219 \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":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceaf54d1a09a4ee51fdb670c9f669e62f39c7264c0356d58fc86504434c7d3b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/prefect/_internal/schemas/serializers.py:7-26 | src/prefect/server/utilities/schemas/serializers.py:11-30 \u2014 before extracting anything, compare \u0060src/prefect/_internal/schemas/serializers.py\u0060 and \u0060src/prefect/server/utilities/schemas/serializers.py\u0060 as WHOLE FILES: 89% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/prefect/_internal/schemas/serializers.py:7\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":"src/prefect/_internal/schemas/serializers.py"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a5440564fde823532c8cda3de9a56d0be25afcb1ce6fd2b0afd9ac956c16d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_111050_d115556a8ab6_index_flowrun_flow_runner_type.py:19-28 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_21_111238_f327e877e423_index_flowrun_flow_runner_type.py: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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_111050_d115556a8ab6_index_flowrun_flow_runner_type.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ceb8f7f270efc21f861e09c463b03f051ebf627b4ab16a19ed01a2631f2a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/prefect/server/database/_migrations/versions/postgresql/2022_03_10_102713_2e7e1428ffce_index_flow_created.py:19-25 | src/prefect/server/database/_migrations/versions/postgresql/2022_10_14_172612_ad4b1b4d1e9d_index_deployment_created.py:19-25 | src/prefect/server/database/_migrations/versions/sqlite/2022_03_10_102500_71a57ec351d1_index_flow_created.py:19-25 | src/prefect/server/database/_migrations/versions/sqlite/2022_10_14_172612_ad4b1b4d1e9d_index_deployment_created.py:19-25 \u2014 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_10_14_172612_ad4b1b4d1e9d_index_deployment_created.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_10_14_172612_ad4b1b4d1e9d_index_deployment_created.py\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 1 separate duplicated blocks between them, totalling at least 7 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_03_10_102713_2e7e1428ffce_index_flow_created.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c59c33639d169670162ae5ab23b366593b4047fe8d4526866a3e94237ce69f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_06_13_104234_61c76ee09e02_add_anonymous_column_for_block_documents.py:21-38 | src/prefect/server/database/_migrations/versions/sqlite/2022_06_13_103943_2d900af9cd07_add_anonymous_column_for_block_documents.py:21-38 \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":"src/prefect/server/database/_migrations/versions/postgresql/2022_06_13_104234_61c76ee09e02_add_anonymous_column_for_block_documents.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"888b90baba1c15b5d963886a0ca76b5da519692f0147a614c9fcc6bad46fcc49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_06_17_204409_d335ad57d5ba_add_block_schema_indexes.py:20-42 | src/prefect/server/database/_migrations/versions/sqlite/2022_06_17_204530_9e2a1c08c6f1_add_block_schema_indexes.py:20-42 \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":"src/prefect/server/database/_migrations/versions/postgresql/2022_06_17_204409_d335ad57d5ba_add_block_schema_indexes.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c81ba240cce081e73aa2fa2550163cb0f883095f4833a44ec2f3a554f148d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_06_20_123921_7296741dff68_add_protected_column_for_block_types.py:21-31 | src/prefect/server/database/_migrations/versions/sqlite/2022_06_20_123823_dff8da7a6c2c_add_protected_column_for_block_types.py:21-31 \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":"src/prefect/server/database/_migrations/versions/postgresql/2022_06_20_123921_7296741dff68_add_protected_column_for_block_types.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"02552833b20bf924fe5dd77e0550d9072d519ce9f0f6c013c51b3a626f4e2e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7): src/prefect/server/database/_migrations/versions/postgresql/2022_08_01_211251_97e212ea6545_add_deployment_version.py:20-26 | src/prefect/server/database/_migrations/versions/postgresql/2022_11_18_161056_5d526270ddb4_add_flowrun_infrastructure_pid.py:20-26 | src/prefect/server/database/_migrations/versions/postgresql/2023_03_15_153039_4a1a0e4f89de_add_artifact_description_col.py:20-26 | src/prefect/server/database/_migrations/versions/sqlite/2022_08_01_211039_24bb2e4a195c_add_deployment_version.py:20-26 | src/prefect/server/database/_migrations/versions/sqlite/2022_11_18_161332_7201de756d85_add_flowrun_infrastructure_pid.py:20-26 | src/prefect/server/database/_migrations/versions/sqlite/2023_10_30_075026_cef24af2ec34_add_block_type_name_to_block_document.py:20-26 | src/prefect/server/database/_migrations/versions/sqlite/2024_01_05_101041_c63a0a6dc787_add_sender_to_flowruninput.py:20-26 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_08_01_211251_97e212ea6545_add_deployment_version.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d310b25d31506ae03000d539faf12d3b7951341a04e29d17e175bf4dc5576381"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2022_10_20_101423_3ced59d8806b_add_last_polled.py:22-34 | src/prefect/server/database/_migrations/versions/postgresql/2023_10_12_224511_bfe653bbf62e_add_last_polled_to_deployment.py:22-34 | src/prefect/server/database/_migrations/versions/sqlite/2022_10_20_101423_3ced59d8806b_add_last_polled.py:22-34 \u2014 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_10_20_101423_3ced59d8806b_add_last_polled.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_10_20_101423_3ced59d8806b_add_last_polled.py\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 1 separate duplicated blocks between them, totalling at least 13 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_10_20_101423_3ced59d8806b_add_last_polled.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58303944439e664537675dc9471ea4c0a9f8efb29c47b4c7dd6e5ab96eaa6e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/prefect/server/database/_migrations/versions/postgresql/2022_11_05_180555_54c1876c68ae_add_index_for_scheduled_deployments.py:19-35 | src/prefect/server/database/_migrations/versions/postgresql/2023_03_01_154651_7d918a392297_remove_flowrun_deployment_fk.py:19-33 | src/prefect/server/database/_migrations/versions/postgresql/2023_11_20_084708_9c493c02ca6d_add_trgm_index_to_block_document_name.py:19-36 | src/prefect/server/database/_migrations/versions/postgresql/2026_02_19_200000_add_scheduler_schedule_id_index.py:19-36 | src/prefect/server/database/_migrations/versions/postgresql/2026_03_03_000000_add_task_run_state_type_start_time_index.py:19-33 | src/prefect/server/database/_migrations/versions/postgresql/2026_06_10_000000_bad1e352c597_add_event_resources_occurred_index.py:27-39 \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 6 call sites, so a change lands once. 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_05_180555_54c1876c68ae_add_index_for_scheduled_deployments.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa3f6a95e021de9b44b65b0f2b27f96dc6c272cd68ea63f9b17ab63e2923996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2023_09_25_121806_05ea6f882b1d_remove_flow_run_id_requirement_from_task_run.py:19-31 | src/prefect/server/database/_migrations/versions/sqlite/2023_09_25_121806_8167af8df781_remove_flow_run_id_requirement_from_task_run.py:19-31 \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":"src/prefect/server/database/_migrations/versions/postgresql/2023_09_25_121806_05ea6f882b1d_remove_flow_run_id_requirement_from_task_run.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7193e590bab8560c08d5d86ac8d1115da95000b324cccee0681ae48b351b0473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2024_04_04_094418_bd6efa529f03_add_deployment_version_to_flow_run.py:20-34 | src/prefect/server/database/_migrations/versions/sqlite/2024_04_04_114538_8644a9595a08_add_deployment_version_to_flow_run.py:20-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":"src/prefect/server/database/_migrations/versions/postgresql/2024_04_04_094418_bd6efa529f03_add_deployment_version_to_flow_run.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ef2e008e527d5666181dafa33229eb21837eb5e7663db8bfa645528fb66632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2025_02_03_125146_c163acd7e8e3_add_parameters_column_to_deployment_.py:22-34 | src/prefect/server/database/_migrations/versions/sqlite/2025_02_03_125228_67f886da208e_add_parameters_column_to_deployment_.py:22-34 \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":"src/prefect/server/database/_migrations/versions/postgresql/2025_02_03_125146_c163acd7e8e3_add_parameters_column_to_deployment_.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"693e322d051df66c3647784c0d4f89835723722d13cfa2457fa3c8596472d8b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2025_06_12_144500_add_automation_tags_aa1234567890.py:22-34 | src/prefect/server/database/_migrations/versions/sqlite/2025_06_12_144500_add_automation_tags_bb2345678901.py:22-34 \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":"src/prefect/server/database/_migrations/versions/postgresql/2025_06_12_144500_add_automation_tags_aa1234567890.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc292af64b1facba17e41bf212ea97decc3f690575e462d42ddb604b3ea2edca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2026_07_20_000000_50737cdaee36_add_event_resources_event_id_index.py:30-61 | src/prefect/server/database/_migrations/versions/postgresql/2026_08_20_000000_9e9dadc36797_add_flow_run_deployment_id_index.py:32-63 \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":"src/prefect/server/database/_migrations/versions/postgresql/2026_07_20_000000_50737cdaee36_add_event_resources_event_id_index.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6928b4057e5e7be374133cf7a7853cd6315618b324af11de03478f11b5f08336"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): src/integrations/prefect-aws/prefect_aws/decorators.py:29-48 | src/integrations/prefect-azure/prefect_azure/decorators.py:31-50 | src/integrations/prefect-docker/prefect_docker/decorators.py:25-44 | src/integrations/prefect-gcp/prefect_gcp/decorators.py:32-51 | src/integrations/prefect-kubernetes/prefect_kubernetes/decorators.py:31-50 \u2014 before extracting anything, compare \u0060src/integrations/prefect-aws/prefect_aws/decorators.py\u0060 and \u0060src/integrations/prefect-azure/prefect_azure/decorators.py\u0060 as WHOLE FILES: 85% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/decorators.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a824471d1ca821a9f0dc557bed66b2be93643635c59b763ed90be9a4936c1bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py:160-176 | src/integrations/prefect-github/prefect_github/repository.py:93-107 | src/integrations/prefect-gitlab/prefect_gitlab/repositories.py:130-144 \u2014 before extracting anything, compare \u0060src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py\u0060 and \u0060src/integrations/prefect-gitlab/prefect_gitlab/repositories.py\u0060 as WHOLE FILES: this scan already matched 5 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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060sub_directory\u0060 to \u0060Optional[str]\u0060 in one and \u0060str\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5870ef06b8d2d84b21b51f2d76e00480e1416e137317015bdf76e014275e7ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py:569-579 | src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py:577-594 \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. 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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"8063d2dac8f6230d8479a029f2fabf1bfcacd710ee300244cac31bdea0801dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/integrations/prefect-redis/prefect_redis/cleanup_queue.py:1503-1517 | src/prefect/server/worker_communication/cleanup_queue/memory.py:735-749 \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. 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":"src/integrations/prefect-redis/prefect_redis/cleanup_queue.py"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d413823a1a31a1ca1ec118fca74c11d8d0c96e5b1d807b3ce3749351753d9eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/integrations/prefect-redis/prefect_redis/ordering.py:377-388 | src/prefect/server/events/ordering/memory.py:303-314 \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":"src/integrations/prefect-redis/prefect_redis/ordering.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7123c7c447a19279401406aa79353fc9cb884a9862382edbe87b87787ba3c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/_internal/analytics/enabled.py:11-33 | src/prefect/_internal/analytics/service.py:98-110 \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. 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":"src/prefect/_internal/analytics/enabled.py"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3b0f6e0bc53fdd937ce7d7937d2660a6a498fc59d43d16c84c5ca740f5f8b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/_internal/schemas/bases.py:42-53 | src/prefect/server/utilities/schemas/bases.py:79-90 \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. 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":"src/prefect/_internal/schemas/bases.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafe3cea108ee5a246b930869f64119b32b8a2fc4c7d65c9a87c391b86bba5cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/_internal/schemas/bases.py:86-99 | src/prefect/server/utilities/schemas/bases.py:110-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. 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":"src/prefect/_internal/schemas/bases.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d80e01162b3c17848d84361a8ae6413b41cab0f3848430f538ec5e85d15ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/_internal/waiters.py:157-165 | src/prefect/task_runs.py:165-173 \u2014 before extracting anything, compare \u0060src/prefect/_internal/waiters.py\u0060 and \u0060src/prefect/task_runs.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/waiters.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"985814e4cb86e639a3fb71b9036e2ec54e98fca8e4ec76f5aa0f91dc2857137e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/_internal/waiters.py:247-254 | src/prefect/task_runs.py:262-269 \u2014 before extracting anything, compare \u0060src/prefect/_internal/waiters.py\u0060 and \u0060src/prefect/task_runs.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"src/prefect/_internal/waiters.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7728ec93cead497e85da93cb8aed6288b3096e3fe6293a77dd2548379a12f24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): src/prefect/cli/transfer/_migratable_resources/automations.py:63-67 | src/prefect/cli/transfer/_migratable_resources/blocks.py:47-51 | src/prefect/cli/transfer/_migratable_resources/blocks.py:101-105 | src/prefect/cli/transfer/_migratable_resources/blocks.py:241-245 | src/prefect/cli/transfer/_migratable_resources/concurrency_limits.py:49-53 | src/prefect/cli/transfer/_migratable_resources/deployments.py:44-48 | src/prefect/cli/transfer/_migratable_resources/flows.py:38-42 | src/prefect/cli/transfer/_migratable_resources/variables.py:41-45 | src/prefect/cli/transfer/_migratable_resources/work_queues.py:42-46 \u2014 there are 9 copies across 7 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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060obj\u0060 to \u0060Automation\u0060 in one and \u0060BlockType\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/automations.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2316d1a87418ed4a5d30792d56ffa0cc3858d2548bc45d16d0ec4421fe85a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/prefect/client/orchestration/_blocks_documents/client.py:86-99 | src/prefect/client/orchestration/_concurrency_limits/client.py:166-187 | src/prefect/client/orchestration/_deployments/client.py:442-461 | src/prefect/client/orchestration/_work_pools/client.py:260-276 \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":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb19052a34c5121614dbe37179ecb682c0dd0a0a519da15b981d5c6579ccdaa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/prefect/client/orchestration/_blocks_documents/client.py:244-257 | src/prefect/client/orchestration/_concurrency_limits/client.py:627-648 | src/prefect/client/orchestration/_deployments/client.py:1156-1175 | src/prefect/client/orchestration/_work_pools/client.py:587-603 \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":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"de01c51d4dc5d4b534a0f6fa661c880f36a60cc6e8f4df580bc8514c7155d5be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/client/schemas/objects.py:519-526 | src/prefect/server/schemas/states.py:305-312 \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. 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":"src/prefect/client/schemas/objects.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"8730f075f6bb63110a1c1a48c8267f107573ba787352ccf27bddfbf5eac38b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/client/schemas/objects.py:713-724 | src/prefect/server/schemas/core.py:332-343 \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. 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":"src/prefect/client/schemas/objects.py"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b08b38e021c6716b84cc304867c9a672952ab33d8cd94ee3de6ada9f18b1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/prefect/concurrency/_events.py:15-38 | src/prefect/concurrency/v1/_events.py:15-38 \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. 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":"src/prefect/concurrency/_events.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8ad7b46705ea13f3d01ff5f649e02b60b76d58deffba6ae079753689b0800c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/events/actions.py:57-64 | src/prefect/server/events/actions.py:755-762 \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. 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":"src/prefect/events/actions.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd700f141541a5e9f482e1b03daf079cc57f608de3f63aee9b2c1b620f2a36b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/events/actions.py:230-237 | src/prefect/server/events/actions.py:1639-1646 \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. 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":"src/prefect/events/actions.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b3104cd12594871793d55a99591f224b3a69eb145ed328aa0d9fb2bb17706e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/events/actions.py:272-279 | src/prefect/server/events/actions.py:1758-1765 \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. 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":"src/prefect/events/actions.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4893528e1e7629230b39e84b1a6be55dc0f32c7c5a09636785d47376700c5985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/events/clients.py:264-272 | src/prefect/logging/clients.py:86-94 \u2014 \u0060src/prefect/events/clients.py\u0060 and \u0060src/prefect/logging/clients.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 43 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. 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":"src/prefect/events/clients.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f9ab8ea78dd3671c243e7b4167871e74024d86bb86c8d8dfa9455c572a9e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/prefect/events/clients.py:958-976 | src/prefect/logging/clients.py:369-388 \u2014 \u0060src/prefect/events/clients.py\u0060 and \u0060src/prefect/logging/clients.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 43 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/clients.py"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b828646e2df373675af24d32ac5decba2d986c97495b2ec85264fee238207f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/prefect/events/schemas/automations.py:139-148 | src/prefect/server/events/schemas/automations.py:266-275 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/automations.py\u0060 and \u0060src/prefect/server/events/schemas/automations.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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 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":"src/prefect/events/schemas/automations.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"37071cd0de191b017451acd3e25fdda1eeeb4fd042546942b42508db7adb86ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/events/schemas/automations.py:401-409 | src/prefect/server/events/schemas/automations.py:208-216 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/automations.py\u0060 and \u0060src/prefect/server/events/schemas/automations.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 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":"src/prefect/events/schemas/automations.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"809a8f0922685c19ac2add1d480d01f73ba5ef457277761b4b6c4f3075283d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/prefect/events/schemas/events.py:168-172 | src/prefect/server/events/schemas/events.py:166-170 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/events.py\u0060 and \u0060src/prefect/server/events/schemas/events.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 54 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":"src/prefect/events/schemas/events.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e474348a560acd8e01664f2c180a909efd663fa5979856a544372c493d45cec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/prefect/events/schemas/events.py:248-252 | src/prefect/server/events/schemas/events.py:294-298 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/events.py\u0060 and \u0060src/prefect/server/events/schemas/events.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 54 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 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":"src/prefect/events/schemas/events.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cba65b56a5197e341a0f0e12f8dbd287923b008ce35f6563b6752b737b8fef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/events/schemas/events.py:264-269 | src/prefect/server/events/schemas/events.py:310-315 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/events.py\u0060 and \u0060src/prefect/server/events/schemas/events.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 54 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 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":"src/prefect/events/schemas/events.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c8b5380c45eebd659bdefff699cd7decdc7f21890730020119f5aa83d76b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/events/schemas/events.py:274-279 | src/prefect/server/events/schemas/events.py:320-325 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/events.py\u0060 and \u0060src/prefect/server/events/schemas/events.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 54 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 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":"src/prefect/events/schemas/events.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b21f5e16562e85f83d09dd3e8acdc822ef088e9cb35b6c2ffa4a8dd8f451e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/events/schemas/events.py:284-289 | src/prefect/server/events/schemas/events.py:330-335 \u2014 before extracting anything, compare \u0060src/prefect/events/schemas/events.py\u0060 and \u0060src/prefect/server/events/schemas/events.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 54 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 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":"src/prefect/events/schemas/events.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7aeaa93978ff75afaac242b35f0168fd2cfa62f95b450b71cb12dbaa7bc0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/prefect/flows.py:438-456 | src/prefect/tasks.py:659-677 \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":"src/prefect/flows.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfd0128ef493a7f1b5f47bfc444f185cd8ce3c0d7027a42678495438baeb65e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py:105-109 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py:119-123 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ed9bca5bd3c9645d06ceeb63b61d8f0e03a1569c861fa9413a499382c0d87d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py:185-193 | src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py:198-206 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_05_28_081650_e73c6f1fe752_adds_block_schema_referecnes_and_block_.py\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 164 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_28_081821_2fe6fe6ca16e_adds_block_schema_references_and_block_.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d18772d3219413056bf589c612263691bc041be27e9cf2b185f2bf950b4e00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py:82-88 | src/prefect/server/database/_migrations/versions/sqlite/2022_04_19_181604_7f5f335cace3_add_flow_run_state_name.py:30-36 | src/prefect/server/database/_migrations/versions/sqlite/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py:76-82 \u2014 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f6960151a9aaff78b764652f626b72aa7f40c66df095cac8db79c18ded002f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/prefect/server/events/services/actions.py:47-56 | src/prefect/server/events/services/event_logger.py:67-76 | src/prefect/server/events/services/triggers.py: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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/services/actions.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf0bffec15a62abb7c2356cfe44d7833ea29414507ec4b8ae9fc681cc643d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/server/events/stream.py:110-118 | src/prefect/server/logs/stream.py:191-199 \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. 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":"src/prefect/server/events/stream.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9525c49a060d4046da8d47dee452199fb240f20adcfaf2e97e703a27e10717cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/prefect/server/events/stream.py:122-136 | src/prefect/server/logs/stream.py:203-217 \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. 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":"src/prefect/server/events/stream.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2e891bed41dea49d83ffd037863d436fdeaa2cc07579291bdeaadbb6a03958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/prefect/server/schemas/actions.py:463-469 | src/prefect/server/schemas/states.py:168-174 \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. 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":"src/prefect/server/schemas/actions.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e4d6d5bfaf48339120cd58725beeb38c489270bc89e3ada7b02ee8a0562902"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/prefect/server/schemas/actions.py:473-479 | src/prefect/server/schemas/states.py:178-184 \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. 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":"src/prefect/server/schemas/actions.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4625329362d1a52990af4d3b43b07341e8a226b4eebefcb72fe76905fb1ee502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/prefect/server/schemas/states.py:441-454 | src/prefect/states.py:871-884 \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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cls\u0060 to \u0060type[_State] = State\u0060 in one and \u0060Type[\u0022State[R]\u0022] = State\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/states.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"411b470b105ceae68ae8ab0ae6e3cedfd196ac44cfcf72c68838e720ee522b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/server/services/cancellation_cleanup.py:43-50 | src/prefect/server/services/cleanup_reconciler.py:28-35 \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. 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":"src/prefect/server/services/cancellation_cleanup.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25e3951317bad8abe165c366a5874fe61f88e3b45c25ea92168dbe0e8dfcbff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): src/integrations/prefect-github/prefect_github/organization.py:33-58 | src/integrations/prefect-github/prefect_github/user.py:32-57 \u2014 before extracting anything, compare \u0060src/integrations/prefect-github/prefect_github/organization.py\u0060 and \u0060src/integrations/prefect-github/prefect_github/user.py\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 509 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/organization.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd4a8343820ee0364ee7587902e4f3d890c00c6401a79244fb1e65062b9a3cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3): src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py:22-55 | src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py:39-73 | src/integrations/prefect-kubernetes/prefect_kubernetes/pods.py:19-52 \u2014 before extracting anything, compare \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py\u0060 and \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py\u0060 as WHOLE FILES: this scan already matched 3 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. 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":"src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a411b91e5d353fcf5ec1387e281131445a09ced005f46604cd48a285ee27b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py:66-102 | src/integrations/prefect-kubernetes/prefect_kubernetes/pods.py:63-99 \u2014 before extracting anything, compare \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py\u0060 and \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/pods.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"145a5238b0cb01d513c1376795830a17a37d51fffe510c82e111535431df6f24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 3): src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py:151-187 | src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py:174-216 | src/integrations/prefect-kubernetes/prefect_kubernetes/pods.py:147-183 \u2014 before extracting anything, compare \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py\u0060 and \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py\u0060 as WHOLE FILES: this scan already matched 3 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. 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":"src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f096670510c5db977521c0e3bd13e7279f2d913836d3186a284b911e7a3db1d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 4): src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py:197-228 | src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py:226-262 | src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py:319-352 | src/integrations/prefect-kubernetes/prefect_kubernetes/pods.py:193-224 \u2014 before extracting anything, compare \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py\u0060 and \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py\u0060 as WHOLE FILES: this scan already matched 3 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. 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":"src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed886effb8bcfc4c9a10ff42f6c0a56b40effe17db347ca02876d88a887af32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py:239-275 | src/integrations/prefect-kubernetes/prefect_kubernetes/pods.py:304-340 \u2014 before extracting anything, compare \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py\u0060 and \u0060src/integrations/prefect-kubernetes/prefect_kubernetes/pods.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 189 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/deployments.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d7d11f0456ccc03aa80f8b421ed649788a5269c2c391ed95d9ce660ea82ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/prefect/_internal/pydantic/v1_schema.py:42-52 | src/prefect/_internal/pydantic/v2_schema.py:38-48 \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. 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":"src/prefect/_internal/pydantic/v1_schema.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a4189f73e1df15c83095930961b8271c8265b4ab2e383b1f4f36d45eff883c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/prefect/_internal/waiters.py:217-233 | src/prefect/task_runs.py:232-248 \u2014 before extracting anything, compare \u0060src/prefect/_internal/waiters.py\u0060 and \u0060src/prefect/task_runs.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"src/prefect/_internal/waiters.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ff0ed9f473e25e8a01e0b6b897fe035354a38da8be4b37ac4c4970c45f86d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/client/orchestration/_blocks_schemas/client.py:64-75 | src/prefect/client/orchestration/_blocks_types/client.py:147-158 \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. 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":"src/prefect/client/orchestration/_blocks_schemas/client.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"88326b48eca9447bd24dbebd0d25a1c46f23473c80ce065a89ddaeea4a7c04d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/client/orchestration/_blocks_schemas/client.py:158-169 | src/prefect/client/orchestration/_blocks_types/client.py:327-338 \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. 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":"src/prefect/client/orchestration/_blocks_schemas/client.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e970af8999681f34380001dafbbf5b4fe369db3056819a3343828ecf0ea0ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:390-436 | src/prefect/client/orchestration/_work_pools/client.py:153-174 \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. 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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d915fce099771aebe6cd681dd417fca4ba638207f8d7921477dce9ef8fcb6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/prefect/client/orchestration/_deployments/client.py:1104-1150 | src/prefect/client/orchestration/_work_pools/client.py:481-502 \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. 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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"0301c6162481c9db0ffad622d9e4c458423a820aa205feeca4b92f88c441032f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): src/prefect/client/orchestration/_flow_runs/client.py:272-319 | src/prefect/client/orchestration/_flows/client.py:119-165 \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. 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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e184bbfd902f7516b75eb83ded6178c789fe67aaec5630bf86e1d55f6c474cdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): src/prefect/client/orchestration/_flow_runs/client.py:800-847 | src/prefect/client/orchestration/_flows/client.py:279-325 \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. 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":"src/prefect/client/orchestration/_flow_runs/client.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddcbada84d2b452a65d2450985c75afa309cc7dea9d99585135bf1824271759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/concurrency/_events.py:45-50 | src/prefect/concurrency/v1/_events.py:45-50 \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. 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":"src/prefect/concurrency/_events.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3852de1c5e818991ab9ad532084b69509bab47c3752ae20521d097ed3228fd2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/prefect/server/api/block_schemas.py:126-135 | src/prefect/server/api/block_types.py:51-60 | src/prefect/server/api/block_types.py:68-77 | src/prefect/server/api/task_runs.py:182-191 \u2014 there are 4 copies across 3 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. 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":"src/prefect/server/api/block_schemas.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2861b679d121a81f0c4b29b17ea61fa4ca0ade1317f1f54b742997dc6d9c979f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/server/api/deployments.py:738-750 | src/prefect/server/api/flow_runs.py:264-276 \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. 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":"src/prefect/server/api/deployments.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d518702da33d184e5cffa186e81184cd53827588363efa3a9ae59361f163699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/prefect/server/api/deployments.py:758-768 | src/prefect/server/api/flows.py:159-167 \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":"src/prefect/server/api/deployments.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a6f1f7369cad71f7fe6c067b28d213a3c7cb23dadc7b9dee8400781bc79742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/prefect/server/api/flow_runs.py:674-680 | src/prefect/server/api/task_runs.py:300-306 \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":"src/prefect/server/api/flow_runs.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e4d50587fa0f36ffd19cd6a246a4748eb279ebed0411330557c387d594f3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/prefect/server/database/_migrations/versions/sqlite/2023_03_15_123850_cf1159bd0d3c_add_artifact_description_col.py:20-25 | src/prefect/server/database/_migrations/versions/sqlite/2023_09_06_084729_c2d001b7dd06_.py:20-27 \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":"src/prefect/server/database/_migrations/versions/sqlite/2023_03_15_123850_cf1159bd0d3c_add_artifact_description_col.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd97995f68d1d753771beee6088eb62a14bd5ab1d2c84713fb8004c4d315d28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/prefect/server/models/deployments.py:1580-1591 | src/prefect/server/models/workers.py:1350-1362 \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. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060changed_fields\u0060 to \u0060dict[str, dict[str, Any]]\u0060 in one and \u0060Dict[str, Dict[str, Any]]\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/deployments.py"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff7eb9e2fcdc88e6e8a9ce6ecd031f2123cb75c90fad0efc7c4b9a0d1f12121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/prefect/server/models/flow_run_states.py:39-56 | src/prefect/server/models/task_run_states.py:37-54 \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. 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":"src/prefect/server/models/flow_run_states.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecb1a3ef8a2531bd1866383167d4487d8c93290194a260abf507c2bc9e6e0ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/prefect/server/models/flow_run_states.py:65-79 | src/prefect/server/models/saved_searches.py:132-146 | src/prefect/server/models/task_run_states.py:60-74 | src/prefect/server/models/task_runs.py:469-483 \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. 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":"src/prefect/server/models/flow_run_states.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea045779c5eb6bbf389bb1054ecdace9a87fa7adba691ef8c28d4db8b72223b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/prefect/server/models/flow_runs.py:155-174 | src/prefect/server/models/task_runs.py:157-176 \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. 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":"src/prefect/server/models/flow_runs.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8809941a71e01d634d7e83b488f52cb4ba8d5271c8645625187e7746acf3c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (222 corresponding lines): scripts/backfill_release_notes.py:103-324 | scripts/prepare_release_notes.py:105-342 \u2014 These two members are one piece of code written twice and then edited apart: 222 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":"scripts/backfill_release_notes.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fd9603bf7578b986e5162b405331cd5858b201a01a8971f73238dc669cbde9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:326-360 | src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:367-399 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"src/prefect/testing/standard_test_suites/worker_cleanup_queue.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e945240e8b751197370b42469889c91d85700b1e3af8741e9bdb11e0759190"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:495-518 | src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:588-605 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/testing/standard_test_suites/worker_cleanup_queue.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b455c4d588c25603f321857914c53a76f876580c2c2bc84a288ef70b81ee65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:405-422 | src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:429-453 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/testing/standard_test_suites/worker_cleanup_queue.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"e263775be22877cee0c6bc5f6fc7504f25b991c039cdd2ab16656cfebd65cfc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_150017_b68b3cad6b8a_add_block_spec_id_to_blocks.py:63-74 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_21_145916_c8ff35f94028_add_block_spec_id_to_blocks.py:61-70 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_150017_b68b3cad6b8a_add_block_spec_id_to_blocks.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"addb60f98acd91de084e52d02e95e9afa5e6d243fef95af98c3dcd66e9b85885"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): scripts/backfill_release_notes.py:97-99 | scripts/prepare_integration_release_notes.py:222-224 | scripts/prepare_release_notes.py:99-101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/backfill_release_notes.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f228da593853e172e876a22bc46a5e8128746b3ab26241340432ffcc4428d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (127 lines \u00D7 2): scripts/backfill_release_notes.py:117-243 | scripts/prepare_release_notes.py:125-251 \u2014 before extracting anything, compare \u0060scripts/backfill_release_notes.py\u0060 and \u0060scripts/prepare_release_notes.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 240 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/backfill_release_notes.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d906d4d0a673cc79361339c8da6cb24953716b81ebc7cb4f5cbb8a1087bb3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (79 lines \u00D7 2): scripts/backfill_release_notes.py:246-324 | scripts/prepare_release_notes.py:264-342 \u2014 before extracting anything, compare \u0060scripts/backfill_release_notes.py\u0060 and \u0060scripts/prepare_release_notes.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 240 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":"scripts/backfill_release_notes.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff76978463c1a58305c3cee017972ae004135b3bda529c618b0e28317a45bff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201334 lines \u00D7 3): scripts/backfill_release_notes.py:257-290 | scripts/prepare_integration_release_notes.py:281-309 | scripts/prepare_release_notes.py:275-308 \u2014 before extracting anything, compare \u0060scripts/backfill_release_notes.py\u0060 and \u0060scripts/prepare_release_notes.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 240 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":"scripts/backfill_release_notes.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"99dd9b90ddc2d8ddd8752c509e97301d45b514c29f93f8da0a36147a2ea0052c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_150017_b68b3cad6b8a_add_block_spec_id_to_blocks.py:23-55 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_21_145916_c8ff35f94028_add_block_spec_id_to_blocks.py:23-55 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_150017_b68b3cad6b8a_add_block_spec_id_to_blocks.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_02_21_145916_c8ff35f94028_add_block_spec_id_to_blocks.py\u0060 as WHOLE FILES: 87% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_150017_b68b3cad6b8a_add_block_spec_id_to_blocks.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e01d85e07656628f21fbc3e799978fe1f274dc38e27f4c09bc3d33841570bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py:40-70 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_20_103610_e1ff4973a9eb_add_block_spec_table.py:47-77 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_02_20_103610_e1ff4973a9eb_add_block_spec_table.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e61e46be9957d632a074d3569efa4dc5175f5518640a7eaeb67b9959abe4736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): scripts/prepare_integration_release_notes.py:399-414 | scripts/prepare_release_notes.py:357-372 \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. 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":"scripts/prepare_integration_release_notes.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1d249040067f58a78504a10d6f9a203c665a0be44305b00537d14087b2b4ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/integrations/prefect-dbt/benches/bench_orchestrator.py:250-265 | src/integrations/prefect-dbt/benches/bench_orchestrator.py:278-293 \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 \u0060src/integrations/prefect-dbt/benches/bench_orchestrator.py:250\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":"src/integrations/prefect-dbt/benches/bench_orchestrator.py"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a865ba3a6f131f5e5346ca98334c5cea1494c5b592e1fa8e5d88ac590736ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:330-342 | src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:371-384 \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 \u0060src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:330\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":"src/prefect/testing/standard_test_suites/worker_cleanup_queue.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed495440930b66dc893caee816d19640d9ff9a4cad8129c3c3fedb4a47d03e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:259-271 | src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:431-443 \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":"src/prefect/testing/standard_test_suites/worker_cleanup_queue.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdaf021ee4821465853ab37f18d16f5743cac98e1b438ee27b46ae9ea986ff1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py:76-88 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_20_103610_e1ff4973a9eb_add_block_spec_table.py:84-96 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_02_20_103610_e1ff4973a9eb_add_block_spec_table.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd272df109c4dc7aa69aa87427c6cab9980822b9fa94348db1340260bc5fc05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_150017_b68b3cad6b8a_add_block_spec_id_to_blocks.py:66-74 | src/prefect/server/database/_migrations/versions/sqlite/2022_02_21_145916_c8ff35f94028_add_block_spec_id_to_blocks.py:63-70 \u2014 before extracting anything, compare \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_150017_b68b3cad6b8a_add_block_spec_id_to_blocks.py\u0060 and \u0060src/prefect/server/database/_migrations/versions/sqlite/2022_02_21_145916_c8ff35f94028_add_block_spec_id_to_blocks.py\u0060 as WHOLE FILES: 87% 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 \u0060src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_150017_b68b3cad6b8a_add_block_spec_id_to_blocks.py:66\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":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_21_150017_b68b3cad6b8a_add_block_spec_id_to_blocks.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd2625ef1a8ff75259c06319acd4fc7982264b68f9bc34b9768ca3ab97f088b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:495-503 | src/prefect/testing/standard_test_suites/worker_cleanup_queue.py:588-595 \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":"src/prefect/testing/standard_test_suites/worker_cleanup_queue.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f5249aa522380e068e55afe709fa69ef003dd9fa0dcd73de30d3b9aca5e42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): benches/bench_block_schemas.py:176-180 | benches/bench_count_flow_runs.py:334-338 \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 \u0060benches/bench_block_schemas.py:176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/bench_block_schemas.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc624f5eaade02431bb4f7ac4c5f81e572bb3017527d982533f09e09879c79b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): scripts/generate_prefect_yaml_schema.py:11-17 | scripts/generate_settings_schema.py:11-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 both call sites, so a change lands once. 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":"scripts/generate_prefect_yaml_schema.py"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ae7a405115b39f8b913a0e65c07ef2b2bfed1222bde2040865e73dc7316d1b"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: prefect-docker: prefect-docker: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"779b53516838e0b7eb421fce0419fec7c66c3f6aa5c0f058bedcdb834b51aa50"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: prefect-shell: prefect-shell: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"09d96cb88967883160efae954b35aefe5bfeb3204037ba40f2bf61d094e73cae"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LifecycleHookServer (LCOM4 7): LifecycleHookServer\u0027s methods fall into 7 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 7 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":"src/integrations/prefect-aws/prefect_aws/microvm/server.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2756d8ebf27f86e38df52b21652a3a2d07390787ce4716164d15e7fb01df230"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Settings (LCOM4 5): Settings\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":"src/prefect/settings/models/root.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44bd233c6089fd7bc967074263cadbb832d8a7d5cab763d478ab3241c6bffcc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DockerWorker (LCOM4 4): DockerWorker\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6adb9f6cf28e57711e27a6b187ed10b4e52d1865f550a6dbaba4ec37bca757b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseQueryComponents (LCOM4 4): BaseQueryComponents\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/query_components.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"198219d31f37a814ecb1bf50a842baed6c01e2a9099081435856a63390dd76a2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EventTrigger (LCOM4 4): EventTrigger\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/schemas/automations.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e378cab0621a62eac35dc58241137e0d82ab3cff70031bb74405e5bba521fa"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Task (LCOM4 4): Task\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/tasks.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fba3f4202d2ae976ac46cb408663ef6418204d762e97e1c313a97ef9b997cc"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/work-pools/work-pools.spec.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d9012ddee63f5d0e1791580764c69dd39995dc2c7df9d89e33ffcf6292d66b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/work-pools/work-pools.spec.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"36200de70d9d51ca0fdb262257b339f6b3f42afd7e1046493dedb1b789b5d334"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/variables/variables.spec.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b800dd7333decde00d42713dbd4142e8c4bf8e133b926a01336e4984e2cb2c2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/flows/flows-list.spec.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46b6efbcb50282efdca84003d47a2c88480a051383ff14e41e05076a2c7e4db"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/deployments/deployments-list.spec.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfaf4e018139d19bb05b9b2916075e67990ee2892c626dc4eca80e9d2c878884"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/dashboard/dashboard.spec.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a2797ac183013956c92d5094e4b87a34a6f431cb1fb942ebec92ccead2ee6f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/blocks/blocks.spec.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88b271b33b7d6366965ddf4d6238dea44058a721f01080a2607219326bfa46c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/blocks/blocks.spec.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb89c4b10b7710df3bd95d863cf61cf1fd748828e037da306a7e3647fa3aff2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/auth/auth-smoke.spec.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5170159f74abce6822e487f646d3f1b486ed1ab4995c0252115c2bc339f059fe"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/auth/login.spec.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"80da10f187e3276af71534e525adcb25bf1873256a8f05bd8af8db98ba3d498c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/auth/logout.spec.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"352ce45393d8d54db8f2265998e3b3e9d070a4d646baa67c97454c04b4755e74"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/auth/protected-routes.spec.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"03bdc561a3075434359eb096a46c51fc24970d5b96f0be515af7f5e6a24f0975"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/auth/unauthorized-handling.spec.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9767b2d58a6174af5de4bb00f222b9c0c6b567d5a44068cbbf7a970276a643c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: works without onPrefetchPage callback: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/task-runs/task-runs-list/task-runs-pagination.test.tsx"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5abe89fb31a4d2ad4f828b50d786d77f4953bd50b1d7018a743864f23213a3"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should allow a variable to be deleted: This test sets up 5 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/tests/variables/variables.test.tsx"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"1458f21646bac891275d3952d9dd03eebda2167f6d1b36bba3f8c6df665b5217"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: does nothing when --breakpoint-lg is not defined on the document: This test sets up 3 test doubles (for example \u0060vi.spyOn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/work-pools/-use-redirect-details-tab-on-desktop.test.tsx"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f1fb719dc48d6372b54fcc0e5e02412f49ad3ed38d929bda6a7e35531a639f"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: is a no-op when the breakpoint CSS variable is missing: This test sets up 3 test doubles (for example \u0060vi.spyOn\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-tabs-sync/use-redirect-details-tab-on-desktop.test.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"335043651a8b480694580d0443fe54212bfc591f011fa15e91220d2db2f3696a"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: shows success toast and calls callbacks on successful delete: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-menu/components/delete-work-pool-queue-dialog.test.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd682f4cf8585b2f0cbf9eb1952b816286678c6408b747d85c9573046b8b9c82"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: submits structured feedback: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui-version-switch/ui-version-switch-dialog.test.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc6aa750d9eff79a61d9bedfe2910c57a16d4558756ffced12b51784f2108f6"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: supports skipping feedback: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui-version-switch/ui-version-switch-dialog.test.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3bf2ec4bae42e7fd1524812e0db6abbdf98ddcc5469523571a70675e4cfa3d"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: triggers download on click: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-logs-download-button.test.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb0d5ecc1f95b72c02176b759e674e6b9df252b346e0f102ad3302cd093fa7b"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: calls onDelete upon clicking delete action menu item: This test sets up 5 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.test.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aff8972ccddd7edfad2aa125f72a32062b8e6b762916db61395dc20f6bcd661"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: calls onEdit upon clicking edit action menu item: This test sets up 5 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.test.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"de93164be74c665b7a1ec7fea6c83a588767c11ee03f633748cc442ceb0cc61f"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: calls onReset upon clicking reset action menu item: This test sets up 5 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.test.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6f830b151734c36dd8d25ab3b4b05b962bf9b749eff547c33f4034b1363575"}},{"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":"bb20829432be48c32470faf94e8833ee4cbf304e325722f85220a9512ea2a57d"},"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":"D14","level":"error","message":{"text":"Banned license: python-gitlab: \u0060python-gitlab\u0060 8.6.0 is published on PyPI under \u0060LGPL-3.0\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5a4de256bcf49da96d4c841b647688fcef88c4eae787f8504c3ecf0c289e3b9f"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: text-unidecode: \u0060text-unidecode\u0060 1.3 is published on PyPI under \u0060GPL-2.0-or-later\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"85b792ddfe32801c013ee8ebcbb674d3f6d61cfd12a7d8f517aaeecfab7ee72e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/server/schemas/schedules.py: src/prefect/server/schemas/schedules.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in IntervalSchedule._get_dates_generator at line 221. 1 of those changes was a fix/bug commit, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/server/schemas/schedules.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/schedules.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7691ddd1fff9b8728d05e4f257df6860da2874980fabf3093e9fed7a77c623c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/utilities/collections.py: src/prefect/utilities/collections.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in collections.visit_collection at line 312. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/utilities/collections.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/collections.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8737a0282b44f65c6caff269aedd2b860a0ce80aab4181583b1dcf7aa9b081a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/integrations/prefect-docker/prefect_docker/worker.py: src/integrations/prefect-docker/prefect_docker/worker.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in DockerWorker._submit_adhoc_run at line 622. 2 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/integrations/prefect-docker/prefect_docker/worker.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/prefect_docker/worker.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"305b7632bf92b091d558cee6d9b4a4065c750db5bd427cb62e86c11b5c59eccf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/server/api/deployments.py: src/prefect/server/api/deployments.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in deployments.update_deployment at line 261. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/server/api/deployments.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"42700023b4c127e7c4c007ba8da6401c9d47b444324e69eff9131ef424ef1b0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/flows.py: src/prefect/flows.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Flow.with_options at line 458. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/flows.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"578da21e340520fd673c685b43c99649e2eab620eea3bf33d138c53adf501497"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/cli/deployment.py: src/prefect/cli/deployment.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in deployment.delete at line 616. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/cli/deployment.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/deployment.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"571c5a296c119f8aa5c472b2ce794e3c465333c09cef19fe37a86d3663f067dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ui-v2/src/routes/dashboard.tsx: ui-v2/src/routes/dashboard.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in dashboard.RouteComponent at line 778. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- ui-v2/src/routes/dashboard.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"933eaf4fa0e4f22b700735abf5bfd3a557db69876dbe056f36fa96764d4c8a64"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/utilities/templating/__init__.py: src/prefect/utilities/templating/__init__.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in templating.apply_values at line 132. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/utilities/templating/__init__.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/templating/__init__.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"acba27edb105a641ae670e048a3b7afdb41f8220db6745ba7795b2292d8eac02"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/tasks.py: src/prefect/tasks.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Task.with_options at line 679. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/tasks.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/tasks.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8658d038059482a0b6920bb526406fe5e7a54eeebc9da2d4bce0ab8d0e48882"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/server/services/task_run_recorder.py: src/prefect/server/services/task_run_recorder.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in task_run_recorder._record_bulk_task_run_events at line 416. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/server/services/task_run_recorder.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/task_run_recorder.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d1678696874fee7f4981cd4143dc4bc9c05846d317f04397e38ee0ad11252a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/utilities/callables/__init__.py: src/prefect/utilities/callables/__init__.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in callables._generate_signature_from_source at line 681. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/utilities/callables/__init__.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/callables/__init__.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac43584879b6927b0133851172dcd341ee400ee7eef78e2a127bd3c7ba703dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py: src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in KubernetesJobRun.await_for_completion at line 392. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7bad3c42ec3a93cfbc50090cb94b2f4d5eb999cf335e6062a80513ecd2560a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/flow_runs.py: src/prefect/flow_runs.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in flow_runs.apause_flow_run at line 196. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/flow_runs.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_runs.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ea31682b56a48adadec15c734a16ddbdf8e2626888945f864789b2435d418e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx: ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in rich-date-range-selector.RichDateRangeSelector at line 225. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4907154c3d0f73b5f107d7ef323faf0467b0960e3cb1006bc98238a9a3afc2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx: ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in flow-run-graph.FlowRunGraph at line 58. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c51da0c136d286824beaa084f478efabef0c23c70588806fc71fdbfc488dd4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx: ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in date-time-picker.DateTimePicker at line 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53a2591fe13591d96085db6236a045685222f841f211472eec17ffcd4f7f4fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/cli/transfer/_migratable_resources/automations.py: src/prefect/cli/transfer/_migratable_resources/automations.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in MigratableAutomation.migrate at line 204. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/cli/transfer/_migratable_resources/automations.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/automations.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ed25f7617bc18624e61306431135af398a2a9907ceca95694bf16da9843ada"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/prefect/client/base.py: src/prefect/client/base.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in PrefectHttpxAsyncClient._send_with_retry at line 273. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/client/base.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/base.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"759e50628d38ae574728f0b92116993f97ca8b9d44c1a8234d6e92aef5fbc940"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: ui-v2/src/components/flows/data-table.tsx: ui-v2/src/components/flows/data-table.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in data-table.FlowsTable at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- ui-v2/src/components/flows/data-table.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/data-table.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"092200294d062303cd01373c7c5c5d5d521ba9cf4c6884abefdd1b95d4ba4009"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/prefect/task_engine.py: src/prefect/task_engine.py changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is SyncTaskRunEngine.handle_success at line 641), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix retry restart of async generator tasks closed during finalizer failure (#23739)\u201D; \u201Cfix returned failed states being cached as successful task results (#23523)\u201D; \u201C fix silently skipped task retries in \u0060retry_condition_fn\u0060 (#23397)\u201D; \u201CFix failed state losing metadata during retry (#23256)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:10:02 -06:00\u0027 --until=\u00272026-11-16 19:10:02 -06:00\u0027 --full-history --no-merges -- src/prefect/task_engine.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26f61331aa5c4db2480d632e0181f25cbf6a237de4ee350ad45d78e76baf223"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 5 significant file(s) lose their only recent owner: src/integrations/prefect-gcp/prefect_gcp/cloud_storage.py, src/integrations/prefect-bitbucket/prefect_bitbucket/repository.py, src/integrations/prefect-gitlab/prefect_gitlab/repositories.py, src/prefect/server/models/storage_defaults.py, src/prefect/cli/task.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8e4f032e5b0ff58d23a1700dc18b555149d75b53fccd9ef9d5a919aaf89dafbe"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 3 significant file(s) lose their only recent owner: src/prefect/client/schemas/worker_channel.py, src/prefect/workers/_worker_channel/_protocol.py, src/prefect/workers/_worker_channel/_state.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3949380263f2b303ce64473c99c2427734fd15293301b4ed31fee0b1916dfeb5"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (39 single-owned of 840 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 840 of the 2120 production source files in this repository met that bar). They are anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/integrations/prefect-aws/prefect_aws/_cli/ecs_worker.py, src/prefect/_internal/engine.py, src/integrations/prefect-gcp/prefect_gcp/settings.py."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Ensure input into JsonInput is covered by Playwright tests. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/mocks/mock-json-input.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"060e9c035a518c6150140ff9bf33acea5fb5a2839b06bae0bc87af866a61c96e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Clean this typing up \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":"ui-v2/src/graphs/textures/icon.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8819add3d8769a604366c9eb01f638312e5737b99ed3c20bd141e91830328ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: need a global way of stopping this when the graph is stopped \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":"ui-v2/src/graphs/factories/data.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da2cad4d2bf39df3324116f9b1f29dbabd3f709413b20c49d5ac8bb3d3990d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: need a global way of stopping this when the graph is stopped \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":"ui-v2/src/graphs/factories/eventData.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d004f1c90b2515b115548afc28841d0bb815e501bc17e8ad9007a288713c0dbe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Mock console.log since component has TODO logging \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":"ui-v2/src/components/work-pools/work-pool-queues-table/components/work-pool-queues-table-toolbar.test.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"387b4b0b18dec9694d21c5d9c88d59366f7b91a4787d2ab04d40e2a30311fdac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Get isPushPool from work pool context if needed \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":"ui-v2/src/components/work-pools/work-pool-queue-status-icon/work-pool-queue-status-icon.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17925a1a423d0d230aa4ab999bc1ccde07cd7be2f9e04112c738365c756d3d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check workPool.can?.update when permissions are available \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-menu/hooks/use-work-pool-menu.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2d81a0df29c4c7a4bab0e9fe413cb7deb1206d066feb742e3762125fadf7c4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check workPool.can?.delete when permissions are available \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-menu/hooks/use-work-pool-menu.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d34f6bcf6a52b3290183a17e3ef9076f0e61fed09d2c2236a56bcb2a4c34b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix eslint errors. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/chart.tsx"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f39031f4d8d931ec7d7ccf225ef3c4033d3a99c46771c149d2e82425dfd660a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: support markdown \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":"ui-v2/src/components/schemas/schema-form-property-description.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a57e6e63a70635fb23b7d1191e8966cccc7ae5b785d37dfff1495e952de2b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move Tabs for navigation to a generic styled component \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":"ui-v2/src/components/concurrency/concurrency-limits-tabs.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2db4f0162347d63b62d128437f6c799222703d169ea38db75bfc39bfc01301b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move Tabs for navigation to a generic styled component \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":"ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limit-page/task-run-concurrency-limit-tab-navigation.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"49809914fd25d63bba66728d701358570be894e52e09460f00503db58c0469e4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add these back in once we have field names for them \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":"ui-v2/src/components/automations/automations-wizard/actions-step/action-type-select.tsx"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d980ff67e7cfb64917d5177a65aba3474eed82a84b15872010f60432812373"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: update this test when there\u0027s a list query to ensure the cache is invalidated \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":"ui-v2/src/api/task-runs/task-runs.test.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78dbde3444304e9cbb599a6e22d9a371c1e46562d3bef315e01477dbf805401"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add these back when the corresponding actions are implemented \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":"ui-v2/src/api/automations/use-get-automation-action-resources/use-get-automation-action-resources.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ca3aba050b2a79491442e877c85d71309ebfcedff956bf7ede0e4fd2559ec1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: uncomment this out once unique constraint is dropped on artifact key \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":"tests/test_artifacts.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9430fb6b9627026b5b415104472b4aeae94877362a26c7ccd558436539ac618d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: uncomment this out once unique constraint is dropped on artifact key \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":"tests/test_artifacts.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c46fdf1a7523caacc6a2a06241fa936970d2ea58dcad2cfdd7e1bc7dd5b5a59"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add ways to inspect the task queue via the REST API \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":"tests/test_background_tasks.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c3f729a4719077ee9d6a431c035748f513de02c10b7229ba5c89ec030eca7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We should cover initialization with a task runner once introduced \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":"tests/test_flows.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4689a93b5afd3e61303ca34cbdc93e097216a020244d5b602ad77aa543a91a07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We may actually want to raise a \u0022multi-error\u0022 here where we have several \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":"tests/test_states.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d99647a9ef50075cfea973cd6d9b580cb2ff5009df0f10202024a069458eaf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: The ids are not equal here, why? \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":"tests/test_tasks.py"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61fe9012290a7e85fc83b3f3c8744da5025c641a457e37627bc803108a6911e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Running with the new engine causes the result call to return a coroutine \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":"tests/test_tasks.py"},"region":{"startLine":2903}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4242c13c0c8269f727ec7b4cc9d4c05e5afe27fd3d11e06bffe91b56c6c9bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this test actually fails with pydantic v2 attributes like model_dump \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":"tests/utilities/test_callables.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7dc452a408b43c950d2fed1155f9c3c0c640c1c282cf691c100e46b79c6625"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This test fails intermittently with a directory error in Windows \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":"tests/testing/test_utilites.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb240960dc2162c7d7cc6fc7cd4b37c74cc9ccd8cdd2b6d93723b8617ed5382b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: is there a way we can test that ephemeral subscriptions really have cleaned \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":"tests/server/utilities/test_messaging.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86f4a7b4b59b99d7ada35259cad736ba1463306d02351f2e33a20372c06ef92"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: results received from the API should conform to a schema \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/server/schemas/test_core.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"7579b8fb105ebdabb3e7e82a9a9eec115ef21075beea75f2ac13359667678565"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Fix the model resolution to work with the hosted API server \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":"tests/events/client/test_automations_server_compatibility.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eae4c2e255d2c69779c056bc25b7950e4660cdbac174fc07b39e8bf40debe9f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: clean this up \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":"tests/cli/test_config.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"926e60dd0cd17beb35742da8e6ecf48af448e53bdd75144e381e938eda7bf743"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Replace with a healthcheck endpoint \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":"tests/cli/test_worker.py"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"225458e44058cb66f36881bd301b8a8f34eed66d0d449874c76dfc13098b055c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This should raise an AttributeError, but it doesn\u0027t \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":"tests/blocks/test_core.py"},"region":{"startLine":3016}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a78173d4de592c605f181f1d2398d536aa357a34b93b94c884ca0e225a7c8e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Remove this when we remove async_dispatch because it doesn\u0027t need to be async \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":"src/prefect/artifacts.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a73f6c80e35f3aed674d8655ecb92920df060cfb8bb7a5d070634c3bcab64cc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Remove this once we have fixed our circular imports and we don\u0027t need to rebuild models any more. \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":"src/prefect/context.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d949fef7ee0e2d0f9d97f258410551164430acf2789d40d319adfab6d6aa77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: handle this differently? \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":"src/prefect/flow_engine.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"f111a1c9b819225e9bd7a54c9389beb285e88a5e42d21de981c7342e82ec162f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Remove the need to get the result from a State except in cases where the return value \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b622be9f9240e213adf9e9fe30d37d8effa1c23fbe221e33b84f05b741050a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Remove the need to get the result from a State except in cases where the return value \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"349460845e6312b393f0ce2a6b8c643117abd6d0a956fd5770b16cea32fc7b00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Explore closing task runner before completing the flow to \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":"src/prefect/flow_engine.py"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c7546f157a148e60756e845d546cb88dca143f8d0b30101701f6bc271257d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Explore closing task runner before completing the flow to \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":"src/prefect/flow_engine.py"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"9863c84922e91b1cca226b4b924b8e968e80a3fbfb5ee49342b5f705c234632b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make this a thing we can pass into the engine \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":"src/prefect/flow_engine.py"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e6b386d47b580a4b2745aeacd8cb7b5d468d356622d9d5da372ba3a84f6948"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We can instantiate a \u0060FlowRunPolicy\u0060 and add Pydantic bound checks to \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":"src/prefect/flows.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe7a2614e9f47611a6b7012fe9a355583961c0ed93a68cb8ebeaae9ffcb296e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Handle wait_for once we have an asynchronous way to wait for futures \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":"src/prefect/flows.py"},"region":{"startLine":2498}}}],"partialFingerprints":{"codehealthFindingId/v1":"8636cf0c2307ea22c1e069e4808bab8fe3fcb5f28a77b9d9d8d64cdff53c15fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: It\u0027d be nice to be able to return the future sooner \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":"src/prefect/flows.py"},"region":{"startLine":2811}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead40cb9a2022ea9ed8fd84b0fee6faedf312b56d90e67312369cb2159fc50c9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider using task run events to wait for the task to start \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":"src/prefect/futures.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b422e080a8db4033db51536ac11fa51cadf8adf4a35dae40a0ab699fa2a28e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider using task run events to wait for the task to start \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":"src/prefect/futures.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"e424660b7f34a7a08e668a05bd9cd47d2ce3f9750f4e31168d4d419a6b6c37f2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # pyright: ignore[reportUnusedImport] # TODO: Does this need to be imported here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/main.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1755e2e5aa3f034e8593183f8284deb49483478697306df5a2917630437413"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # pyright: ignore[reportUnusedImport] # TODO: Does this need to be imported here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/main.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6fdf39675a12ee9de4dd835ff7563faa3c4cffa4d23e4178e3dca3c15b5375"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add an \u0060exists\u0060 method to commonly used storage blocks \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":"src/prefect/results.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"94aada77aabc4c6b2f1a9eae1c33ad5715c38a77fd08c3cf9e65b902100b2e11"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add an \u0060exists\u0060 method to commonly used storage blocks \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":"src/prefect/results.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ad9c4180561bec98cab16357c0de4ed759d616be1893cfd386e80e291cae7e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We can check if this is actually our API url \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":"src/prefect/states.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e3334c1086ec013e83987546048376bd632200f9e156dc62ea238a2dd90d08"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We can check if this is actually our API url \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":"src/prefect/_internal/states.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b68bce4040dd09283085d2d97ea8354c8eaa6b89467364dbb006ea1a33a7fc2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider if we want to include traceback information, it is intentionally \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":"src/prefect/states.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7cb358b776b5d1cc0f21597bddbe68607b8de7d0bf0c59f00426b7299da2ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider if we want to include traceback information, it is intentionally \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":"src/prefect/_internal/states.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8912a0065841d2f7b4c7f66506e4b7718ea994edf0e127e59cd36568bf3e93f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We may actually want to set the data to a \u0060StateGroup\u0060 object and just \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/states.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"810f4a333d46095093808fa84d10e8e8cde00424b75b719813710e1ade922c62"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We may actually want to set the data to a \u0060StateGroup\u0060 object and just \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/states.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d4ff5fedc589a7a9fbab7fa9f732b9222aa8532060eb2a0e44daac73b8cf37"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this is temporary until the API stops rejecting state transitions \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":"src/prefect/task_engine.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"c752cc7d757abf163db3a2e6474fb3984eec246a0afec61790ea412192d7ec45"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this is temporary until the API stops rejecting state transitions \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":"src/prefect/task_engine.py"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3b4260085e022b0c0f640ddea655b87ad8bac62642a7ff32e0b2b25a176729"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Could this listen for state change events instead of polling? \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":"src/prefect/task_engine.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00dcb9516c652f7e6599ca05dcb14ab73e110500089f58aca1a16490728e786"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Could this listen for state change events instead of polling? \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":"src/prefect/task_engine.py"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f7dcf42b0185210654a5dff84412d9cabf47c93669c1b49cba15ab283156f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: generators should default to commit_mode=OFF \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":"src/prefect/task_engine.py"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"683c4b280cbf7e82e46084440c6d25892b5224ea3dfb8b9bc7d204cf6adcdb63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: generators should default to commit_mode=OFF \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":"src/prefect/task_engine.py"},"region":{"startLine":1922}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57dca0ef2ac17f5812b9a02c0edffb147907ad0c77e347701790b98325755f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this could grow the task_run_result \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1860}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01f22629dad8dee177f9e3f4be315679bb8d691a17f428a163a07514490c9fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this could grow the task_run_result \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1938}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a71a57ada166e2d7ef290e50aaa32e86a588d2d9cbdda24fc0a92949ce18924"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Explore possibly using a long-lived thread with an event loop \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":"src/prefect/task_runners.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb8092bd2cbf6b5c302d66de853b7e15c1b4b9c73d64fb50669efa9f9b5d094"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: manage expiration and cache refresh \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":"src/prefect/tasks.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad746552a89256309de090cf275f9d4000689a1a33907e439d056ac514b8b22"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: handle this situation with double storage \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":"src/prefect/tasks.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca28116c69ab8a7eaca9b4e2a85526c3b021dceab260a2b99ef1fb4661f2466b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We can instantiate a \u0060TaskRunPolicy\u0060 and add Pydantic bound checks to \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":"src/prefect/tasks.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"d970ff0400fb6abd908e18ef478f8fbd0a4775d10f6048839926772efe5a3505"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Improve use of result storage for parameter storage / reference \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":"src/prefect/tasks.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d287ef0514dfc126eb0766e7c7ed4b9c91b13e62cf837f7a1187ff7d7b9084"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Improve use of result storage for parameter storage / reference \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":"src/prefect/tasks.py"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2b75b7d9402c9c62ff597a40c7fa69244076ea78ef1eb529fa620fbf461625"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: do we need this overload? \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":"src/prefect/tasks.py"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43090e12f13407e6363c9ca0403a32ca40f43e7dfc95e658b5d57c03bba9d69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider performing text-wrapping to improve readability of the generated \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":"src/prefect/utilities/dockerutils.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fae5609e62d6196cdebc6c59b71d00e1a536977e3599405ca9d03960528a483"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This function needs to be updated to detect parameters and constants \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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bbf74273cc1838fdf990a1202c8b549d4383f78dff886a07f23111919ee535"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This function needs to be updated to detect parameters and constants \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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4693337c1c7463062420389a4dca42fb7b8c018502fd9eaa2b5d9e6176c46e6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Note that the contextual annotation here is only at the current level \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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"069e9eb592d3e86c63446850464590279b51505647ad3126c8bb805fb925b1a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Note that the contextual annotation here is only at the current level \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":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a0b85f0232cce910aabecd0da604f7b1e4cfdf686a9669de00d756f34cf847"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Block field descriptions aren\u0027t currently handled by the UI, so \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":"src/prefect/testing/standard_test_suites/blocks.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5590d9cb2cffedaade798451222cb1e62588467ffd28c63233915669a98b37"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: reconsider \u0060when_used\u0060 default for more control \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":"src/prefect/settings/base.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac91fa6431122ae0997b9cd04fcd4fbfb1dfa217d678f3606d3e1174761e6a33"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # noqa # TODO: remove once all usage updated \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":"src/prefect/settings/base.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba0aea648d511ef9ee422c492539db73a2ed752a7e1c2be44e15578af2a1bc7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: SQLite MAX() is very close to PostgreSQL GREATEST(), *except* when \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":"src/prefect/server/utilities/database.py"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"113b51d313b399011a3e198a6301d3383256d9cd7a740867bde87b7cc02da19f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this could be optimized by excluding any fields that we know we are \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":"src/prefect/server/utilities/schemas/bases.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b81d0a8dfaef63572035d056044fb7f6becfe84aa8c62a444f170ac149b1d7a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: HttpUrl \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":"src/prefect/server/schemas/actions.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aed19fdde6b28d250574ac117a40f51e2704453e014f54a875118ee3faf4647"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: HttpUrl \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":"src/prefect/server/schemas/actions.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcfd1b3c9bfce6b039f5258b821a11f0f2bea507ee353b2d38e777c51486888"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: HttpUrl \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":"src/prefect/server/schemas/actions.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"70347ae88ec01ec1128f65c4aa56f49250bb7110bf3d00c3c486cc4e45e58d2e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: HttpUrl \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":"src/prefect/server/schemas/actions.py"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"1667556b88585ad06a564b581e9b623a9550dea139fb225d5faeb330b7cbc0ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make it HttpUrl \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":"src/prefect/server/schemas/core.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2b88ddbb43bcafc7cc89185773d7c2b31d7308d1d85ff0be6f2a3754187b09"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make it HttpUrl \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":"src/prefect/server/schemas/core.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c5d0f3ef58a0ff7fae6d84cca824c30684ea2ec9f2be3a0b44633fbf64487c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider moving the \u0060as_sql_filter\u0060 functions out of here since they are a \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":"src/prefect/server/schemas/filters.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"225f7d172459330b246d9b443e1c9d7889d1909c9c848a1a60ead1d854258e06"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove this, handle with ORM \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":"src/prefect/server/schemas/responses.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9b047d9d1bcc953058100dec2d8f0a99cbdda0a4060e2687abd7ef29c9cc15"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider moving the \u0060as_sql_sort\u0060 functions out of here since they are a \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":"src/prefect/server/schemas/sorting.py"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4599b43440c13aeb954c823dba8fd673b392c1dfa3610808c3d4db0a94afdb07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Investigate if we want to include triggers/actions etc. \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":"src/prefect/server/events/pipeline.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e0dbdd05103e5670852bc3e84869ccd6f5dea7d104ed3039790b9befe5cfda"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO remove this foreign key for significant delete performance gains \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":"src/prefect/server/database/orm_models.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"61435b40656c2304f908221c7e9bbb9b98a2b85d34c544586c8bbe45ee75162d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this seems like it shouldn\u0027t be necessary \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":"src/prefect/server/api/concurrency_limits_v2.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ddf1896169e2015fd68d134fc951f564cec5883801c3392096878687370ca1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this seems like it shouldn\u0027t be necessary \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":"src/prefect/server/api/concurrency_limits_v2.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36cd6a8b40749790e428080ae5c94b6535a0c75e281e685e9914f2d003de60e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this seems like it shouldn\u0027t be necessary \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":"src/prefect/server/api/concurrency_limits_v2.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3371e7c42ad28cc9d20d1ada7bf8405ba627e9c7167be31d209288cf55fa6f91"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Move these startup functions out of this closure into the top-level or \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":"src/prefect/server/api/server.py"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b4c56ca5dcb9717d97d27141fa3a2730a87abd22b98f8bbc959b238d707622"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this logic can likely be simplified by using \u0060Task.create_run\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c1d187dd1eb56115fa6158d1a198594f92daee199d57900b1ef4fa082538b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this logic can likely be simplified by using \u0060Task.create_run\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/flow_runs.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd526bc220552061b1e25936f5e643a481eabaf367b88aafcc8307c6f66c8440"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: maybe reconsider \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":"src/prefect/deployments/runner.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0570de323c4c44f067a6dfb4799623d5312e60f1c5abddbcd9614312fd2469"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: A deadlock has been observed during multithreaded use of clients while this \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":"src/prefect/client/base.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0cfc8b004b4f62ee04f69f068a8b5c629e58b878c88928f7be02a48426cb05"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: change default \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":"src/prefect/client/schemas/actions.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da8241d8eb50cd7e73e92e3a0f937dc321e1b54c2f9e57805671e1c103313a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Deprecate these fields \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":"src/prefect/client/schemas/objects.py"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56bbc4ee1a2b5d484cbcbfb0db8afed58b5774b19249c419353cb8fc038cce2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Deprecate these fields \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":"src/prefect/client/schemas/responses.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"3828387e063769f66e89ff3ab93a12e21d678ad626c7130112d706cb38154719"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We are likely to remove this method once we have considered the \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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b7b528f3fd766835b6ea714b85133764e4f1a3ddbfa5469dbde525d9b63e7f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We are likely to remove this method once we have considered the \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":"src/prefect/client/orchestration/_deployments/client.py"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"8920ec22f3d6b976a5409d9c254df03d136cf8668a03eef76109c1929691aa3d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Find a better way to get a work pool by id \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/automations.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ff453e2c18cf15bae5675dbb657ac880121e70c797259caac5a7d574a33e9e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: When we write serialized versions of the objects to disk, we should have a way to \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":"src/prefect/cli/transfer/_migratable_resources/blocks.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec47db55f3385a51a7ce686e355385252170341f66b4a40e4ee249a1d6d692d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Check if data needs to be written differently to maintain composition \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":"src/prefect/cli/transfer/_migratable_resources/blocks.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d70f4274b2c52c0a608c461d316dc6607ad6bcc76ef74a264b02fdd38ac2bbf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add real client methods for places where we use \u0060client.request\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/transfer/_migratable_resources/blocks.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"1191b2fd73ae0edd6569692b6e609c1897d1131a54f5b83b3c6c0260ae0e2662"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Figure out how to find block document references in pull steps \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":"src/prefect/cli/transfer/_migratable_resources/deployments.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c663bdd540054e097291af9cf930d3438b73bca802c1733a6db46fc61ad411"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Figure out how to find block document references in bundle upload step \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":"src/prefect/cli/transfer/_migratable_resources/work_pools.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd7288e1410b1eb61fa560abe14c8c2044ef9d81e3506fef7fba0fc4c852d70"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Figure out how to find block document references in bundle download step \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":"src/prefect/cli/transfer/_migratable_resources/work_pools.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"018b5f11a7210f3a6bf5b1ae402bd15633621b9f43defc9be1600a4e414b89f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make this a thing we can pass directly to the engine \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":"src/prefect/bundles/__init__.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"397b37bdf7b997a09c97c65691deb6b09dd84626afe8d70ea790b1f48e0a2d63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This interface is heavily influenced by \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":"src/prefect/blocks/abstract.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51fe35773c537ee63ab55cc6dcf8ad78a563896c5fdcd7faa6fa3dc09f79504"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: replace with only sync client once all internal calls are updated to use \u0060Block.aload\u0060 and \u0060@async_dispatch\u0060 is removed \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":"src/prefect/blocks/core.py"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1448923aa6cfec591d73e8a35fc1d6b7c7e4f3de38802fb9a6337e25766e1ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Move to prefect-slack once collection block auto-registration is \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":"src/prefect/blocks/notifications.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dc9e13375bcf2b23bab000d4264526d922961988ffc0adf139b86ba01b804d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: # isintance doesn\u0027t accept generic parameters \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":"src/prefect/_internal/result_records.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01dfa5c882d4ef1dde3e831e41138eb1705ed4df4a4f883567c12f920d090db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove sniffio handling once anyio lower bound is \u003E=4.12.1 \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":"src/prefect/_internal/states.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cc748bf94db8a128c0e79686dbbf2ab6093a391695b47bb26b86222fe77c0b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: if we use this elsewhere we can change the error message to be more generic \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":"src/prefect/_internal/schemas/validators.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffbb1b058be4bfc68fe7524f51a51c5b92f4bfe0c1705de33edbf5ca9523a4c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: if we use this elsewhere we can change the error message to be more generic \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":"src/prefect/_internal/schemas/validators.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bfb38dcbbdb17c36283f68a782b6a13b631b695c089ad9ec5f609292a0d272"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: \u0060load()\u0060 claims to return module types but could return arbitrary types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/plugins/collections.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"622fe750b961c150b17548c3f8c8fd70968b1bbfd6a4048ee8b8236050295950"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider the utility of this once we\u0027ve established this pattern. \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":"src/prefect/_internal/plugins/collections.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c91aa19654114bc5d581923ca2df5660ae0db014298a9552eb84c2e2ce329dd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Use exc_info if we have a logger \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":"src/prefect/_internal/plugins/collections.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a153611a08134f0f8a09fcf07174e0fbc2c05bd2954658b991577587aab3aed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Can we also delete the scope? \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":"src/prefect/_internal/concurrency/cancellation.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2699721c5b38d61134e1d34d7a8f203bee67074bc2e258bc503026cd8591ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: This thread should not need to be a daemon but when it is not, it \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/concurrency/services.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d287f153e55d0dabdb0a375e21ea5d42f6ba506e362cd9818594b54e37eead"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Determine a better pattern for this and expose for all tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/tests/conftest.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a509146a59739afee2138083d463af90f6e79a7eaf52671fb8037a551a58401b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Determine a better pattern for this and expose for all tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/tests/conftest.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d50c3eeb74fa0157878b2356b0a95d56d1d90b8d35ce8f513c8d9746836830"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO - should this raise instead? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/tests/test_ordering.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"c292668c0be0f9abcd71f0fd024fb6a4369765fade51556771408bd1da0f102c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO consider lookup table instead of the if/else, \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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14a1c44b50256b9d42725343a99865a164a26ed163740b341d7fce4f74fbbd0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # dask_task_runner_with_existing_cluster, :TODO Fix serialization errors in these tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dask/tests/test_task_runners.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01f9abf26f7d7751bc0d0557164e139f5d1e896a5a5ba60bc55e359e9f6dd28"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Update the base class, remove this override, and bump the minimum \u0060prefect\u0060 version \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":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e310c300447ecda0f365ccc0b76bdc3d6eb30f7d314b64dd653d58f064ac3e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Does not match \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":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"1add5023fffd42c861021156164df467de3c3b0a723ce64250a02b1ff8351ddb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: These should be overridable \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":"benches/__main__.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10d4349d3affde125370894b8830c6283e1e292263c8c202ef1d4a647c38738"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Find a way to measure these in CodSpeed \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":"benches/bench_cli.py"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff95e41c68ad3346f83001ab97406143661d1df410870d2c7f15d1b4cc14ccd6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Find a way to measure these in CodSpeed. \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":"benches/bench_flows.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1bb2573ad4ab97c909ee1acd6d4964a06f921d618b1747209101484c1e62c4"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-bitbucket\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-bitbucket/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-bitbucket/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39133094bf2ada97d9f08cf7502a1463d41e9e9529ec04de1fe6802b2299e0b4"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-dask\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-dask/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dask/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"798fa6d9a4ee6c01754e841f1a63028de8ed16310d1a4636ce1b54fc32418356"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-databricks\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-databricks/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-databricks/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe62e4935373ebe717f89fb1e4361b84d5243ebadca6e95895aecb87d264dcf9"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-dbt\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-dbt/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf160077da57d81d2bfbd26cd86ca7fbb59927f4d261a33b76ff90d89a33b11"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-docker\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-docker/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-docker/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"169c882a9ec04dd3d89624ea5c8739723f05b1fa8cc0d815450f522d2c6d0144"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-email\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-email/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-email/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0228a5a86af37a3e567a395ed33d00d9a3d870cc8c1633e5d2f2419d5d5042f"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-github\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-github/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89056228b63b44179aa0c27eed14f13848aebba612e6c5ee26ae07c724489eb3"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-gitlab\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-gitlab/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gitlab/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ddb9053692e2308237bfb1bc0dc60f02f32a3b3082aec5bd0fba82e251dcd6"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-kubernetes\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-kubernetes/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f5751c211a7bacc7d616da1feff29eca6c9e094961b1740911e3a37a9f1d4b"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060integration_tests\u0060 is a command-line distribution (scripts in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-kubernetes/integration_tests/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/integration_tests/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad38b7a3d1bd5845cca46b82c5979957b9c9aaf4b1513131b87559e11aab8a2f"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-redis\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-redis/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb60e20238f45c24b2d0755cb82857f3e39c048998dfc1e0fb8762eb722f054"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-shell\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-shell/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"494592db9bc40fba1001668a0bce7fc332933e6b9acb05fd6b69d6c1aaa1b16a"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-snowflake\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-snowflake/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-snowflake/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bde7d1a95e01fc7be6df9f02468cd928a6f1209d5a3905c5608716eb06a0178"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060prefect-sqlalchemy\u0060 is a published distribution (a build backend in \u0060pyproject.toml\u0060) and neither \u0060src/integrations/prefect-sqlalchemy/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-sqlalchemy/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"145cd04b9f8a3ac73ac440fb46a5e2f470cdc2dc168b9171a241ed41ba377d6b"}},{"ruleId":"D20","level":"note","message":{"text":"ADR has no Context and Decision and Consequences section: plans/2026-01-06-custom-deployment-sdks.md has no Context and Decision and Consequences section (a heading such as \u0060## Context\u0060, or the MADR equivalent). A decision record states the context that forced it, the decision and its consequences, so a reader can tell later whether it still holds."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plans/2026-01-06-custom-deployment-sdks.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37469dd1d2108b8f355ccc8054dd3294d57f6311a2181f60707c4293d7dbf524"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060do_GET\u0060 spells \u0060GET\u0060 where 690 names in the project spell it \u0060get\u0060: 690 of 691 names in project prefect spell the token \u0060get\u0060 (690 of 691; unit: names in project prefect containing \u0060get\u0060). Peers: ai_data_analyst_with_pydantic_ai.get_column_info (examples/ai_data_analyst_with_pydantic_ai.py:106); ai_database_cleanup_with_approval.get_human_approval (examples/ai_database_cleanup_with_approval.py:97); ai_database_cleanup_with_approval.get_ai_approval (examples/ai_database_cleanup_with_approval.py:160); per_worker_task_concurrency.get_worker_id (examples/per_worker_task_concurrency.py:42); backfill_release_notes.get_release_tags (scripts/backfill_release_notes.py:70). Rename to \u0060do_get\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/microvm/server.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1cf45d5b257b05a1a93f921e35a8f68c8bb720fffdba7e6db7311be359728a"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060do_POST\u0060 spells \u0060POST\u0060 where 17 names in the project spell it \u0060post\u0060: 17 of 18 names in project prefect spell the token \u0060post\u0060 (17 of 18; unit: names in project prefect containing \u0060post\u0060). Peers: DbtHookMixin.post_model (src/integrations/prefect-dbt/prefect_dbt/core/_hooks.py:101); DbtHookMixin.post_model (src/integrations/prefect-dbt/prefect_dbt/core/_hooks.py:104); DbtHookMixin.post_model (src/integrations/prefect-dbt/prefect_dbt/core/_hooks.py:106); PrefectDbtOrchestrator._run_post_model_hook (src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py:703); PrefectDbtRunner._run_post_model_hooks (src/integrations/prefect-dbt/prefect_dbt/core/runner.py:445). Rename to \u0060do_post\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/microvm/server.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf287b850f5a0086510c1e7017b9be8b0005d91ef62a5149ed3c78955b0e307"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Code copy button\u0022 repeats the code it sits on: 3 of its 3 words (code, copy, button) are already in \u0060const copyBtn = e.target.closest(\u0027[data-testid=\u0022copy-code-button\u0022]\u0027)\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/script.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb72e8b14e055329e115b6898a75b7ff734bf48bc639086f578125a9cbe92db"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Click on the block name link\u0022 repeats the code it sits on: 4 of its 4 words (click, block, name, link) are already in \u0060await page.getByRole(\u0022link\u0022, { name: blockName }).click();\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/blocks/blocks.spec.ts"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cd4c3062136e3fbded61f918ea949c6ed1c486510b7d2031385bf1fa455e99"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create a parent flow run\u0022 repeats the code it sits on: 4 of its 4 words (create, parent, flow, run) are already in \u0060await createFlowRun(apiClient, {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/dashboard/dashboard.spec.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c786c95aefcfeaab824fe707aa19ea9a38631e66fca94bf55d54472f4c34898a"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Other flow runs exist - skip this test\u0022 repeats the code it sits on: 5 of its 5 words (flow, runs, exist, skip, test) are already in \u0060test.skip(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/e2e/dashboard/dashboard.spec.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b489bf6b38c3a319ce99647c7333bb9f37bc9095fc6b8f9a9486a3d4a002ab1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Creates a set of unique flow ids\u0022 repeats the code it sits on: 4 of its 5 words (creates, set, flow, ids) are already in \u0060const deploymentsFlowIds = new Set(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/deployments/use-list-deployments-with-flows/use-list-deployments-with-flows.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb2caebeecedecdcb5fa1b870a42b23ba518ed8b1b01b41d39743ae8f6e0035"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Invalidate workers list for the work pool\u0022 repeats the code it sits on: 5 of its 5 words (invalidate, workers, list, work, pool) are already in \u0060void queryClient.invalidateQueries({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/work-pools/work-pools.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acbe06785e321b3945ab9ab57c0e6aa907108601ae7b0bd6f4edfe005a15036"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Click on Trigger step\u0022 repeats the code it sits on: 3 of its 3 words (click, trigger, step) are already in \u0060await user.click(triggerStepButton);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/automation-wizard.test.tsx"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"684bc910696bfd5a3a0ed05b4b243a802eac5fb40780e27656538794905fae0e"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Click JSON tab\u0022 repeats the code it sits on: 3 of its 3 words (click, json, tab) are already in \u0060await user.click(screen.getByRole(\u0022tab\u0022, { name: \u0022JSON\u0022 }));\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/form-mode-toggle.test.tsx"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28d476a2c791f385b25cd9ec06c747a735b7cad4d3dd948389658971970ea11"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Validate and parse JSON string\u0022 repeats the code it sits on: 4 of its 4 words (validate, parse, json, string) are already in \u0060const validateAndParseJson = useCallback(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/trigger-step.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac7868f1ceed6571b92e1811afb3da0990b98ca1a764b6ca30343ded95c728c"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get events for a status value\u0022 repeats the code it sits on: 4 of its 4 words (get, events, status, value) are already in \u0060function getEventsForStatus(statusValue: string): string[]\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/work-pool-status-trigger-fields.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6acce5c53f22ef95d23d2fd755f74ed2db45e7bc67091320039620afe9593c3"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Helper to create a deployment-status trigger\u0022 repeats the code it sits on: 4 of its 5 words (create, deployment, status, trigger) are already in \u0060function createDeploymentStatusTrigger(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-utils.test.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba95d869e79f779d3035e4d8c176982f401f95165220347a5ddc1974388c9e8c"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Helper to create a flow-run-state trigger\u0022 repeats the code it sits on: 5 of its 6 words (create, flow, run, state, trigger) are already in \u0060function createFlowRunStateTrigger(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-utils.test.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1403484e2d577e8f59980f080c4704010ce2e2f44e8a48a2d528a4b20c1ef50"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Helper to create a work-pool-status trigger\u0022 repeats the code it sits on: 5 of its 6 words (create, work, pool, status, trigger) are already in \u0060function createWorkPoolStatusTrigger(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-utils.test.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d173edb331dc89dd24494a61387af2f5e59a304c46cef9da9e5b5cce5d2d193"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Helper to create a work-queue-status trigger\u0022 repeats the code it sits on: 5 of its 6 words (create, work, queue, status, trigger) are already in \u0060function createWorkQueueStatusTrigger(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-utils.test.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d267a938dd25e2e9293df6c57782073351781592f04a4a0aeffec356166c07"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u00222 running, 1 completed = 3 total\u0022 repeats the code it sits on: 3 of its 3 words (running, completed, total) are already in \u0060seedTaskRunsCountQueries(queryClient, {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/task-runs-card/index.test.tsx"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"adef4db4dd1be5abd3ed2e1a686f770348afb99f550b6f3ec5abf890656417c7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u00222 completed, 1 running, 1 failed = 4 total\u0022 repeats the code it sits on: 4 of its 4 words (completed, running, failed, total) are already in \u0060seedTaskRunsCountQueries(queryClient, {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/task-runs-card/index.test.tsx"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e44244efdb9b5bba1072b489a03d9453dafcee43914041253f0fb5cbfe0c4af"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Mock getBoundingClientRect for the container\u0022 repeats the code it sits on: 5 of its 6 words (mock, get, bounding, client, rect) are already in \u0060vi.spyOn(wrapper, \u0022getBoundingClientRect\u0022).mockReturnValue({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/events-line-chart/interactive-events-chart.test.tsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d57d9dffed0d5fbb528db8befe6bb1083f35138957d9e59822115d89ae14c5"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Organize flow runs with gaps\u0022 repeats the code it sits on: 4 of its 4 words (organize, flow, runs, gaps) are already in \u0060const organizeFlowRunsWithGaps = useCallback(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/activity-chart/activity-chart.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"568d4b8298d71e9115aec972efa24b0c3f9c7714333dbac3a08d66e26452d799"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Click \u0022Clear filters\u0022\u0022 repeats the code it sits on: 3 of its 3 words (click, clear, filters) are already in \u0060await user.click(screen.getByRole(\u0022button\u0022, { name: \u0022Clear filters\u0022 }));\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/runs/runs-page.test.tsx"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"828f699f5922b9f918ddbd27eea5cff3850c9c4666312da08645ca2decabfcb0"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022User-saved filters come after system filters\u0022 repeats the code it sits on: 4 of its 5 words (user, saved, filters, system) are already in \u0060const userFilter = result.current.savedFilters[SYSTEM_FILTERS.length];\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/runs/use-saved-filters.test.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fd77ed2a77e9cd58b40a2d1dee13daeba7e6529189ce693eb4d10e7aeec8da"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022User-saved filters come after system filters\u0022 repeats the code it sits on: 4 of its 5 words (user, saved, filters, system) are already in \u0060const userFilter = result.current.savedFilters[SYSTEM_FILTERS.length];\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/runs/use-saved-filters.test.ts"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e4b826da00cbccf1f02390a44c196fb3d691704a6de7b7d94d1cf6da105d46"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Mock the API query\u0022 repeats the code it sits on: 3 of its 3 words (mock, api, query) are already in \u0060vi.mock(\u0022@/api/collections/collections\u0022, () =\u003E ({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/create/infrastructure-type-step/infrastructure-type-step.test.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"36823ca70a5532da8ce7024139bf1bbb5d248376e44e51c57478fec4d42499d1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Mock data for work pool types\u0022 repeats the code it sits on: 4 of its 5 words (mock, work, pool, types) are already in \u0060const mockWorkPoolTypes = {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/create/work-pool-create-wizard.test.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4105bdb6f20617371c3675b0477cff398858b01c9535693ccdd4bad4b634990"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Mock the collections API\u0022 repeats the code it sits on: 3 of its 3 words (mock, collections, api) are already in \u0060vi.mock(\u0022@/api/collections/collections\u0022, () =\u003E ({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/create/work-pool-create-wizard.test.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d22ab82be7e7f6e8b9546f54cb4d48bab87e48b024c057a9678637fc5e033ca"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Mock the FormattedDate component\u0022 repeats the code it sits on: 4 of its 4 words (mock, formatted, date, component) are already in \u0060vi.mock(\u0022@/components/ui/formatted-date\u0022, () =\u003E ({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/poll-status/poll-status.test.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9624e82082bebf4150c35912316753faadb835e45d7ffe44319e87b5c21de28d"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check if work pool has base job template\u0022 repeats the code it sits on: 5 of its 6 words (work, pool, base, job, template) are already in \u0060const baseJobTemplate = workPool.base_job_template;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca3ca22cfebe2ff23782ee76056efa61840609ca55d059cc848bfafa4494fc1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Mock DeleteWorkPoolDialog\u0022 repeats the code it sits on: 5 of its 5 words (mock, delete, work, pool, dialog) are already in \u0060vi.mock(\u0022./components/delete-work-pool-dialog\u0022, () =\u003E ({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-menu/work-pool-menu.test.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1935d32722ec0464e5c0418744899b4c66b407a902e891395ec0d36b3c73834f"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Mock Tanstack Router\u0022 repeats the code it sits on: 3 of its 3 words (mock, tanstack, router) are already in \u0060vi.mock(\u0022@tanstack/react-router\u0022, async () =\u003E\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-page-header/work-pool-page-header.test.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"e761d8de6324b8797eb6c2dc63dbb6dea2eaae5e0fc69b84f289846acee679c1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Mock the delete confirmation dialog\u0022 repeats the code it sits on: 4 of its 4 words (mock, delete, confirmation, dialog) are already in \u0060vi.mock(\u0022@/components/ui/delete-confirmation-dialog\u0022, () =\u003E ({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-menu/components/delete-work-pool-queue-dialog.test.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b936cdba657ab0bf15be64a95f9fa715d6ba79b9bfdf04960b5cd707fdfac75f"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Concurrency limit column\u0022 repeats the code it sits on: 3 of its 3 words (concurrency, limit, column) are already in \u0060columns.push({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queues-table/components/work-pool-queues-table-columns.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dddd42c93c9830c146f15596b33414921cb8d2fc556fec093b74ee0f895c408"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create columns with late indicator enabled\u0022 repeats the code it sits on: 4 of its 5 words (create, columns, late, indicator) are already in \u0060const columns = createWorkPoolQueuesTableColumns({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queues-table/work-pool-queues-table.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a3f282097f212ebd17b935496bd7f974b0aa26735fde965df2435c6c773a9a"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Add new color mode class\u0022 repeats the code it sits on: 4 of its 5 words (add, color, mode, class) are already in \u0060document.body.classList.add(getColorModeClass(mode));\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/hooks/use-color-mode.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a02a772838af5caa268b6162f8c7d4b50f184358345abee6d03a240dfc2398"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Prefetch count of flow runs for this flow\u0022 repeats the code it sits on: 4 of its 4 words (prefetch, count, flow, runs) are already in \u0060void queryClient.prefetchQuery(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"57974509e64ba330e5a9974d1b7f15fbdf385074ff76193520538e79880e7bb7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Completed runs filter\u0022 repeats the code it sits on: 3 of its 3 words (completed, runs, filter) are already in \u0060const completedRunsFilter: FlowRunsCountFilter = {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1cbf249a06189aa329c589944486a3115baf3699eb1c491c1a557f09838822"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Suspense queries for stable data (flow)\u0022 repeats the code it sits on: 4 of its 5 words (suspense, queries, data, flow) are already in \u0060const [{ data: flow }] = useSuspenseQueries({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/flow.$id.tsx"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c1e2ddcd572c45f566f15214ba254693725fb8cb1f7e57ffc167ab7d61437e"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Prefetch deployments count\u0022 repeats the code it sits on: 3 of its 3 words (prefetch, deployments, count) are already in \u0060void context.queryClient.prefetchQuery(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/flow.$id.tsx"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc6b280999364f15429e44205522753434d8b538f5dbd40daa5f95b5f3f9aee"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 7 comments in this file only repeat the code they sit on (lines 85, 182, 187, 192, 318, 323, 328), for example \u0022Helper to get date range from search params\u0022. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22b840b18c9b625da8cd320c74a43c10dbf7d41cc1b962f16986747f74d83b6"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Prefetch filtered variables\u0022 repeats the code it sits on: 3 of its 3 words (prefetch, filtered, variables) are already in \u0060void context.queryClient.prefetchQuery(buildFilterVariablesQuery(deps));\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/variables/index.tsx"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d481e9a6a91b1de967023219f54141873b603f029667d92f8fd1ae9233f29a"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Wrapper component for Work Pool Queues tab\u0022 repeats the code it sits on: 5 of its 6 words (wrapper, work, pool, queues, tab) are already in \u0060const WorkPoolQueuesTabWrapper = ({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"938b94d874b48ace15462ce7e2049c102240201ca3045b8624bcf4c436025fb5"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Prefetch flow runs count for pagination\u0022 repeats the code it sits on: 4 of its 5 words (prefetch, flow, runs, count) are already in \u0060void queryClient.prefetchQuery(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1860bd07907b925ebff3e71a9597b023e3998d2206d18e6260f3794c94828f"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 6 comments in this file only repeat the code they sit on (lines 32, 47, 52, 66, 77, 88), for example \u0022Mock matchMedia\u0022. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/tests/setup.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde26d00e405ac8e9af1285b7544569c679402449eb4bcca1e21e65725ac009c"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (180662 LoC, 2219 module-visible types across 100 directories) overshoots its size bounds. 3 of 23 build unit(s) (Python, npm) overshoot their size bounds, lowering Project Cohesion to 7.4/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4842ad367a78941ccec73d857627e21e838b932492f4ae73cdd87ada79a9f00"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060ui-v2\u0060 (90524 LoC, 822 module-visible types across 262 directories) overshoots its size bounds. 3 of 23 build unit(s) (Python, npm) overshoot their size bounds, lowering Project Cohesion to 7.4/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/package.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c09cce25ca97c5b0fde9f96acee273f25bece21421fa81a99c11d3fc92f9f05"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060src/integrations/prefect-github\u0060 (39239 LoC, 1324 module-visible types across 2 directories) overshoots its size bounds. 3 of 23 build unit(s) (Python, npm) overshoot their size bounds, lowering Project Cohesion to 7.4/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/pyproject.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ab87ae808100c83656a061f64ce4a437e5cfbe8fbc19ab92b1a6658420e1ee"}},{"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":"ba74077ec1882cd1f5c998749d7120de38811b576e4b2d6c874c9aa36e4f6d5b"},"properties":{"commitSha":"4752d0bf871fb23ae3c27226431ae6fd2c528252"}},{"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":"6e7ca8536956d9dde60baccc8ed67c1acafe038bcaff76013ca7b7760c4a6aff"},"properties":{"commitSha":"8c9668592c33eb9913be6ef973e8b348c9652b1c"}},{"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":"faa78cf271a1094ffdc99980df2fd68764db3a1f3c49a1f345c4d9d4d5c1c059"},"properties":{"commitSha":"93f11035a09ad2a5f7a69dfac7fc39c308803db1"}},{"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":"88fe0183da5a35b33ce057845228487b31894f41556b50e6db5e873eaeb985fc"},"properties":{"commitSha":"8b8b1e7b0946bbd04145388173eed0154e25bdb5"}},{"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":"a18a9a92a8c84c634533d3c1b8f73f1f28d86eee2da6706c521fc441567f66c7"},"properties":{"commitSha":"a8e3039f795089e5f0e50bfbc86b48be1e28687b"}},{"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":"59392739efb69d8ad8576a1d738eb3713445ceaa76ba9586451deb91e5937858"},"properties":{"commitSha":"b84e1ffcf4bcca9ab7a9c9d19da91db8557def24"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e28face3e4c9959ff685292ae1d3a4591e53f5a456bbcc5f5ec13d7640fb4dd"},"properties":{"commitSha":"c923e81d7f2e0b6681ca6718d3dafb89351a2afd"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"86f801044803bbaab260d36a27ce6a605f8d3d65a95c614c416ece5085f6fcdb"},"properties":{"commitSha":"494d4c074b17329d609c138ee9d8a5ddf004f3f8"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bda3cc38299a21c62d2bac8e8a4237e818e7577b81153ce8c2a68a16413f35ac"},"properties":{"commitSha":"72d0b624df9613c8849ac39e736e25abc1fd69de"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d4459f0a70c6356894d46b6da1a5d6628ce1050434ab05b7a3a619d98b91303"},"properties":{"commitSha":"fca00d58d122282b6fb235962157187aaaea3916"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"126ea71077f1c9c39e1d62898fec87809328117658b39d1736ea744cbbdd9dd0"},"properties":{"commitSha":"f5228cc7469d95e1da3e1a96fdc9987252005403"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"170a6c612860ff62842a4a053a401728a9e02961c09b19b51657d8d2a3b29416"},"properties":{"commitSha":"6d8413d6fd18aa67887b74c142e965afa8c60eb0"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"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":"c1f996cc9ff07355e1f3ccf7631bed1033c406467820240454e75207ce134267"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cf3abc7ed41cd23d7419ca46c510035b681376b335c6433c6753407595b98c7"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6ae7fbef4882053caf21045b95a1daf7dc4b0838d2ba9dea1830ae7b232b0d5c"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"46d48a970356c721c69ded64226247558e5016e10451a8071d96a81ad76a0eb0"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fc6c206719b959e7d9d6e718b90f41f8e5910ad6711561f4e6825b1da61bc93c"},"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":"ec163f0645ef39a6f06f9322d171e669689d6ed349d0076f78f41f2679843969"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c063eda78127ad555dd6a64490e9ea19b10d8c7b2401d5fe9ec4c9e0fa5fd79b"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a18356d29517ba27c4868647d21592a49a7645ea01ca5200c338b8aa8b65049"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf77b19b3876d6dbc530da736dae2abe0c5d8e743594414e3e7d4b8f01a9c784"},"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":"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":"c11501a2702f1215a0696aa82bfc10d3eca83087a9d2c3286f1ea028d2e1dfaf"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d477eded2350d83edf00eaeb1f1509e91816cc8e7e03c5242e31a0195f7a3766"},"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":"6ed059458dc0d864f79fffc2c8cd3f09ac2213f256b255ba1e07734350228541"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8750074d2e20406a4b90093c70a4940c4512a95b88c1d3eed37c4040efe3573d"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"e5f0df96944c0df69602996f021787ffd88fa63fe0c42acc92233d1f4d664378"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bfd4c0be1788d0f215d34717eb51fab966162535237356e5bd8dbe47fdadc20f"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"38b69dd3ecef5e688ed33f07439192fb0dc59d918a8ddcb13ea9b090f6e4bba9"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8889e1695100f5e58355b8c36ae642a4aa214aa922cfbf7a0a6b32b23da2ea41"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b8d3a4616dc94571b674a8474266f414a5a9890bf8119f62dfc61786d62a1f0d"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c367d568ab4b80c1ae03bb4f1b95a1a1d58ed048f8fb0599f83db7d332bc1d7c"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f4421b97826c3d27eee92c43d8428288b1610986a2b59d734a28dbbf03ff7a1"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f76eba186ba184242ea8a957c4534b40cb9a67cca6256007d6cdfcb52222808"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"42b2d84ef8260e7ba8eb8ad6c5610f32b1aee44813d9e94bdb5499e2b9316e62"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f9e5746569ffdb673c0a1938533baed7af83eef9e8a6b436885de0f01a5379b6"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82844d9c7be9329cc9f4fdcf297e1f24f92e13e83d326093716ccac982977465"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"36d6a857d8832fd8ccc3a7da935e7eecf56432b0c88b0794f189d34ec35803a4"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3644f487871da37bfe60c4533b8e249ddef6c074e5816e11368b8137aea2e3d0"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3434d191f5c2bbe79cfdd9636faa15bc98865833f22a50d4378d610092ac8872"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"172fc64adeed5500ee7e616d11453131780c94560cdae9bd054f8a2c44d371b5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"5dccfe82bde74e877b5251c81413e7e55d25311d316238220957442f898450e7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"2d879b8f98596cff18a81e91355e3f1007caf7b91b4302e0b675b7fcc8806e82"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"85042e8ab73dc3445daad2f90930aa7db8cfcd4e71d5e05fa49c6e8cdd2e1404"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"47de7ebb4b2d519dc8c072077f04fc921c7ac04bfafdbc3f4d05a40ce03dcdfb"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f748df80556137235aa57763534c4f6cca69fa3d85f972761863e7c5e749a6dd"},"taxa":[{"id":"CWE-116","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f471dd6ea855a9df07e41dfb499f16e37b861505178d47bf5b4b28675b01b2f4"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"890fa653fb82990a490c7fae5e8c3682a52514455627411819769f4d8cf51496"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c30d2a511af45c42d0d1242e358a517ac92a4c7cba6506fac964723fa532292"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d024a2179516be46cfeab5e6f52ac53aceb3fbe40a9532288f42767223a4b958"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8a7ba4dd87c60a32503e46811f8997c673f65572057f49b8432209919e78afc0"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"622f6ace0711e8c4094f1b345bc0e3878a3c0b8c57884cd9d44e1054a1ff8856"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"4f1396446e2d1ab29e0b0a461b9bf63b8b3c5a9e5218ee928327ebcffa9877e5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"b4f514127c006dc3d00fc77dfaec4cb94708a2410494fd74aef4eb71ec329be1"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"382cf7f2f54f388484a411018ce5ab8bdcc05404ce6d9071558474682c593597"},"taxa":[{"id":"CWE-942","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"594d67cd1df3a2393451d136d1c387d48f862625e4e0b32cabf814564663f034"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"8f602de9498986d9e4cc09270975d74ba4dc4fb817b612ba2b1094d58e6bfffa"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"de9d6f6fc834fe82c1993f512077cac770b2bb8d910abb819ef3f8f66a165505"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"12610c3b39f92f4ec250a9e601eb6185c31b059e0a3ff1c4f34afcaf6084315a"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5edc0ec9e0f535342ada95ecc0efcbfe4f1ed6560267b94d06cbf1fa94b95ad"},"properties":{"dependency":{"package":"soupsieve","version":"2.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.0.2","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"13586fc0c39afd311c8f68b33f2e89fbb1618f43b2d8bc54d4d00cd4d7925790"},"properties":{"dependency":{"package":"setuptools","version":"80.10.2","advisory":"[GHSA redacted]","aliases":["BIT-setuptools-2026-59890","[CVE redacted]","[GHSA redacted]","PYSEC-2026-3447"],"severity":"medium","fixedVersion":"83.0.0","relation":"separate-copy","declaredRange":"65.6.3","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6cdceed65387da00435834f5093498279a7dedcf1fc084f8f8b3fe51470a3eb8"},"properties":{"dependency":{"package":"minimatch","version":"10.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d494da274fcc4f9b9f579139fe425b68e6b68433c3fe5ed08d812eedf59e10a8"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5750e341549153b74f1b854c82bfd3c000d223a4e568773ee45eeb33fb93b397"},"properties":{"dependency":{"package":"glob","version":"13.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"14.0.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94c5ac33ef778d5ad7629627d6ba4d791ae626167c93fc8e22d03b5e45cc175f"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"11.0.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"7c745937f75a935195c74ab2917d383f4788b9b3faca64f985797dfcb61dbc71"}},{"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":"ce74899a47ed60ade01f658ed94bcc142f7d61348e7442309118ed1d1156f8b9"}},{"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":"8179aa1519b60b10de0008bae1737c4034aa128ab8ff63934709c31fc4b3eaff"}},{"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":"dad4defb3bf33d93acf323c4020a5501c65b540e181f2666cc49724fd21f83b0"},"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"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dcb55fd9d7c286c736088401dc769fe383863b55b5e624b928851a4dc1bc757d"}},{"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":"434996473465f4f875093ad74398271569c7bf4783d707ac6d8091c0866823a3"},"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"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"2d9e461bb3dade9314d31c10fbcda3a71cabb19a8104c91e96d89c64762c5687"}},{"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":"ea6187e45f205b3341129e9007beda8c02291faea1ef284ad879f2a6850bb308"}},{"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":"cecadb5d4e3346f6eccec212374792c63de5ed049fc75067cd9a503a804cf0e1"}},{"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":"c368225bcd276359e452ff452937a96ee487b746f3dc5c51eebbbd6d6351145b"}},{"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":"552d3777f59779ccccf986dd0e0a28157c7fef7003c7b1e1a4556be815e3f63e"}},{"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":"2c2e5474a19e0b5ca53a659f9d4ad09e4de4dd1b81dd0dc136a0eea946201cc3"}},{"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":"25f035c8f9f98c4f78e709eb8a019baa000cd4cc4a7b07ea35a5249062992869"},"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":"de2f78085113e4f825b95bbc4fff78334693290fcae3fd6f5c4d38bea2ae576f"},"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":"67ea5aab77f1bc6922975b8ab2fc452663c1c147c19e9e01accb17861ea236ee"},"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":"80ecb4027eea38d9fb185e348d0b01137bb43813f15e17cee7fe6d70db0918dd"},"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":"1ac47bdf714de454982eef8e5299740bd56d103ef1b2cdff281cef80e627e92a"}},{"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":"e5279ccb2ea1a6dfbf8a6991dd0a3cdbb15af49e1b7abbdd56294ee2adf6c729"},"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":"6d379a896a0f4a94ecc4d044f0b5b14f30b8f450d6a235eb07d38fe4337346f7"},"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":"4ae9eed8777fe90a5d8ea707c4e97226efdd25ea83b086c068ac05fbe97e82d1"},"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":"5276d931690ff7b0d05f00533e5248609b1bc44ad96715c1d83f27d45deaad40"},"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":"3f51ec95e9c015bcc7fc46a45b870fde83e700d30f2778f1150f0369dfd2de9a"},"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":"8b6d8f37b0b0a9a682bf6453e0f8ff4aabf8ebbf56a369dc4d4e968bcd9dabd5"},"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":"6239d8cf9450399f6651955318a05966dbcc1a8c1731c0078666d7e7552edb0e"},"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":"e0a69ff0ace01fa584992966727c8edbfeaac9f1b21f23e975f9384b707bc83f"}},{"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":"ae81f876a88278ff27f31867a09436cc41bdd131bfc7d4cdde15a7c169031206"},"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":"89592a45405a42e70922a9e13760a119426de84e4bb9f666a9133a0dd39c1d91"},"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":"a9861359a32734749f6b694608484baaee4779c74f61f65a125884b261acbdcd"}},{"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":"9599c067eb026cbc6400560cac7a2f803775f5237babab966b0289c631e20791"},"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":"26f1ebf1431662970ba5f6d732d3391a1491857c9f390c9a5bce735f5a2af489"},"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":"a278b9b8690428537fb07f44ddd92af16628a47af234ae92d9edd8b4e87a81b1"},"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":"c68f0a237c74db312e938d232bba3d8819a6eb16252efcf5bdd78f7f76100405"},"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":"d01315e9cd570f17f80746eadc42027e8934cb5e0d199964db726459ccd69523"}},{"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":"c1166610ae9ecdde84d566a7d569d6d15f0a6615012bcc8625becfe97d4157f2"}},{"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":"79980eeda0be5d1720f4fa435d8201a85355504739a4e161cb9e96bea7899d5c"}},{"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":"d7c2291418d8491d6b73257984954b5e7e01fb1f2a2067a91b7e62edf6d38c67"}},{"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":"40ce6873373e7eec2be04264c81b3e647af9231821066f7d002d3c84b20af4eb"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/mocks/create-fake-block-schema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96bbba7354831488a65e57583bd78315c005b5866a6f2b5355400fcbbfc8dc5c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/mocks/create-fake-block-type.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf559efe573547e451326045383a4a4580d7d0ca93ca3016edb0870e0f4730f9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_01_20_115236_9725c1cbee35_initial_migration.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7146ccfaad1b671ebbe868d434987f085da4bab2ebe6c00a4f3b1f0cc6ae07a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2021_01_20_122127_25f4b90a7a42_initial_migration.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65753cb00db47d407957c886ae9c17de8aa2f1ac4963c913f6422b5e0bf5944d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2023_01_08_175327_bb38729c471a_rename_worker_pools_to_work_pools.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf85e94481ba2edbf8401eea20b6e1e55ad94f44f3cc02318c495d756169f21"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 116 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: src/prefect/_internal/concurrency/calls.py, src/prefect/blocks/abstract.py, src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py, src/prefect/server/database/dependencies.py, src/prefect/_internal/versioning.py, benches/bench_count_flow_runs.py, src/prefect/client/orchestration/_blocks_types/client.py, src/prefect/client/orchestration/_blocks_documents/client.py (and 108 more) (121 orphaned of 840 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 840 of the 2120 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/concurrency/calls.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84ff56b4f7f556874d623d1acea6d11690598ac93abe56e50bee63868dc00d2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/abstract.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a16d7dfe47ae19afbe7dab5535b5e74fc0a0108c97a099b2917bbe20a57f3f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_08_180142_d481d5058a19_rename_worker_pools_to_work_pools.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e7619963ce5007d33fca023c6b27dcedd8437487b86fb0816e41995c814aa5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/dependencies.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ad631aa4e0a666247e99a068df860b905f7eceacda3c863eb20cf274cb5783"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/validation.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f22b493cad6273d4986a1b2d00c926c185f92f066db1b92bfbc6296a6350fd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/versioning.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b868d886e608234694e322ef15eb7cff4053c0eebee2fde6146aa2ff03b37910"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/bench_count_flow_runs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee510a77ee363ec5f15e823be5ac107fbe3b65f0c6b60d53cae682b62f3937f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_blocks_types/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f02ee017da953f9911ea35d7c27478b3ec505715a1fc343c87ccb33622e0dc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_blocks_documents/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adabe30c7852980e63c7fe88d45f2b3e5e9f3f9fcd6b44b61f2355398067bbd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/action-details/action-details.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7266e19b663caa37158d08a62de580ac52d9afaf4873ae3ca8b3602c406368df"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_flows/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85b9ac07d858f14b132a2d6dcdbd828022d9e9e77298bb3e8f5ad1a74c5cd50"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_artifacts/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b426a4469074d44c459fc941b6d1719d9d6061a75a8e3d1f94d8bd46dd53bc3a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_11_24_143302_fe77ad0dda06_add_worker_tables.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fb4a193c4966c885ad33757640a5287998a0074341307a36bad99d61a5a738"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/task-run-concurrency-limits/task-run-concurrency-limits.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3becc78bfacd7f786c9a64de62c39c91b15e54aaa947ebc9d4d6a7d7d86cbb7b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/concurrency/waiters.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60f612068e96956b57a2591a606abe1bbbc520010f7b2fece5a91eb0cf40bbb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/utilities/convertValueToPrefectKind.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8b4f76e679077045650c59af8191f1be61832a09b7f54ea6a4aa65f2008135"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/infrastructure/provisioners/coiled.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"594d41a9713d5197ac64649c74a438dd358298a708cb906ca5cb0968ed85a9e5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/utilities.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"269acdd20155dbfb2cc2c67cd3f194a13ceacdffa95138e0ba9b62196e6ad35f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_11_24_143620_f7587d6c5776_add_worker_tables.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbee1c6c8cc6ae5e8f614f7bd5aa3e67c11af2fda9ed0fcfec8da42d1c5ed47"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/repository.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a721398ae873aad261e4b1b8143286a29aa4a1cb2563571f25a3a583d67b48e9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/menubar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"402fb4206a47081cdff22c56157d2729434242a31571f036d391af18e5bd87e4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/concurrency/api.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba0e83decd3d2a12ecda43720d97fbc5df04af4b8438c7bd1c6a135920200ce"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/artifacts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbaa5373472ad8d9a1d1f54044aad693b32ad9ed3cc5a4dba654160a0127b7ff"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/global-concurrency-limits/global-concurrency-limits.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c546f9b9042addb0b3186c249c2e6cb440af5f616ec6e2ac33f8a3c3c2767a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-details-runs-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e383c1a01f8c7025ffde2ff000e8a2759959eccf2aa24de357f740e94dada7c8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/utils/spacing-utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fa77a8ff14f635e0feb1a3f5b608b387d1962afcc01a01fb01cbba441a0c89"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/bench_block_schemas.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6094e41390425d4a829808c8c9a02cdbd7f1a818724a4a02e3d35ce82cbdcae5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/compatibility/migration.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdb4fba2edb8ed620b17b305ebe2ddcf2159a91331dd72dd3133c4205f0f90e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-form/deployment-form.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01edbd5a9376efe8cef18927a02e2a75983498d81db23c90b5ae88bf54e925f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2023_01_25_114348_b9bda9f142f1_expand_work_queue_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97d157aaec185cacef23d30d74e7aa6383084a7160fc091d7d6b3a80ed122e3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000042_f92143d30c24_implement_artifact_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c54e8a90cdc5728fcdf6e3de873f8d898f614871e82ebda314c63508e8edad"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_blocks_schemas/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50d5ad8bcdb96891606331267b2414a7b75302cb13932a4c9c9bd540a682e53"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_152801_0a1250a5aa25_expand_work_queue_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdd02f4966c45faf32f639dca3bdff5cd6b4859dd8b5be1ced5c9d14683fc3b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-form/use-deployment-form.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5843bb8d100f9d61f1ddd4a951cee874458a4f1edd3dec9791acf1ee98b8ca"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/dispatch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a144219b84529f61c90b5529d6dc307b4e9e23a3a3579c74cc9d1474a81d15a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-details-upcoming-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cc8f5bb9fdb63d17ddae058cbb6bc5b8bbc1acde238f4f2cb971f5c80f94f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/variables.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddfbdd31ad746758282990ac2c39997f400db30a7149811f35cebb6f049aefc3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/block_documents.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"229eb7902b41e6c7b1aa2a236f49000106b89f41bcd1e963528cc0ae55524be1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_06_152528_4cdc2ba709a4_migrates_block_schemas_with_new_secrets_.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9067594dd9a69a7cc1d936cab2878b4309a79113e7a4f708d7e763ac1b768dd2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_07_06_142824_e2dae764a603_migrates_block_schemas_with_new_secrets_.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54be614eec76cebc71359d640d80f9869a7153f21d0880c8f915c005b204a33e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/ui/flows.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2299a6a27539d16143e13d921877d34c4240fc85647b07c531587b973fdc4635"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_variables/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb79ffdf509e01d6d4c54cbbcc8004826b862cbb44797c6ea5320c1b74f85012"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/mocks/create-fake-server-settings.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f933922fc69c3b778e678aedbbe8f82e46c6a65cca4f039b195c6bff44bbcc5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runtime/deployment.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d264f821c056e220605f1c75d932d9ed1f199c5dbe4509f9a69d34669916cc11"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/work-queues/work-queues.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc6472adb2ceb5554fac75b2f1fdd9744a572de2b6148b3e9c1328af0da8094"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/automations/use-get-automation-action-resources/use-get-automation-action-resources.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4838b5185f188d6af1feaa49a4d3f39f333ef31bc1245e3f3721eefacc2fde16"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045500_2882cd2df463_implement_artifact_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"078e50abd1caa0081245b2e22ebc8374fbc78ca088da9dbfb56737848f6500c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2025_03_19_145018_bbca16f6f218_create_new_deployment_version_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88eb7bae2c0aa5a57e346b4117aab34453d5957be3b067bcdfa3330dfdbda5d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2025_03_19_145033_06b7c293bc69_create_new_deployment_version_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f190c66e6b32d565d25b67449772b81c4e08407ed517de80ee2168ff7f659a9b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_05_12_203158_888a0bb0df7b_add_flow_run_alerts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22a3d35dc7f1514f4a07428d725d6f33492124765b4c6d4a963e6e8befe7a44"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2024_12_04_144924_a49711513ad4_sync_orm_models_and_migrations.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9a4ac2696f285e9928fb79d4f3a1223bd8c3a21db7e86b5f82839c5575b26d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/activity-chart/activity-chart.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2189ab13a9c33194b9950f952b9ea8055bc9d335cfe3cd0ee39e30916d6f07e3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/command.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5483239c44c36c7a2b1a8d7517b685fb8580816d433098c96cafdb42d1bf671a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-settings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"641adfc88e63c6fb6cff31e99d96d1a9eb15a3c603b09f9ace71673dca349406"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/dependencies.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25b787d77c00e6852a112335e47e880f7867e1555bad3c2281abb67fa9fbd56"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_02_17_151416_7c91cb86dc4e_add_agents_and_work_queues.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07626e8fc52c2819f3c71fca7a58d11974d34632e5ecdd538f10e977df81f98"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c26_migrate_artifact_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"526a789aba4741430da36a35c4473e37c4894163c178d34743af230e98736f28"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/select-work-queues-fields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4e5e1668723b5a1a82d943bf27cc39329323a9deb2b6cc3a0e2f8b061cdbae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df465_migrate_artifact_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa61011007ae8f505ad1ea3a751972fedd5351df7f333e3d06ab047a80acc109"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/stepper/stories/form-stepper-story.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18da4bb04e5fc357a4838065acf967528159ec66a7ebd9f407458365680a0a6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-data-table/task-run-concurrency-limits-data-table.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f3640825d7dfd7e9e268d57def7ae5558bae7351d22ce3275af3b8d86bee7f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_05_12_202952_dc7a3c6fd3e9_add_flow_run_alerts.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"272224512ffd25acc655b7a6f1e4bad6b09af0bdb8d62ed6f39721231e3b1c69"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/ui/flow_runs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b12e566c46c67711a84f1becb4a7c9fda4cd768aaab7aaecf33114790546fc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/render_swagger.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9945d3b83eb82e9febf5538444b934e967a1992f25d187512a3b832999b77e08"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/select-automations-fields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c61612bd9888c8894371bc4e6f8183b146ced94b8109feac585336a5050156f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/select-work-pools-fields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4253a96c8d9dd192e3114565e2c0bd053ac13918d6a7918d3e0ebbe4c4495404"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_02_20_103610_e1ff4973a9eb_add_block_spec_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7979180df5e32ed5808d2951a10bd7ced2f9755a8a77c1b72848a3f09ebf13b5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-pagination.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dd5baabda2a6421cb9ae19a4df73ceb98afc3fa6cca2277fe4b6a444beab67"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/alembic_commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c446a961021cd97079de73cef1921cbea7c2f4fd5c58c8287626564d196a0485"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/global-concurrency-limits-create-or-edit-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad9da230bd5232a6cb9807c8d2d48feebbac38796d85764353616d57abf6b94"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_experimental/sla/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4834ef7c01ff9e9aa4f7245e307e24a50ec240ac6b6de07b833a089dbd28dca8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_17_140821_5bff7878e700_add_agents_and_work_queue.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d620c219ca9332091cc4702e80e77076a231a7b1a2f47b82b78a6a09d6144f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/concurrency/inspection.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac2bcd284264380762f68662024b274f0a2d12b764e12d5ec4046dfbe159c2d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/webhook.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e09c9576d222f40879449856e8d959e551dc10b51df23e2dd8e7d99e85c83bd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/utilities.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b0ba894d52ef12608a8429454961e88b64035a14d355d7d6f3ba34076df81a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-data-table/block-document-data-table.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e66651dc3f6eedc81cc7680836b63fccbb2a6c7549fb0cc7254c8e623e7530"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/action-type-select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b3329aaf36126ad782db9a31edff1abc6b0152ea7bce5fa82ad4a6c6082aa1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-create-dialog/task-run-concurrency-limits-create-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9eb21b9d058a426f9ef797f8c5cf1006c87d466e3eef65d5657c29b140f8ce5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-types-multi-select/block-types-multi-select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba8bb4fa0e26922b049ee57b8e67c8e1c662d4885464c6669d7ec5ea50b484d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benches/bench_flows.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f08099fbdec5c24dc6ff62803bdd4e233272116ade96260dcad61f3c93d732"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/saved_searches.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db05a6cdeb40d1e5b67c856d457ace72c35f82df3f82d14d81b8681ef408265a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/global-concurrency-limit/global-concurrency-limit-select/global-concurrency-limit-select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fbbcf87c5d2644ef64989c28a9040cb9cfaf7ce4ece99b5089c866d11128ee"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_02_20_103844_4799f657a6a1_add_block_spec_table.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e874cfdd2404cd40736ce752017cad38aac1e07702120d0565b9f3a4a181113f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-row-count.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9776309f924928dd692a62cf472967d0a5fa254bd8c9ae50b045ccce03712f0a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2024_12_04_165333_5d03c01be85e_sync_orm_models_and_migrations.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8deb904d151b9e1381209f65e1363ed1c0f495b4d4ec7ff2f96c15487c686249"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/concurrency/v1/asyncio.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d28c7714a157c954647d54289d4b6b4cb947310b47f0189824311b79caecc0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"306a495130736fa5e39e05bbfd5995603598b1d3f32cfd30812b924aa6ff03ef"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/action-step.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9985b7134837c9ecbf223a5f83a4a98c4b5291c742267358122339fd74d7b87"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_05_30_100855_d76326ed0d06_rename_run_alerts_to_run_notifications.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0698740d10e67d1bf4891e4e15e0267f84a66191f93b180bbc4c429e9312d50"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-details-page/block-document-details-page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79c8d5d18d11b99fd1a8cf6d45d98fd36155ea4bcf131847d50224d31a8018c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-queue-select/work-queue-select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa5bb7a85251d5c8bd8f3a303f08d2341fcd712b838313a7dcef70c9f9c3438"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/_logs/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefb32f4491d8866d13f21f839925948d6d2fff1754947e9fce919eb3348ecec"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/concurrency/v1/services.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85dc25ced0d2245544107be03d823abc96691cf827c578797226b41c1ac91e09"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-type-page/block-type-page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb5d882414a80800794b309e5170e7c6671864b93031e572c8c83df3b253e6f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-select/work-pool-select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"388d5fa49ba5cbbc728f84544610167120d7674804214e7f860db3cd9f0a0193"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/plugins.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"660d7421d820f4c3c042e562dadf90f27d53e83794547e1dc0341613461deb79"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_10_12_102048_22b7cb02e593_add_state_timestamp.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3d7429ebb271388c0d3661f6ec6a9328d15b1d0773f2f888cb3be661c1d207"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_experimental/sla/objects.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"377bf139574466ed6e65b1978bced8980112ebdfee78e3e59f0084bbf11082c0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/hooks/use-debounce-callback.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c193eb6a364223a2b597923c089e8fea34073e22ce29f5e5f849318ab8be2f4f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb84fdb08ad3a41e480eb13fc845d7efa2cec91fd32cfbaadce4cc18c60eb51"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/stepper/stepper.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a1c1019b8792ed62f1fa9085ff0279425b059d55eb110afad2c8ff1f4ed735"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-lower-bounds.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a031819dba84271783538acb949e1229d7bea12884c5addefce0984f1aa82aae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/mocks/create-fake-cron.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d323882d8a859bab978359a1aa793c74b841bc8e3ea74158ea6a5262dc3abb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/concurrency/primitives.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"631f7e3ef4992f4f33667e6de4bf5247d9019d1558008c3ac19d38e4cba1bb02"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/sorting.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e4aa716994d267439c4c24630830ba64642389758337cee7875099e6ff9236"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000043_f92143d30c25_create_migration_index.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7512401b5aa01628edad1ba82fb734bced75f119a5208b58ccf8b56faf07e009"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/markdown-input.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fda9bd31bdc9652ac2414f4f072353faefa7bd5acf26b0b5ab650f73e7ab37"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/python-input.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81f427b32e62b1ded72c45b1541f6ffa0e6b3a3fc7bea729d4f59e3486d024f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/deployments/use-list-deployments-with-flows/use-list-deployments-with-flows.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a684a775020ba1ce3c13f183eba1fdcb4d87367cfbb402360fb2b78c4d16979"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2023_01_12_000044_f92143d30c27_cleanup_artifact_migration.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b58c67fd395f6112eef02740b760a0f198395abf0c635803d4ed0e2deeaab4d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045501_2882cd2df464_create_migration_index.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0a091c9795518dfe1155a7fc8bfc404b51e979d19a11f7588fbb832d9c2b99"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_02_15_211737_28ae48128c75_add_configurations.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"256885e5db73e462bb451b82ece81dabe840bdea2794ebd1c8fc553377a4dd7e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2022_02_04_093838_619bea85701a_block_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c619ed0fed41c67601c90e25dbaa4d01c19d3c8017d490c401664e198c14ac7e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/postgresql/2023_01_26_045502_2882cd2df466_cleanup_artifact_migration.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2c79272c7cce8bf2b7724ea5299e5a681d83b51d4053f763ea84d38b780f32"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-triggers.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ff2b2ac44412a1b98f5f5855faeb75e9b316812fdc3cce580a8368c9a1457e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/database/_migrations/versions/sqlite/2023_04_05_134301_3d46e23593d6_add_variables.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"578163fe41cec120eac7919098b2db2b158e1c88a0471efc183a4b4b08125e04"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: concurrency_limits_v2.py \u2192 filesystem.py, memory.py, concurrency_limits_v2.py: \u0060src/prefect/server/api/concurrency_limits_v2.py\u0060 changes together with 3 other files \u2014 \u0060src/prefect/server/concurrency/lease_storage/filesystem.py\u0060, \u0060src/prefect/server/concurrency/lease_storage/memory.py\u0060, \u0060src/prefect/server/models/concurrency_limits_v2.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/concurrency_limits_v2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8872d89c60e2c19d9e175bdff0e78f7e29292ed1329c531dfe50908b5b3c09"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: App.vue \u2194 AppRouterView.vue: \u0060ui/src/App.vue\u0060 and \u0060ui/src/pages/AppRouterView.vue\u0060 change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006053a83ebc\u0060 Add basic auth UI (#16411); \u00600cf9cbf9\u0060 pulling in api (and other) patterns from cloud (#8564); \u0060d1624b46\u0060 Chore: Bump orion and prefect design to 1.2.0 (#8163) (at that commit the files were still \u0060orion-ui/src/App.vue\u0060 and \u0060orion-ui/src/pages/AppRouterView.vue\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/App.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89e5a71adbf5dc1e062ef6a7e28e2229f2feecd05c90db892c45398cbf83dc1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: flagResponse.ts \u2194 permissions.ts: \u0060ui/src/types/flagResponse.ts\u0060 and \u0060ui/src/utilities/permissions.ts\u0060 change together 64% of the time (9 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060658b3735\u0060 Remove UI usage of deployment status \u0026 work queue status feature flag\u2026; \u006048fc8e51\u0060 [UI] Fix missing work pools nav item (#13717); \u00601e1bfd27\u0060 Expose flow run job vars on page (#12206) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/types/flagResponse.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15684e3f2460cdbf632978101d5bb19dda61a8c32b518c4ffd3f90295a73868"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: services.py \u2194 sync.py: \u0060src/prefect/concurrency/services.py\u0060 and \u0060src/prefect/concurrency/sync.py\u0060 change together 60% of the time (9 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency 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 9 shared commits counted here, the most recent 3 are \u0060c2d440c3\u0060 Remove code past its marked deprecation date (#17632); \u0060968c55bf\u0060 Concurrency limit UX enhancements: add \u0060strict\u0060 mode (#15297); \u0060a2680627\u0060 Workers enforce \u0060Deployment.concurrency_limits\u0060 (#15022) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/concurrency/services.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de87d291997983b84bad725ddb203e6c05019a27c5a563b41f7d41e4a015ac2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: filters.py \u2194 sorting.py: \u0060src/prefect/server/schemas/filters.py\u0060 and \u0060src/prefect/server/schemas/sorting.py\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency 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 6 shared commits counted here, the most recent 3 are \u0060aec08ffb\u0060 Fix compatibility with \u0060fastapi==0.123.7\u0060 (#19626); \u00600746ef92\u0060 Remove many circular imports (#17003); \u0060238c250e\u0060 \u0060Variables\u0060 (#9088) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/schemas/filters.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c85f00163f4b1fde2a4ecca0c6c30b8fe80ea1a65d7fb070b54c36acd1bd8c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: event_persister.py \u2194 triggers.py: \u0060src/prefect/server/events/services/event_persister.py\u0060 and \u0060src/prefect/server/events/services/triggers.py\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency 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 6 shared commits counted here, the most recent 3 are \u0060884b1fd8\u0060 Mitigate memory leak in in-memory messaging system (#19136); \u00606b373052\u0060 Improve multi-server scaling for triggers (#18820); \u0060084c399b\u0060 multi-server setup fixes pt1 (#18149) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/services/event_persister.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e75430b28e138caf36e151c6a91f599e4a7adaa2811797af144bfbc033f8194"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: __init__.py \u2194 core.py: \u0060src/prefect/server/models/__init__.py\u0060 and \u0060src/prefect/server/schemas/core.py\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060d49fdd0d\u0060 Add server default result storage config surface (#21532); \u0060162faba6\u0060 Create \u0060CsrfToken\u0060 model and utilities (#12289); \u006088f1f2e2\u0060 Add data model and methods for FlowRunInput (#11342) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9bd15edbd15d6bb5ddb247eb4424f8e1e0f805ccef9e2a88b02e076d85415b"}},{"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":"881453b1e6d02c03b6b92e00f5eba534e03cba768f2a870677c7fec87978d786"}},{"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":"b05a3e54366ca71bd97d18f9520b96489a31cc32493e3cab8160e27fdc4e9937"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fdd43cccdaa4110eea2ca1f5dd470568c07384e8735b72d570249c8d054619e0"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3d83bb84a4c5ce5367346e639f95d6ca2051462f370baf438a64d73487f5dff2"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a1eeb79faa33917a144920dede2dc53f35173adeab291ed5e74058ebac28e6e"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5b82c19feaf7c0ecf19e89babd62c51dabf37d8b30819a6dd3dab7e721651b18"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"26590a11fa8b926d01c7d977c837deb60142b83e3ee1de3e39bb0b5476e4d2f4"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cefce54eb0ea3661b595663b4ac84eb44dd5bc67884e5f22a150e7c4753f7f64"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"26df38907c2b644539d9dc47422e92e1df9c01785a461c401855da86347df623"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1db3bb842ff2af832af480b773ef0c151a83effd8782725b9a589104aac08523"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67b9a76d3860c035db3cca2a565f6d6533b77e6217193cf06074fcef2faf6917"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4d74b6fb7bd2c32de4e4e673c15ccc1319f7b79cd9ef04d28ecf9ce414b38e4"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3f358c59e9fb0f735a855a0e228553b8f133241f79b0feab8b630fff32bab5e3"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58e7d5cb42036c594efdac02baf6f0cf1a8be5fb11c52e28fbd52a60ff633a7b"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b08ad847ce82a76479ec0a002726ddc2c6ae6a869abaff7a3ac9458cf134556"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3d4a71f34ca745a467562c193b4f0ff8166ca6e0fcd9311c98549067263bdc51"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24b5b2dbfed52879eb88186ea43dae828511f56e3b65d8738a1ed41ff3bff91d"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"97cf898d53a29b39666d6bba0ca22fb0ac7b7fa7407912b0536d496dd9dd8cdc"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a84de8a9a51bd1d91c938dfe3b6fc0cf3d9e2cbf8d1d5414c55634d9cba4746d"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a9a892708f183334a569f4c0e129f90e6383af32caa2ac5266d054cbbe71687a"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cea6858efbdebdffea81796e837d99775e7b68c284c10d70bbd4af6a0f8c6b8"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"232af13e411b74e293ffad140e87fe0aa6af4b064189918dc93899977c79fb1d"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifact/detail-table.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"780a5b34239ca60d06f856a6257bbe033a899d265a630149ef4706e6c42daa00"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifacts-filter.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"03350b916b47dac4d608fc40340137fdbd28e6685b253ac474cb47601865c0ad"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CCombobox\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d608f643f3701b86b05393312ccbbfca66581453ef70397ef4e2ccbf9bf4278"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CCombobox\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/events-combobox/events-combobox.tsx"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c7c62dc83a04a9a18ab7f8c652c02b2693dd589f353a446430b2cb4df18331"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CCombobox\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/work-pools-combobox.tsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ef7f1a4a8018f8b5bd8d597550133f0a9833c550f03bfdf663ff0745da34aa"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CCombobox\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/work-queues-combobox.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a885c74067b3cbd5811d3b7e85d110df7ccf14fe0d90bce2ebd775fe9b2daebd"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CCombobox\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-types-multi-select/block-types-multi-select.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"82315a989362b2ba4268cd9dee7c3c7aeac00e94efa5ac2a5afd9534ef22e667"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-types-multi-select/block-types-multi-select.tsx"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f92f290dc71ea67fe7d911f6dc468d4891f0775ac6cf43937b5406a9190190"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/blocks-catalog-page/block-types-grid.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb578fb06c7359a2a9a4b3dd0ebe2f25a18128c6f290f5fd832df4e024c73676"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31bfab84df408dacb644a240c2853ed914c7c957859006b0cd3f51dc0d4cd00"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-data-table/task-run-concurrency-limits-data-table.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecd8e56a418d834dee79c6abc69ae691592fe8496ad1be7cedd5f3b6bcf1229"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/data-table/index.tsx"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fb0acd6036e54a7e327fe354d1b53b81ddf5393f7e9cb3511fc11a03407f71"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This select is named only by the placeholder of its value part. Nothing is typed into a select, so the placeholder does not vanish on input: it is shown as the trigger\u0027s text until a value is chosen, and then the chosen value replaces it \u2014 so at no point does the control state what the choice is for, and the trigger\u0027s role (combobox) takes its name from the author, not from that text. Name it: an aria-label on the trigger, or an id on the trigger with a \u003Clabel htmlFor\u003E pointing at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-form/limit-collision-strategy-select.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fbbcd6757e3c916d563ea552c1cbda4bf789f5b2b3923a3e51e7112e8ce0e6"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-parameters-table/deployment-parameters-table.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7a184064b6c622d52b604d8a87c54225ab2be831043a29ef5699f3524efcc9"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/data-table.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"749871c2a775349bf66b7a4bb30e1cada0b00fe25deeb393da418a55e760ede7"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/index.tsx"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"880d9b094f9dbba7d5fce601af6d14cecd6a48850dbf07a7372365ecb87db273"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-property.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"40223a397dec595fc0154a6d617eadae6180ab7831e90fcfccfffa6540fea0ab"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CRadioGroup\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/settings/theme-switch.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db5a70472db84754efd5493ecc4885af1084ff65135e6c6e11a0c174e44ecf6"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id alone, wherever it is set, names nothing until a label points at it). The text inside it does not stand in for one: these compound APIs render a trigger with role=\u0022combobox\u0022 (or role=\u0022button\u0022), and those roles take their name from the AUTHOR, not from their content \u2014 so the words on screen never reach the accessibility tree as a name. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdb202af6c3826a65ef70ed2548249eb5d1e8225ae7ecb18e3e3a4491ad4372"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/variables/data-table/data-table.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c931dcf33b63e60feba8f599cd9e804e6421e087d2f62c4f0d1b68d2623a042a"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-flow-runs-tab/work-pool-flow-runs-tab.tsx"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b42ff6779e9e5688b92fb65aeffe4c7152d6f4eecda8701b412f152bf26836"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CCombobox\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-multi-select/work-pool-multi-select.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a10bd6b18d37346966c3fcfc2392309e58fe45b1b73b0df982b1429be51607"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-runs-tab/work-pool-queue-runs-tab.tsx"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e64d7f015a7e57c38ab0800967cddf53de5efd38235bc25238c7115f78194af"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSearchInput\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/work-pools/index.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4a5de24b0031eaa09cfb6c9423a5545c1e69ed07f9762a703b346580880b5f"}},{"ruleId":"AC4","level":"error","message":{"text":"Double-click handler on a non-interactive \u003Cdiv\u003E: This \u003Cdiv\u003E binds mousedown, touchstart and double-click \u2014 pointer gestures with no keyboard form, a double-click among them. No click, no key handler, and no tabIndex={0}, so it cannot even take focus. Nothing synthesises a double-click from the keyboard: Enter and Space fire a single click, and only on a native \u003Cbutton\u003E or \u003Ca href\u003E. So this behaviour has no keyboard path at all. Expose the same action on a real control, or add role \u002B tabIndex={0} \u002B a key handler alongside the double-click."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/data-table.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ebffcdb435325aab9e211a364ed43e6226c8ab5460d3bc605c9b0b64be5f8a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input-array-item.tsx"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1e15eab0eec9254d18cd000e5c1971878e6b9f11123dbc59c3c26b0bc57743"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/textarea.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"441820abdd525d2851bb60a61c36f46d9ac930a41c2edab869b8430bfb6a1d1a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060viewport.animate()\u0060 moves (\u0060Web Animations API keyframes\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/viewport.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3dd52541bea0715ccf65da7005f42eaea99bb4e6df958c04c4ec3e2da815fe"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: content-security-policy: The live app\u0027s responses did not include content-security-policy (restricts the sources a page may load \u2014 mitigates XSS/injection). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b142e47096a32517bde0bb9b78f7e564119c7f87e22fba4dccc0d1e3645d74c5"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: cross-origin-embedder-policy: The live app\u0027s responses did not include cross-origin-embedder-policy (recommended by the OWASP Secure Headers Project (value: require-corp)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"153214bb9c80f7d66cba8eb6a7715e9609e84c3979c9b641cd6bedaa8be6930b"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: cross-origin-opener-policy: The live app\u0027s responses did not include cross-origin-opener-policy (recommended by the OWASP Secure Headers Project (value: same-origin)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8cdbe5cdec6a55c732bf9a9975c0e40f81ddfa4ad583a4a50bfb0895531607f7"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: cross-origin-resource-policy: The live app\u0027s responses did not include cross-origin-resource-policy (recommended by the OWASP Secure Headers Project (value: same-origin)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3ba35c34991db9965777a53477c2d497c4c6606f78d133bbaa3bc99c71648c2a"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: permissions-policy: The live app\u0027s responses did not include permissions-policy (restricts powerful browser features (camera, geolocation, \u2026)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac8a111f0bb913829dc090833718dca5ab8e5fba7350f9dcf68f1971010745"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: referrer-policy: The live app\u0027s responses did not include referrer-policy (limits referrer leakage to third parties). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"364ee3f006b552b8fee33710a1fbfb0c4fac59e927af9c4396e51940d9069f01"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: strict-transport-security: The live app\u0027s responses did not include strict-transport-security (forces HTTPS on subsequent requests \u2014 mitigates downgrade/MITM). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"567d3eeb50a5678c0139a1d316c614c44cd4c4fb5db6fffa7795bc73d035966f"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-content-type-options: The live app\u0027s responses did not include x-content-type-options (stops MIME-sniffing (expects \u0027nosniff\u0027)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e7f2638203ac91f5b64c739d090b339c00a90f1007c83652152b402a6eb0cdeb"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-dns-prefetch-control: The live app\u0027s responses did not include x-dns-prefetch-control (recommended by the OWASP Secure Headers Project (value: off)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"50e54b8511264dd930857e4620bda8ba4053661b439218ed047812bcab0e3a44"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-frame-options: The live app\u0027s responses did not include x-frame-options (blocks clickjacking via framing (or use CSP frame-ancestors)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0e84499d19780ca121fad65e0f3bd2fc17b1268ce3079a5f40495749c54dc87e"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-permitted-cross-domain-policies: The live app\u0027s responses did not include x-permitted-cross-domain-policies (recommended by the OWASP Secure Headers Project (value: none)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"55366a3d9fb1c5952ebc54aab272eb775bf2c1b056d6d399652365c26cc2375b"}},{"ruleId":"AXI1","level":"warning","message":{"text":"Container process runs as root: proxy-test-forward_proxy-1: \u0027proxy-test-forward_proxy-1\u0027 (ubuntu/squid) runs as uid 0 \u2014 no user was specified, or one resolving to root was. Observed on the running container, which is the only place the answer is settled: an image\u0027s own USER, a base image\u0027s inherited one and a compose override are all invisible to a Dockerfile reader. Advisory evidence for CRA Annex I (2)(b)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"be4fe8963dcbc154f8b9d4fc89b4472556e99ef7de21c842952cbe0e842096f7"}},{"ruleId":"AXI1","level":"warning","message":{"text":"Container process runs as root: proxy-test-server-1: \u0027proxy-test-server-1\u0027 (proxy-test-server) runs as uid 0 \u2014 no user was specified, or one resolving to root was. Observed on the running container, which is the only place the answer is settled: an image\u0027s own USER, a base image\u0027s inherited one and a compose override are all invisible to a Dockerfile reader. Advisory evidence for CRA Annex I (2)(b)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5792cdb12727f52f9bbe22cf24f4ac96b8bf448fb7c78c38b8c5da9117572b61"}},{"ruleId":"AXR1","level":"warning","message":{"text":"WCAG 3.1.1 reproducibly failed in a rendered surface: axe-core rule(s) html-has-lang failed on: html. Runtime evidence (advisory \u2014 not scored); fix and re-scan to verify it clears."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e2d0e1d2bf07ce04d82230fe7847e003479b78cd188efe60cc79686fb8ba8420"}},{"ruleId":"M2","level":"note","message":{"text":"ADRs not easily discoverable: 1 ADR-shaped document(s) detected by content \u2014 \u0060plans/2026-01-06-custom-deployment-sdks.md\u0060. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live \u2014 so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ea921cf64dae701abd877090b3279ff10d03c2e3250e26c8c299d7c5665e0d3f"}},{"ruleId":"P12","level":"warning","message":{"text":"Test failure does not fail the CI gate: \u0060continue-on-error: true\u0060 lets the step or job that runs \u0060uv run --project head --no-sync pytest -c head/compat-tests/pytest.ini    head/scripts/tests/test_report_api_compatibility.py -q\u0060 fail without failing the pipeline \u2014 the suite can go red and the change still merges. Remove it from the test step, or quarantine the specific failing tests instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/api-compatibility-tests.yaml"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd76f4c7bb0889d0daa2efc7ccd0250412407385bcf6e42707301b4d2edf339d"}},{"ruleId":"P12","level":"warning","message":{"text":"Test failure does not fail the CI gate: \u0060uv run --project \u0022$project\u0022 --no-sync pytest      -c \u0022$GITHUB_WORKSPACE/head/compat-tests/pytest.ini\u0022      \u0022$GITHUB_WORKSPACE/head/compat\u2026\u0060 runs the tests, and \u0060|| compat_exit=$?\u0060 discards their exit status \u2014 a failing suite leaves the check green. Let the test command\u0027s failure fail the step (re-raise it after logging)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/api-compatibility-tests.yaml"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3d65232530a52d185bc29461494f7eaba7fe2caeadc395a3eff1594c65971b"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 16/18 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060client\u0060, \u0060src/integrations/prefect-kubernetes/integration_tests\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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/docker-images.yaml"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.Client(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cloud/_executor.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1284b3c266a43f6e1a0aec545f8d52546c70628fa2b577bc9717c8a865c00dce"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.AsyncClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/version_checking.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"066d4764699c4f2bddbf197c5c5bb21aadd6ac557ae7fa845ccf5fca43d37ea6"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.AsyncClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/notifications.py"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27a74d7cad6dfa7e1c4fe171878d67f724636a89d003ccdb06920458efd0757"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.Client(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/blocks/notifications.py"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2c0fcaa644ff33ac2e0963674b4187d5f5062cbfd9617b290696f1f7ceab7d"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.AsyncClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/collections.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72da406eac3d2b25adcab3f2078e305500510d60b3f661b7c9bbcac051cd742"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060httpx.AsyncClient(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/telemetry.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b4ca29d98a62a84e1f2bd2a980c9d4f0129f95a0be962ce0c609a1c200473c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 17 sibling directories (137 clone groups): 137 duplicated blocks under ui-v2/src/components/ have copies in at least two of the sibling directories artifacts, automations, blocks, concurrency, dashboard, deployments (\u002B11 more sibling(s) not listed) \u2014 91 of them are reported below, and 46 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 137 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 137 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 137 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-logs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af6972fab3cab7736d63b073edd1c453d59ee9503364a2191a8e43e1e22560c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 18 sibling directories (32 clone groups): 32 duplicated blocks under ui-v2/src/api/ have copies in at least two of the sibling directories admin, artifacts, automations, block-documents, block-schemas, block-types (\u002B12 more sibling(s) not listed) \u2014 21 of them are reported below, and 11 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 32 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 32 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 32 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flow-runs/index.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"413c1af31d844451c3332722f2b51ad37f65b3d9e0364c07c513d021f873bc32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 9 sibling directories (30 clone groups): 30 duplicated blocks under ui-v2/src/routes/ have copies in at least two of the sibling directories artifacts, automations, blocks, deployments, events, flows (\u002B3 more sibling(s) not listed) \u2014 23 of them are reported below, and 7 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 30 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 30 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 30 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/index.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"16227b92bdb01ece87aa91491eb9a8e4fe1ad8fd3f748078208bb983defc5236"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 26 sibling directories (25 clone groups): 25 duplicated blocks under ui-v2/src/components/work-pools/ have copies in at least two of the sibling directories create, edit, poll-status, work-pool-card, work-pool-deployments-tab, work-pool-details (\u002B20 more sibling(s) not listed) \u2014 18 of them are reported below, and 7 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 25 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 25 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 25 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-flow-runs-tab/work-pool-flow-runs-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"668ec0fb65aea8b1827bda1dc9e8c63e7b72776ba6be59fe7a8e29f4b42fd628"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (15 clone groups): 15 duplicated blocks under ui-v2/src/ have copies in at least two of the sibling directories api, components, hooks, routes \u2014 11 of them are reported below, and 4 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 15 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 15 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 15 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flow-runs/constants.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b181976505cd4007bee6cc783eb875acc816b14e48329032d2005297a6bd7c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (7 clone groups): 7 of the duplicated blocks reported below have copies in at least two of the sibling directories global-concurrency-limits, task-run-concurrency-limits under ui-v2/src/components/concurrency/. That concentration is one structural fact, not 7 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 7 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.tsx"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c2cec4db38590ae1ca8e9f812962a17081314269e502b14a7939e7dd9ef995"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (6 clone groups): 6 duplicated blocks under ui-v2/src/components/deployments/ have copies in at least two of the sibling directories create-flow-run-form, deployment-form, deployment-schedules \u2014 4 of them are reported below, and 2 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/create-flow-run-form/create-flow-run-form.tsx"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1367ee7a5333254f75a22c477b6c8e452380ba3dc1d12e89896c78dd43a7e7e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (187 matched lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx:62 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx:135 \u2014 the two spans are one implementation copied and then locally edited \u2014 796 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbaa90321e902370d125e8b04bf0bbfc888a2674ea3021ede4afea421672e5a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (175 matched lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-details-runs-tab.tsx:22 \u00B7 ui-v2/src/components/deployments/deployment-details-upcoming-tab.tsx:17 \u2014 the two spans are one implementation copied and then locally edited \u2014 919 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-details-runs-tab.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0859abb352c7ff3739b07472638a239972477181b333777aecb4d5bd0d19c6db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (159 matched lines \u00D7 2 locations): ui-v2/src/components/ui/dropdown-menu.tsx:56 \u00B7 ui-v2/src/components/ui/menubar.tsx:85 \u2014 the two spans are one implementation copied and then locally edited \u2014 581 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/dropdown-menu.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"705183463944c0f12fb255ca6edb4dd2cc3f15639af599115ebaa76b239e430c"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (148 identical lines \u00D7 2 files): ui-v2/src/components/automations/automations-wizard/actions-step/call-webhook-fields.tsx:1 \u00B7 ui-v2/src/components/automations/automations-wizard/actions-step/send-notification-fields.tsx:1 \u2014 these 2 files are line-for-line copies of one another \u2014 148 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/call-webhook-fields.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8279159dd1261c1cd4410c8f0861c19d91669323d598ff1288eedda83214525"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (142 identical lines \u00D7 2 files): ui-v2/src/components/work-pools/work-pool-flow-runs-tab/work-pool-flow-runs-tab.tsx:1 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-runs-tab/work-pool-queue-runs-tab.tsx:1 \u2014 these 2 files are line-for-line copies of one another \u2014 142 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-flow-runs-tab/work-pool-flow-runs-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f75291011a5781100d5780042b3f9ac4fdb8ce162183a658d4e8e590d29d9cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (140 matched lines \u00D7 2 locations): ui-v2/src/api/flow-runs/index.ts:117 \u00B7 ui-v2/src/api/task-runs/index.ts:68 \u2014 the two spans are one implementation copied and then locally edited \u2014 781 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flow-runs/index.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"992ea19c6cb2b65daa75192c0d277a037b824d6321b88d3f2871d81c9617134a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (122 matched lines \u00D7 2 locations): ui-v2/src/graphs/factories/flowRunState.ts:17 \u00B7 ui-v2/src/graphs/factories/nodeFlowRunState.ts:27 \u2014 the two spans are one implementation copied and then locally edited \u2014 635 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunState.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d3aadd34cc86bb31795cfa61e52faa66be357e32156d238c61fa1db9f20c8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (121 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/deployment-filter.tsx:19 \u00B7 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/flow-filter.tsx:16 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/deployment-filter.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c15147d6204297251b6c93d33cb57efe63b96e40d55dc49c0999f005859bda"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (108 matched lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-subflows.tsx:26 \u00B7 ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-task-runs.tsx:24 \u2014 the two spans are one implementation copied and then locally edited \u2014 581 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-subflows.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e71b9d9b795b7659eced364c961c7a2100b1cd25166e32e9e79237df57abd9"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (101 identical lines \u00D7 2 files): ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-logs.tsx:1 \u00B7 ui-v2/src/components/task-runs/task-run-logs/index.tsx:1 \u2014 these 2 files are line-for-line copies of one another \u2014 101 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-logs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eab591c1b030745218e1a9466e44f984d7d5795d2d6685ed19016f0f4a1e70e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (100 matched lines \u00D7 2 locations): ui-v2/src/components/deployments/data-table/index.tsx:186 \u00B7 ui-v2/src/components/flows/data-table.tsx:80 \u2014 the two spans are one implementation copied and then locally edited \u2014 518 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/data-table/index.tsx"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"702b21d74283a1217f420e63243805ffcfcf2aa7068ce57438598b8f478f4616"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (100 matched lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/state-filter.tsx:35 \u00B7 ui-v2/src/components/task-runs/task-run-state-filter.tsx:32 \u2014 the two spans are one implementation copied and then locally edited \u2014 543 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/state-filter.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e00036486ff600cd86972959231edc32d27b8fb4c8367fd8e398abe50f51105"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (100 matched lines \u00D7 2 locations): ui-v2/src/components/ui/dialog.tsx:7 \u00B7 ui-v2/src/components/ui/sheet.tsx:7 \u2014 the two spans are one implementation copied and then locally edited \u2014 465 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/dialog.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f63d5511fa84499854e228480f87050544c1f5c346a98aa7640356c2493b57"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (94 matched lines \u00D7 2 locations): ui-v2/src/components/dashboard/task-runs-card/task-runs-trends.tsx:33 \u00B7 ui-v2/src/components/flows/detail/flow-stats-summary/cumulative-task-runs-card.tsx:40 \u2014 the two spans are one implementation copied and then locally edited \u2014 376 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/task-runs-card/task-runs-trends.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab3c7d8aac4ca3ae6d5a0f5920341f5dd745c011fe27ce4fc0b0714d6cb8afd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (88 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/actions-step/select-automations-fields.tsx:51 \u00B7 ui-v2/src/components/automations/automations-wizard/actions-step/select-work-pools-fields.tsx:51 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/select-automations-fields.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd65ec7ac605ca9cbfbeffca1aee11d3695a6eac97d2dc18d3380aa0396b809"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (85 matched lines \u00D7 2 locations): ui-v2/src/graphs/factories/runArtifacts.ts:12 \u00B7 ui-v2/src/graphs/factories/runEvents.ts:13 \u2014 the two spans are one implementation copied and then locally edited \u2014 521 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/runArtifacts.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4773d7ced8126be43fca6a9e3ab357b242f50c26087056403c77aa168897e6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (82 identical lines \u00D7 2 files): ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-pagination.tsx:9 \u00B7 ui-v2/src/components/task-runs/task-runs-list/task-runs-pagination.tsx:9 \u2014 these 2 files are line-for-line copies of one another \u2014 82 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-pagination.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"162b10e7d0c5e00bdc8ecdac4476eb40d4504fe918c25458d9aa51585846d249"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (71 matched lines \u00D7 2 locations): ui-v2/src/components/flows/data-table.tsx:83 \u00B7 ui-v2/src/components/variables/data-table/data-table.tsx:112 \u2014 the two spans are one implementation copied and then locally edited \u2014 407 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/data-table.tsx"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90166264689ff2b1b217ca9df9f9317c559f45040c1c563cf12409f95ab73b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (70 matched lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.tsx:72 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-data-table/task-run-concurrency-limits-data-table.tsx:66 \u2014 the two spans are one implementation copied and then locally edited \u2014 338 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.tsx"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2022497643017c370dca8e23a3733575222e6d86ca20025d96e7ec5072d9ab39"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (69 identical lines \u00D7 2 files): ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-row-count.tsx:1 \u00B7 ui-v2/src/components/task-runs/task-runs-list/task-runs-row-count.tsx:1 \u2014 these 2 files are line-for-line copies of one another \u2014 69 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-row-count.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc73196e153f6f4878beb888d0771f2f702111fb6665a302cf0601cf7b211b24"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (67 matched lines \u00D7 2 locations): ui-v2/src/api/deployments/index.ts:56 \u00B7 ui-v2/src/api/variables/index.ts:39 \u2014 the two spans are one implementation copied and then locally edited \u2014 386 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/deployments/index.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cb576e336f0c62ddbb2ad07d7be1ab29232451b3f24d2cb521960d546b6ca7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (66 matched lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/work-pools-combobox.tsx:15 \u00B7 ui-v2/src/components/work-pools/work-pool-multi-select/work-pool-multi-select.tsx:17 \u2014 the two spans are one implementation copied and then locally edited \u2014 358 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/work-pools-combobox.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86021d75239e4090237ff3d380886f8d314154df318efa1600153ef2a0b72d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-select/work-pool-select.tsx:48 \u00B7 ui-v2/src/components/work-pools/work-queue-select/work-queue-select.tsx:54 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-select/work-pool-select.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38d4fe1d6f710d9d5117edbce7d904cd09ae8cc434b024b3fbe81332c133ade"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (58 matched lines \u00D7 2 locations): ui-v2/src/graphs/factories/nodeFlowRun.ts:44 \u00B7 ui-v2/src/graphs/factories/nodeTaskRun.ts:31 \u2014 the two spans are one implementation copied and then locally edited \u2014 345 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/nodeFlowRun.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cb9613ea7a81570ec877f20d3ec07c7b26776b9cf740b8e05924452ad4d7ca"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (57 identical lines \u00D7 3 files): ui-v2/src/components/ui/json-input.tsx:3 \u00B7 ui-v2/src/components/ui/markdown-input.tsx:3 \u00B7 ui-v2/src/components/ui/python-input.tsx:3 \u2014 these 3 files are line-for-line copies of one another \u2014 57 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/json-input.tsx"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"c649621ceb13caaf0a640e40e1334e81cf3106bf0619ae5cbb35a4772e9c2537"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (56 matched lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx:13 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-details/work-pool-queue-details.tsx:9 \u2014 the two spans are one implementation copied and then locally edited \u2014 283 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"de13e262c38d3915f42505c131bdea6d5fdc9853e9afe9cbdca71e22bddb9b47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-create-dialog/work-pool-queue-create-dialog.tsx:62 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-form/work-pool-queue-form.tsx:44 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-create-dialog/work-pool-queue-create-dialog.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"42645603456fb66a1038463c76402a595ac80e0b66697270dd7839a1f0b5354f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (56 matched lines \u00D7 2 locations): ui-v2/src/graphs/factories/flowRunEvent.ts:26 \u00B7 ui-v2/src/graphs/factories/nodeFlowRunEvent.ts:28 \u2014 the two spans are one implementation copied and then locally edited \u2014 329 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunEvent.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a169c177ecf26b8b264216eb7308231c92d173b3a4e701484dfc6858c2e32f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (55 matched lines \u00D7 2 locations): ui-v2/src/routes/deployments/index.tsx:97 \u00B7 ui-v2/src/routes/variables/index.tsx:120 \u2014 the two spans are one implementation copied and then locally edited \u2014 248 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/index.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"292e8fcdfd98c1d78caf858807b36701409894ed244f6f9ab46a8c7d9e18d46c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2 locations): ui-v2/src/routes/runs/index.tsx:130 \u00B7 ui-v2/src/routes/runs/index.tsx:268 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7321a51f3b84dc86b130c10c6e20572c231df1195d073a65a0e9fc198763b7a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/custom-trigger-fields.tsx:53 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/custom-trigger-fields.tsx:151 \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":"ui-v2/src/components/automations/automations-wizard/trigger-step/custom-trigger-fields.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f734b8eb8641bcaf89e474cff05a0f6416e8cb1e0b090259f14a1f436e0e5e"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (54 identical lines \u00D7 2 files): ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-artifacts.tsx:1 \u00B7 ui-v2/src/components/task-runs/task-run-artifacts/index.tsx:1 \u2014 these 2 files are line-for-line copies of one another \u2014 54 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-artifacts.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b4a3668bdb0a7b4c1691d3908a6c792cd134de2efaaef96cbb08b73fec9068"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (53 matched lines \u00D7 2 locations): ui-v2/src/components/artifacts/artifact/artifact-detail-tabs.tsx:10 \u00B7 ui-v2/src/components/deployments/deployment-details-tabs.tsx:14 \u2014 the two spans are one implementation copied and then locally edited \u2014 307 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifact/artifact-detail-tabs.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"14195ee45999559a537057ce765a1caa40f143e00dd310a7b91da766f720dd5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx:175 \u00B7 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/deployment-filter.tsx:98 \u00B7 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/flow-filter.tsx:94 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"91eb3b0a9374b7d41ad17252ed1f11744e4a6acd290b3ece4da3657c2008cca1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2 locations): ui-v2/src/routes/runs/flow-run.$id.tsx:24 \u00B7 ui-v2/src/routes/runs/task-run.$id.tsx:14 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/flow-run.$id.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"95997bb004bce4d630d571c4e49b7f13bed5fd16d78d49d44c484be6c4cf5db2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-selection-panel.tsx:81 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-selection-panel.tsx: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":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-selection-panel.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8598f83c423dc5c0be2effb1049da1f9b6b77f34e9bb72756f75f30b15f0d1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2 locations): ui-v2/src/components/deployments/data-table/index.tsx:256 \u00B7 ui-v2/src/components/variables/data-table/data-table.tsx:157 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/data-table/index.tsx"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb4a70976a23471cb1cce93ea788ae214bf62c542525cfd10b9c08cdf44f2c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-runs-list/use-delete-flow-runs-dialog.ts:5 \u00B7 ui-v2/src/components/task-runs/task-runs-list/use-delete-task-runs-dialog.ts:5 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/use-delete-flow-runs-dialog.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0139b3546ca9089fce47aad1b2bcd6955fce8daacc69939c0a3ca433bec06d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (49 matched lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-list.tsx:25 \u00B7 ui-v2/src/components/task-runs/task-runs-list/task-runs-list.tsx:19 \u2014 the two spans are one implementation copied and then locally edited \u2014 260 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-list.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf9e843367646274a2892f110ef546941c62a7b94ee359552f2abe4ca41e370"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2 locations): ui-v2/src/components/global-concurrency-limit/global-concurrency-limit-select/global-concurrency-limit-select.tsx:15 \u00B7 ui-v2/src/components/work-pools/work-pool-select/work-pool-select.tsx:15 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/global-concurrency-limit/global-concurrency-limit-select/global-concurrency-limit-select.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"020e61b09a80f4cfd8b7588cd3c72285b7d8deebc323eec684e0e84bdd4ba40d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-menu/work-pool-menu.tsx:20 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-menu/work-pool-queue-menu.tsx:20 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-menu/work-pool-menu.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ff3f893b9992afe237e1278a12bb212650249f45146a80f15df589266e92e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-delete-dialog/global-concurrency-limits-delete-dialog.tsx:23 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-delete-dialog/task-run-concurrency-limits-delete-dialog.tsx:23 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-delete-dialog/global-concurrency-limits-delete-dialog.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c82327779088c7d20b44a6594fe3f7fa3b486ce3973bd71708697b7612ae55b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (47 matched lines \u00D7 2 locations): ui-v2/src/graphs/factories/nodeFlowRunArtifact.ts:36 \u00B7 ui-v2/src/graphs/factories/nodeFlowRunEvent.ts:32 \u2014 the two spans are one implementation copied and then locally edited \u2014 308 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/nodeFlowRunArtifact.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c06e8652ee3d3709e2c1f36efabd3e65287dd826e427f487b5bdb74786b608"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2 locations): ui-v2/src/components/ui/alert-dialog.tsx:59 \u00B7 ui-v2/src/components/ui/dialog.tsx:70 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/alert-dialog.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"199d169845b5496d242a2ae9624fe5f4fc9791d83ec10974a89472648a693652"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 3 locations): ui-v2/src/components/global-concurrency-limit/global-concurrency-limit-select/global-concurrency-limit-select.tsx:74 \u00B7 ui-v2/src/components/work-pools/work-pool-select/work-pool-select.tsx:70 \u00B7 ui-v2/src/components/work-pools/work-queue-select/work-queue-select.tsx:76 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/global-concurrency-limit/global-concurrency-limit-select/global-concurrency-limit-select.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"722dc5d1219b1bd10cdb46acaaf649ee83ffba13a3685a0ec49df89f3932b842"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 3 locations): ui-v2/src/components/work-pools/work-pool-menu/work-pool-menu.tsx:20 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-menu/work-pool-queue-menu.tsx:20 \u00B7 ui-v2/src/components/workers/worker-menu/worker-menu.tsx:22 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-menu/work-pool-menu.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0b360f8b8ecce70dc47982322b12a0aaabc1408229b522ec0aeaea70a8af88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-reset-dialog/global-concurrency-limits-reset-dialog.tsx:23 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-reset-dialog/task-run-concurrency-limits-reset-dialog.tsx:23 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-reset-dialog/global-concurrency-limits-reset-dialog.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73f84193ed1e7deb48ee24e21b8fbe522b1dd2ba74c8d3f97c35da38b4f1b60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (43 matched lines \u00D7 2 locations): ui-v2/src/components/ui/route-error-state.tsx:8 \u00B7 ui-v2/src/components/ui/server-error.tsx:7 \u2014 the two spans are one implementation copied and then locally edited \u2014 289 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/route-error-state.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20f7adc54f55571752da79ecc5ceb210b9fbce911ee0e731115beef034e39a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2 locations): ui-v2/src/components/work-pools/create/information-step/information-step.tsx:30 \u00B7 ui-v2/src/components/work-pools/edit/work-pool-edit-form.tsx:84 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/create/information-step/information-step.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1503de508cd0ca0b81c0d644398b535d444b394d4291deeec21e65261f66fffa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2 locations): ui-v2/src/components/schemas/utilities/convertValueToPrefectKind.ts:77 \u00B7 ui-v2/src/components/schemas/utilities/convertValueToPrefectKind.ts:127 \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":"ui-v2/src/components/schemas/utilities/convertValueToPrefectKind.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6499f1ccf24dcf707e2c9cccc84061d1ab54065bb3a97b49e8522b2f080d2f94"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (42 matched lines \u00D7 2 locations): ui/src/services/uiSettings.ts:41 \u00B7 ui/src/utilities/uiVersion.ts:61 \u2014 the two spans are one implementation copied and then locally edited \u2014 171 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/services/uiSettings.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab12dccdf94d6cdc7121a3ed40700f6c0c2117b51a9f2d69efc079a11917ed9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (41 matched lines \u00D7 2 locations): ui-v2/src/components/events/event-details-page/event-details-display.tsx:28 \u00B7 ui-v2/src/components/events/events-timeline/events-timeline.tsx:115 \u2014 the two spans are one implementation copied and then locally edited \u2014 229 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/event-details-page/event-details-display.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a0bb873323b24bb2fed9fe4900df8eb266559a4d0548fd6cae7dad5d0bef47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): ui-v2/src/routes/blocks/index.tsx:273 \u00B7 ui-v2/src/routes/deployments/index.tsx:258 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/blocks/index.tsx"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6789dea509d9fd0c10695b3fd0168253458836799d14f1e5f7df02db3628a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx:62 \u00B7 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/deployment-filter.tsx:31 \u00B7 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/flow-filter.tsx:28 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"984291e978b3e37cf3b0ea97b1aacbe66ce599fc028618adf88839b0cf348a72"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-view/global-conccurency-limits-dialog.tsx:14 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-view/task-run-concurrency-limit-dialog.tsx:13 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-view/global-conccurency-limits-dialog.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d683d87eccea7af0a9fb7894d06cad399af930cb6e0e26521974f9a0e0db4e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): ui-v2/src/components/schemas/schema-form-input-integer.tsx:17 \u00B7 ui-v2/src/components/schemas/schema-form-input-number.tsx:13 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input-integer.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e8c6903f924673d2563f36cd8c520afc5184ccdddce4e224e5eb1433a41273"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2 locations): ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx:774 \u00B7 ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx:819 \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":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2eccb1048f2b6c641d86eca465b44a6e3009439c876874e37f0a6c3f9176e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (36 matched lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/actions-step/select-deployments-fields.tsx:70 \u00B7 ui-v2/src/components/automations/automations-wizard/actions-step/select-work-queues-fields.tsx:83 \u2014 the two spans are one implementation copied and then locally edited \u2014 158 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/select-deployments-fields.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a161246df18189d44841ce9a0a20da81a2a8ea009c0e5a22a01fa0000e975f49"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx:327 \u00B7 ui-v2/src/components/task-runs/task-run-details-page/index.tsx:245 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aaae9246ce51c640e8752fb3d0483f69dc80befb3da831ba8a7d55d7a44011d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-action-menu/deployment-action-menu.tsx:18 \u00B7 ui-v2/src/components/work-pools/work-pool-card/components/work-pool-context-menu.tsx:19 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-action-menu/deployment-action-menu.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eda7240a75ca6e8c959f8af2e63f6dd1e12c4bab7600b604df5a2e949dcfaea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-menu/hooks/use-work-pool-menu.ts:40 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-menu/hooks/use-work-pool-queue-menu.ts:45 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-menu/hooks/use-work-pool-menu.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb045036d061583137c5b1285595d51477e82e78e2e32ef4b049136615a7a1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (34 matched lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-icon-text/deployment-icon-text.tsx:11 \u00B7 ui-v2/src/components/flows/flow-icon-text/flow-icon-text.tsx:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 192 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-icon-text/deployment-icon-text.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66540fbb8ea4bf59acabc30e1dec05b1526fe16fa03f136c9489987b1e276c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/sort-filter.tsx:10 \u00B7 ui-v2/src/components/task-runs/task-runs-list/task-run-sort-filter.tsx:10 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/sort-filter.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"77518518456f3f946128477cbe1ffb9cec24a916af9b4913fde7dd2b70b4d635"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): ui-v2/src/components/work-pools/edit/work-pool-edit-page-header.tsx:15 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-form/work-pool-queue-create-page-header.tsx:14 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/edit/work-pool-edit-page-header.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f031f8cd118c5baab479c4ab9415255feb63912ecd02bbe443c5383020456c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 3 locations): ui-v2/src/routes/deployments/index.tsx:327 \u00B7 ui-v2/src/routes/flows/index.tsx:318 \u00B7 ui-v2/src/routes/variables/index.tsx:252 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/index.tsx"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"73acfe0c2a7376621ada17432cd6caa3f0309d398ab6da27ac95a8b427f19429"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (33 matched lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx:233 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-events-popover.tsx:27 \u2014 the two spans are one implementation copied and then locally edited \u2014 170 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cea0a471acf9bd53d22fd8020dbf3b96c18e20eeb37065f616fd75d7828a20"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): ui-v2/src/components/flows/detail/delete-flow-dialog.tsx:7 \u00B7 ui-v2/src/components/work-pools/work-pool-menu/components/delete-work-pool-dialog.tsx:7 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/delete-flow-dialog.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf3e39d3b1a15dbe531635088c6150930a857dfb6488b34e7b2648547215342"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (32 matched lines \u00D7 2 locations): ui-v2/src/components/schemas/schema-display/property-types/array-property.tsx:8 \u00B7 ui-v2/src/components/schemas/schema-display/property-types/object-property.tsx:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 139 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-display/property-types/array-property.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"791eb093f46589d7b5c594da6c679f902a7a66e3cb823fbbbce0101be8df0138"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): ui-v2/src/components/ui/stepper/stories/form-stepper-story.tsx:144 \u00B7 ui-v2/src/components/ui/stepper/stories/form-stepper-story.tsx:177 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/stepper/stories/form-stepper-story.tsx"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5ba6cc747b17c47ff817c54d9fa95e10f783f5f631bf12b3ecc66eb40434d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): ui-v2/src/api/work-pool-queues/work-pool-queues.ts:129 \u00B7 ui-v2/src/api/work-pool-queues/work-pool-queues.ts:165 \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":"ui-v2/src/api/work-pool-queues/work-pool-queues.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d45e44e6baf6e684183992de5c925db59c7971a3cc92b93540e097d8eb4ee7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-actions/resume-flow-run-dialog.tsx:81 \u00B7 ui-v2/src/components/flow-runs/flow-run-actions/retry-flow-run-dialog.tsx:38 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-actions/resume-flow-run-dialog.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"704d0152b969716e00b71bcf65dc0f0f0ff2844ddaea2c0a37e6daf8c800eedc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (31 matched lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-center-button.tsx:17 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-fullscreen-button.tsx:24 \u2014 the two spans are one implementation copied and then locally edited \u2014 146 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-center-button.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfbe94ef5a3e6e5812a19512b48767a9a2283f348682521b56a76c49805f63f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3 locations): ui-v2/src/components/ui/alert-dialog.tsx:82 \u00B7 ui-v2/src/components/ui/dialog.tsx:87 \u00B7 ui-v2/src/components/ui/tabs.tsx:8 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/alert-dialog.tsx"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b133b375c13393bb641d60f143a47e76187c22d798cc3614e455c6d6603360d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): ui-v2/src/routes/dashboard.tsx:650 \u00B7 ui-v2/src/routes/dashboard.tsx:728 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a62c981fabbb22d4c30a4912a4a029c6bcb141e9b62cbc0c2010c2db9303192"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx:108 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx:135 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbab1538cf2d4e8caa7e513266ce0d1a305235655d1a1a80a5a54e44c2b1ba98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/global-concurrency-limits-create-or-edit-dialog.tsx:46 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-create-dialog/work-pool-queue-create-dialog.tsx:56 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/global-concurrency-limits-create-or-edit-dialog.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4eea64f1e23a150aaa2cb2fb44a0d68cede89362a3468f9e8bbd2d99ba3fa5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-view/index.tsx:16 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-view/index.tsx:15 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-view/index.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be417d54988c3d70ba9cd16bab5530a14ad905be13558cb51a743304d41b42f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4 locations): ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-subflows.tsx:86 \u00B7 ui-v2/src/components/work-pools/work-pool-flow-runs-tab/work-pool-flow-runs-tab.tsx:129 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-runs-tab/work-pool-queue-runs-tab.tsx:146 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-upcoming-runs-tab/work-pool-queue-upcoming-runs-tab.tsx:80 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-subflows.tsx"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e08d42b8ebed4243cea45f4dd92337217e898cd60a30dada03f6f369b1f4a88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): ui-v2/src/components/runs/runs-page.tsx:344 \u00B7 ui-v2/src/components/runs/runs-page.tsx:387 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/runs/runs-page.tsx"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"681f28a65f5498356b7227b7acbbc882c8ef788773be161bcc60b4321f3e33bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): ui-v2/src/routes/flows/flow.$id.tsx:146 \u00B7 ui-v2/src/routes/runs/index.tsx:806 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/flow.$id.tsx"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d226916f302c8ce8e1f0e29f495e94073e48139a70461882224df28ab59c5c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:251 \u00B7 ui-v2/src/routes/work-pools/work-pool_.$workPoolName.queue.$workQueueName.tsx:72 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e965a72d45ce12d5ae415892a6496233a7b7ff0beef473dda9238569b801d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/deployment-status-trigger-fields.tsx:104 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/work-queue-status-trigger-fields.tsx:160 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/deployment-status-trigger-fields.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1a024a061ce7ba5d2d2fd7c609a8be7a8869bc2e4a4941b083b2b0068b7cc4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): ui-v2/src/components/blocks/block-document-create-dialog/block-document-create-dialog.tsx:207 \u00B7 ui-v2/src/components/blocks/block-document-create-page/block-document-create-page.tsx:140 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-create-dialog/block-document-create-dialog.tsx"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e09f74e465f3dea02d364b52b419c777d684e90eed04f0f14081a21f38cb4a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-runs-list/use-flow-runs-selected-rows.ts:3 \u00B7 ui-v2/src/components/task-runs/task-runs-list/use-task-runs-selected-rows.ts:3 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/use-flow-runs-selected-rows.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ca544087459882af00833f25df912442029b6476429fbf3aaeffbcc6b7b48e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): ui-v2/src/graphs/factories/nodeFlowRun.ts:263 \u00B7 ui-v2/src/graphs/factories/nodeTaskRun.ts:105 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/nodeFlowRun.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8ab983c6da35a677b9752a8a71fca1acb72c0b334bc44b8129fe9d6d5a506e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-delete-dialog/automations-delete-dialog.tsx:37 \u00B7 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-delete-dialog/global-concurrency-limits-delete-dialog.tsx:41 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-delete-dialog/task-run-concurrency-limits-delete-dialog.tsx:41 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-delete-dialog/automations-delete-dialog.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fc8715d5dcb0d2994ab4dd22b01c108456d9833f3353bc73dea72569f605f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/event-to-trigger.ts:159 \u00B7 ui-v2/src/components/automations/automations-wizard/event-to-trigger.ts:190 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/event-to-trigger.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e885cd049c7df29e21f96f3af411320d39020d197476a131ca19865f0bbcd77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/work-pools-combobox.tsx:46 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/work-queues-combobox.tsx:78 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/work-pools-combobox.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"919f72b935886ba2cf2087966543fe03627b83de8881fa9795cad9334bcfebc1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): ui-v2/src/components/automations/trigger-details/trigger-details.tsx:144 \u00B7 ui-v2/src/components/automations/trigger-details/trigger-details.tsx:179 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-details.tsx"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acf5dbe360090e837b73dd2bfcb8bf48019bfbe1738b6892e542daa133bd95a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3 locations): ui-v2/src/components/flow-runs/flow-run-actions/cancel-flow-run-dialog.tsx:100 \u00B7 ui-v2/src/components/flow-runs/flow-run-actions/resume-flow-run-dialog.tsx:85 \u00B7 ui-v2/src/components/flow-runs/flow-run-actions/retry-flow-run-dialog.tsx:42 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-actions/cancel-flow-run-dialog.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9877785faa9acebce731695a35651e13a8b2fc95dc01ebcdae695a66e0a09e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx:79 \u00B7 ui-v2/src/components/task-runs/task-run-details-page/index.tsx:158 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7a6ac99d6e6d04739a31a1b3d5b63fc905ad31860765696f74347de63aed21"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/global-concurrency-limits-create-or-edit-dialog.tsx:49 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-create-dialog/task-run-concurrency-limits-create-dialog.tsx:82 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-create-dialog/work-pool-queue-create-dialog.tsx:59 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/global-concurrency-limits-create-or-edit-dialog.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6b2e48bed909c2bff8a99eb4fa5a5e935467362af33688a65faa4050625b97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx:95 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-details/work-pool-queue-details.tsx:107 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d552110e92aa8e579cf3747e25bc2228cd619fc710a7194137d305611ab2aaea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): ui-v2/src/components/artifacts/artifact/metadata-sidebar/flow-run-section.tsx:57 \u00B7 ui-v2/src/components/artifacts/artifact/metadata-sidebar/task-run-section.tsx:26 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifact/metadata-sidebar/flow-run-section.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46e0ebe89c1bad54bcd7731efdab2fdaead5918a883c0de95ccf1779407bb9d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-header/global-concurrency-limits-header.tsx:13 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-header/task-run-concurrency-limits-header.tsx:13 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-header/global-concurrency-limits-header.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d1fcdf9e5c35258400367a9a6b44c99805917e47d875bbb8379d776039e803"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): ui-v2/src/components/deployments/data-table/cells.tsx:105 \u00B7 ui-v2/src/components/flows/detail/mini-deployment-activity.tsx:19 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/data-table/cells.tsx"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"28193b90fdad5532de006bc00961ca2b9925580732b4c84872451a34f8255a70"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-form/work-pool-queue-create-page-header.tsx:15 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-form/work-pool-queue-edit-page-header.tsx:17 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-form/work-pool-queue-create-page-header.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"815436c78d2390e2c27d173608ae47088c289f885ec231c717b15a1196161c3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): ui-v2/src/api/block-schemas/block-schemas.ts:5 \u00B7 ui-v2/src/api/block-types/block-types.ts:5 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/block-schemas/block-schemas.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"620f6a502ace1499ac91b1cc29c53b0e50a2d6b0e4dac0232b42fb3959704135"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): ui-v2/src/api/flow-runs/constants.ts:27 \u00B7 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/state-filters.constants.ts:3 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flow-runs/constants.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"753875cf88c923c5c43022e354ebdff01cf01bbb9af36c0b29274ca3d026b5d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/flow-run-state-trigger-fields.tsx:276 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/work-pool-status-trigger-fields.tsx:180 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/work-queue-status-trigger-fields.tsx:176 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/flow-run-state-trigger-fields.tsx"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad360fc8a33fdbbc6ecd03da4e6ca03c1793f3e30485918510361979aac6b293"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): ui-v2/src/graphs/factories/flowRunArtifact.ts:54 \u00B7 ui-v2/src/graphs/factories/nodeFlowRunArtifact.ts:52 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunArtifact.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8aaa39b9d6c36da2aff9742e23af57144e7c0352de9d82dbc1670bfeb5d1ca9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3 locations): ui-v2/src/routes/automations/create.tsx:102 \u00B7 ui-v2/src/routes/blocks/catalog_.$slug_.create.tsx:61 \u00B7 ui-v2/src/routes/work-pools/create.tsx:19 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/automations/create.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d054585e2f9a8afa6716e230313f83841b75f973dfa682be127b5b62f4c0d7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): ui-v2/src/routes/blocks/catalog_.$slug.tsx:20 \u00B7 ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:467 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/blocks/catalog_.$slug.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1daeeb331923f04b8cd9779ab5ba3651531c9aafea9f32f8746aebe93127fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): ui-v2/src/routes/concurrency-limits/concurrency-limit.$id.tsx:36 \u00B7 ui-v2/src/routes/concurrency-limits/index.tsx:41 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/concurrency-limits/concurrency-limit.$id.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"91027d4e019499edc8ff5cda31dfb1ae4ee836487c20a0511b49441c719659cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3 locations): ui-v2/src/routes/deployments/index.tsx:241 \u00B7 ui-v2/src/routes/flows/index.tsx:247 \u00B7 ui-v2/src/routes/variables/index.tsx:190 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/index.tsx"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bb015b650b0b2ca8cdd1b4f5f487fdb05b2e1de4d498dbe996359836154535"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): ui-v2/src/routes/flows/flow.$id.tsx:641 \u00B7 ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:467 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/flow.$id.tsx"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b25cb5c3d4b0e60b3bdd7e395e8f3cb151fd63c04160243ea2e95a681462096"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): ui-v2/src/routes/flows/flow.$id.tsx:641 \u00B7 ui-v2/src/routes/work-pools/work-pool_.$workPoolName.queue.$workQueueName.tsx:258 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/flow.$id.tsx"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab045133101295488d1cc5a3ed2debcd3c0ac4c2d5e8416fcdfe3e63de011485"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): ui-v2/src/api/deployments/index.ts:172 \u00B7 ui-v2/src/api/work-pools/work-pools.ts:123 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/deployments/index.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f902cac300925254f5dc8ded397d7a9125a319ec6a3281ccc41e6675f8b292"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-icon-text/deployment-icon-text.tsx:76 \u00B7 ui-v2/src/components/flows/flow-icon-text/flow-icon-text.tsx:64 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-icon-text/deployment-icon-text.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a6f2284e4d7a2a42252cc5d8f4878cb196f4db609fec6d2a76e3643a97fc5f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-artifacts-popover.tsx:43 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-events-popover.tsx:43 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-artifacts-popover.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d062f240af954fb570749301245db6a15f23364a91c2a17ae8d72e4b70297d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): ui-v2/src/components/flows/flows-page.tsx:53 \u00B7 ui-v2/src/routes/deployments/index.tsx:159 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/flows-page.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c0f5e1ef81a891df1145d062d6bc29417369eabfda738937479adf514d5db0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4 locations): ui-v2/src/routes/automations/index.tsx:17 \u00B7 ui-v2/src/routes/deployments/index.tsx:181 \u00B7 ui-v2/src/routes/variables/index.tsx:161 \u00B7 ui-v2/src/routes/work-pools/index.tsx:118 \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/automations/index.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8d8e1f4c686b1b3aa5f5e489a704c9509eec25f832fdb619756aa8859e1ce0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-edit-header/automations-edit-header.tsx:32 \u00B7 ui-v2/src/components/work-pools/edit/work-pool-edit-page-header.tsx:22 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-edit-header/automations-edit-header.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2d51a22e21190fc73227ade87e7417ea7c8c74d493f22041d443f0f5f121cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/work-pool-status-trigger-fields.tsx:153 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/work-queue-status-trigger-fields.tsx:112 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/work-pool-status-trigger-fields.tsx"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3eaff747d441295736a0312606acaf81c27042e77adc89410f49480a978391"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/global-concurrency-limits-create-or-edit-dialog.tsx:109 \u00B7 ui-v2/src/components/deployments/deployment-form/deployment-form.tsx:194 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/global-concurrency-limits-create-or-edit-dialog.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ea92693179feb2f1e0a6a4798aeff865d448118acd3ebe1ad4916f21db3442"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (21 matched lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-schedules/schedule-action-menu.tsx:17 \u00B7 ui-v2/src/components/flows/detail/flow-menu.tsx:15 \u2014 the two spans are one implementation copied and then locally edited \u2014 118 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-schedules/schedule-action-menu.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"583174938364d561407e173bee94c50c0785dd3850adc813a3e8bfe851274cd4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): ui-v2/src/components/deployments/quick-run-parameters-dialog/quick-run-parameters-dialog.tsx:101 \u00B7 ui-v2/src/components/deployments/use-quick-run.tsx:43 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/quick-run-parameters-dialog/quick-run-parameters-dialog.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e841ff92a3ce21a95aa5f0598b9596c84b6c9d9812d7947092470ba801722be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (21 matched lines \u00D7 2 locations): ui-v2/src/components/events/event-details-page/event-action-menu.tsx:18 \u00B7 ui-v2/src/components/flows/detail/flow-menu.tsx:18 \u2014 the two spans are one implementation copied and then locally edited \u2014 106 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/event-details-page/event-action-menu.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0dd0c95e99a27ac746512bd1ea84b5334a85d5fd5f2cab380fe9191498d2090"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-details-page/index.tsx:212 \u00B7 ui-v2/src/components/flow-runs/flow-run-details-page/index.tsx:235 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/index.tsx"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e593f49705bb8a3294aa4e79f8ba7e841180bc551e9996f5e5c8ce9f29ff7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-details-page/index.tsx:330 \u00B7 ui-v2/src/components/flow-runs/flow-run-details-page/index.tsx: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/index.tsx"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b048a78d423eb038edfb236942e04364a1ef4e32e0737df549a8e46fbe26d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): ui-v2/src/components/flows/columns.tsx:13 \u00B7 ui-v2/src/components/flows/detail/deployment-columns.tsx:17 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/columns.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8450a72179fa4df83fba32bc3253c4590e285bb12b462fdcd95ef362601cd890"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): ui-v2/src/graphs/factories/flowRunArtifact.ts:25 \u00B7 ui-v2/src/graphs/factories/flowRunEvent.ts:20 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunArtifact.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7372369b7533bcb2e16054bdcbb6a158498b9df0108e7ae67b425b45fe913b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): ui-v2/src/graphs/factories/flowRunArtifact.ts:90 \u00B7 ui-v2/src/graphs/factories/nodeFlowRunArtifact.ts:79 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunArtifact.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7116f0958889b3621da869bee68ca7c9f91fd2ace2396e619c397ccbf68153"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx:202 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/events-combobox/events-combobox.tsx:105 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf086ac0ea56b3d18aa77c5fe20a4bc477244451dc5ab112f3e9e7b47c77988"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-view/global-conccurency-limits-dialog.tsx:32 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limit-page/task-run-concurrency-limit-dialog.tsx:29 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-view/task-run-concurrency-limit-dialog.tsx:31 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-view/global-conccurency-limits-dialog.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fefb43ab43c81e7b1a1f3289637379aa8474a4c66a527fdae21b10c132d2560"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-actions-menu/task-run-concurrency-limits-actions-menu.tsx:20 \u00B7 ui-v2/src/components/deployments/deployment-action-menu/deployment-action-menu.tsx:19 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-actions-menu/task-run-concurrency-limits-actions-menu.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b4b0a4129230a91facb2c0f1c83ce584a157e08fd7580f1078bd292814f57e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx:498 \u00B7 ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx:580 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c1198cf6f7945cce9309a612a12d691dafa8e8a4415da8e24e420fc26d3e07"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx:208 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx:235 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fce9c8fdfefb237f6bdb2df1d4c5f2ec18c4ee52bdcca0e09cf3fb5ecb2d8bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx:170 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx:191 \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":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe65228879355eff71d721f2158d60f1949244ca7e9e023d4af0ddd154b8569"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/graphs/factories/event.ts:22 \u00B7 ui-v2/src/graphs/factories/eventCluster.ts:38 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/event.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa21e4c142fb5ed186e7e6b887c5220be5680146dae74b451fc47ba3e8cae08d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/routes/artifacts/artifact.$id.tsx:45 \u00B7 ui-v2/src/routes/artifacts/key.$key.tsx:53 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/artifacts/artifact.$id.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a4bb68bb64069232fe89dc4f171cc2c03e3ed3f4e5e273877fb487f65aefa2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/routes/artifacts/index.tsx:96 \u00B7 ui-v2/src/routes/runs/index.tsx:671 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/artifacts/index.tsx"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b10eff78872461d809585d78d654dc77aab71de9ced18c105ef4190f8e5208"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/routes/automations/automation.$id.tsx:16 \u00B7 ui-v2/src/routes/automations/automation_.$id.edit.tsx:16 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/automations/automation.$id.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5764d56a32a19120e34114cce36f7b020f4606ec0083aeb6cd69b814a30d4231"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/routes/blocks/block.$id.tsx:20 \u00B7 ui-v2/src/routes/blocks/block_.$id.edit.tsx:20 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/blocks/block.$id.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"53809de7d50ff0dfe564000642caa7ded9d396f7caa721cde66ba0e8aa6835b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/routes/blocks/catalog.tsx:53 \u00B7 ui-v2/src/routes/blocks/index.tsx:204 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/blocks/catalog.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd6166091cd97ec217156dd14fb1bdb104c74987a83b08952845a3c8a2536eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (20 matched lines \u00D7 2 locations): ui-v2/src/routes/blocks/catalog_.$slug.tsx:20 \u00B7 ui-v2/src/routes/deployments/deployment_.$id.run.tsx:53 \u2014 the two spans are one implementation copied and then locally edited \u2014 86 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/blocks/catalog_.$slug.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4cc398130ce496476aa5fc0f299daf04bb7f4da3a3c02797341594214f9de7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5 locations): ui-v2/src/routes/blocks/index.tsx:204 \u00B7 ui-v2/src/routes/events/event.$eventDate.$eventId.tsx:51 \u00B7 ui-v2/src/routes/work-pools/work-pool_.$workPoolName.edit.tsx:37 \u00B7 ui-v2/src/routes/work-pools/work-pool_.$workPoolName.queue.create.tsx:52 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/blocks/index.tsx"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdac53ad9aea1ee203de1086f20e05db8d78198bedffac4f86d3ba34b51a4dd7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/routes/deployments/deployment_.$id.duplicate.tsx:18 \u00B7 ui-v2/src/routes/deployments/deployment_.$id.edit.tsx:18 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/deployment_.$id.duplicate.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f330c92a632a4faf147801f637eef4cacb9ecf11db09e60f9177a1b9b15bf2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (20 matched lines \u00D7 2 locations): ui-v2/src/routes/deployments/deployment_.$id.run.tsx:53 \u00B7 ui-v2/src/routes/flows/flow.$id.tsx:641 \u2014 the two spans are one implementation copied and then locally edited \u2014 86 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/deployment_.$id.run.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdd663fa6d5c4897dfac97dacaf91d35af1a43e46eac4ee0ce38d151afe1507"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (20 matched lines \u00D7 2 locations): ui-v2/src/routes/deployments/deployment_.$id.run.tsx:53 \u00B7 ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:467 \u2014 the two spans are one implementation copied and then locally edited \u2014 86 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/deployment_.$id.run.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47a5d4f525cf04a04f154408ddba43c958becb2adfa8fbf32766cb82653043e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (20 matched lines \u00D7 2 locations): ui-v2/src/routes/deployments/deployment_.$id.run.tsx:53 \u00B7 ui-v2/src/routes/work-pools/work-pool_.$workPoolName.queue.$workQueueName.tsx:258 \u2014 the two spans are one implementation copied and then locally edited \u2014 86 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/deployment_.$id.run.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6bb6bdc7dabd4e34986187091238e65319cd0913f75c71dbfa48c8ea1c7e5b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): ui-v2/src/routes/work-pools/work-pool_.$workPoolName.queue.create.tsx:52 \u00B7 ui-v2/src/routes/work-pools/work-pool_.$workPoolName.queue_.$workQueueName.edit.tsx:59 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/work-pools/work-pool_.$workPoolName.queue.create.tsx"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00e0517b0e01a9a4e0e029ec500fe705bf5a4b9909190d0adf39e4d40fbbe69"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): ui-v2/src/api/deployments/index.ts:246 \u00B7 ui-v2/src/api/deployments/index.ts:332 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/deployments/index.ts"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23839d68b40a4c40eecd411303fda4ac35b188b18a16f737a1c1e478826ce41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): ui-v2/src/api/flow-runs/use-filter-flow-runs-with-flows/use-filter-flow-runs-with-flows.ts:20 \u00B7 ui-v2/src/api/flow-runs/use-paginate-flow-runs-with-flows/use-paginate-flow-runs-with-flows.ts:26 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flow-runs/use-filter-flow-runs-with-flows/use-filter-flow-runs-with-flows.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"681f7599d32c18c02afa3e299bbbf78fa074ebd97ac568df80631b8272605982"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): ui-v2/src/components/artifacts/artifact/metadata-sidebar/flow-run-section.tsx:9 \u00B7 ui-v2/src/components/artifacts/artifact/metadata-sidebar/task-run-section.tsx:7 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifact/metadata-sidebar/flow-run-section.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"910c42a582bd226c6e16178faa2da88f2cf00e64984fb1e2def5203145b15848"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4 locations): ui-v2/src/components/automations/action-details/action-details.tsx:303 \u00B7 ui-v2/src/components/automations/action-details/action-details.tsx:333 \u00B7 ui-v2/src/components/automations/action-details/action-details.tsx:359 \u00B7 ui-v2/src/components/automations/action-details/action-details.tsx:381 \u2014 all 4 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/action-details/action-details.tsx"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33c55bb6b4e937f77e11fa6df2a22ed12a9c0faaeecf47c905af25c49253410"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): ui-v2/src/components/blocks/block-document-create-page/block-document-create-page.tsx:121 \u00B7 ui-v2/src/components/blocks/block-document-edit-page/block-document-edit-page.tsx:59 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-create-page/block-document-create-page.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b0dd354d7744ff0087fc1039751c860a849184a0a61ce9afeab2ff856dc93c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (19 matched lines \u00D7 2 locations): ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx:865 \u00B7 ui-v2/src/components/work-pools/create/work-pool-create-wizard.tsx:222 \u2014 the two spans are one implementation copied and then locally edited \u2014 70 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d0e9504c7e27f8525b69f0553628c1d9e7b62050202581cd76a0939c6eee84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3 locations): ui-v2/src/components/ui/schedule-badge/index.tsx:102 \u00B7 ui-v2/src/components/ui/schedule-badge/index.tsx:139 \u00B7 ui-v2/src/components/ui/schedule-badge/index.tsx:171 \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":"ui-v2/src/components/ui/schedule-badge/index.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0c4592acbedc2b30f11ebb376dcd207ae732b6a803f1224f7e1f3d848fb881"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): ui-v2/src/components/variables/variable-dialog/variable-dialog.tsx:92 \u00B7 ui-v2/src/components/variables/variable-dialog/variable-dialog.tsx:113 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/variables/variable-dialog/variable-dialog.tsx"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8c43b73e3dc35fd7959f9abb75c5e7e8cd12e5287c4bd6ea339bbe2f4103fa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:325 \u00B7 ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:345 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f81d46acec8d455d54dece626b96bbdaeba9090e25b80139434de013a2e6de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/api/artifacts/index.ts:152 \u00B7 ui-v2/src/api/artifacts/index.ts:185 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/artifacts/index.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"889cb295c77ce800d64f84af68c7b232b68b56f02382224e018837b48dc36f6b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/api/automations/automations.ts:187 \u00B7 ui-v2/src/api/automations/automations.ts:232 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/automations/automations.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f66e6574da00843b2fe5a16179315a685d118035d0ca6d23020b81b7f393f03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/api/work-pools/work-pools.ts:55 \u00B7 ui-v2/src/api/work-queues/work-queues.ts:41 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/work-pools/work-pools.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5dc291793a75ef8295fb0d834edb946a332154798c97454a3836d0a70ef623"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-actions-menu/automations-actions-menu.tsx:19 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-actions-menu/task-run-concurrency-limits-actions-menu.tsx:22 \u00B7 ui-v2/src/components/deployments/deployment-action-menu/deployment-action-menu.tsx:21 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-actions-menu/automations-actions-menu.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fac836b29ca231af2083100c94aa0d791746851c96b530417b7c3da25e819d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/components/blocks/block-document-create-page/block-document-create-page-header.tsx:17 \u00B7 ui-v2/src/components/blocks/block-type-page/block-type-page.tsx:29 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-create-page/block-document-create-page-header.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa411b383d6d56beb43355e2818f8fd723bfa1d639ff0ceb6b5d9d9e2b2a99ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/components/blocks/block-type-details.tsx:6 \u00B7 ui-v2/src/components/blocks/blocks-catalog-page/block-type-card.tsx:8 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-type-details.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"854cc2bc61ec27722a3e6ff79570742983e7ca6da62939d1a3e8923e755e1aa8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): ui-v2/src/components/blocks/blocks-page.tsx:43 \u00B7 ui-v2/src/routes/variables/index.tsx:79 \u00B7 ui-v2/src/routes/work-pools/index.tsx:27 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/blocks-page.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d292f066db82581911a8f6206c8ecb1e96d02e008e5b1354e23f83aa0e3bef4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/components/dashboard/task-runs-card/index.tsx:230 \u00B7 ui-v2/src/components/flows/detail/flow-stats-summary/cumulative-task-runs-card.tsx:136 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/task-runs-card/index.tsx"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34c7fedfc069dda63662e16dc8240299f5cf5aa73441e303f32be63881fa268"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-schedules/schedule-action-menu.tsx:34 \u00B7 ui-v2/src/components/flows/cells.tsx:159 \u2014 the two spans are one implementation copied and then locally edited \u2014 96 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-schedules/schedule-action-menu.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb6eda81fc6c6596bcf55f225a5f2ee3b97c3b4cc8ebc234316169cb7d2d47d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): ui-v2/src/components/events/event-resource-display/event-resource-display.tsx:76 \u00B7 ui-v2/src/components/events/event-resource-display/event-resource-display.tsx:98 \u00B7 ui-v2/src/components/events/event-resource-display/event-resource-display.tsx:120 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/event-resource-display/event-resource-display.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce10861b76addacfa5592664aee0d5c5d3a66c51b94a66086282ec1e06919e3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/components/events/event-resource-display/event-resource-display.tsx:105 \u00B7 ui-v2/src/components/events/event-resource-display/event-resource-display.tsx:127 \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":"ui-v2/src/components/events/event-resource-display/event-resource-display.tsx"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edf6bf9f4fe10cee671382d0fe05d65459c8dc3e4e653cd4a3f0649a0747e0a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): ui-v2/src/components/schemas/utilities/convertValueToPrefectKind.ts:66 \u00B7 ui-v2/src/components/schemas/utilities/convertValueToPrefectKind.ts:116 \u00B7 ui-v2/src/components/schemas/utilities/convertValueToPrefectKind.ts:202 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/utilities/convertValueToPrefectKind.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8871d8fe1de25cc366227c8f3ae89c0b7b46326a9b6a7e426e69f8ace95f6d52"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6 locations): ui-v2/src/components/ui/alert-dialog.tsx:71 \u00B7 ui-v2/src/components/ui/dialog.tsx:79 \u00B7 ui-v2/src/components/ui/dropdown-menu.tsx:171 \u00B7 ui-v2/src/components/ui/menubar.tsx:189 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/alert-dialog.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4208f29200c107715f047c4d96b959e5465460d220de2299a6cc2c3727fb789c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx:327 \u00B7 ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx:407 \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":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eaa2f0bee015b3414e49634fa671ce964b50ff3b08fccc484deb1ad546195e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-deployments-tab/work-pool-deployments-tab.tsx:120 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-upcoming-runs-tab/work-pool-queue-upcoming-runs-tab.tsx:118 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-deployments-tab/work-pool-deployments-tab.tsx"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a047f56a384b8537d32b0988b46e3e87234ed681d1384e2a9770de0fa6b20735"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui-v2/src/routes/deployments/deployment.$id.tsx:35 \u00B7 ui-v2/src/routes/deployments/deployment.$id.tsx:53 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/deployment.$id.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3598ca446c173a63d63ffccc52aa227bdafa45c33f767b471be61a8e515e25f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): ui/src/pages/DeploymentDuplicate.vue:35 \u00B7 ui/src/pages/DeploymentEdit.vue:32 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/pages/DeploymentDuplicate.vue"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca4d54b5bfc619427235f4e3ca26a3e1e857568c954a376a52336b7989fdf22"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): ui-v2/src/api/block-types/block-types.ts:41 \u00B7 ui-v2/src/api/flows/index.ts:124 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/block-types/block-types.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0377924a9001df4e6f341510d4f959e076d1ba1db38fcdd7807fe24044f9095"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): ui-v2/src/api/events/filters.ts:226 \u00B7 ui-v2/src/api/events/filters.ts: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/events/filters.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"030bf01a1f70af16184e4d115037277ed68a4e37e7cd9fe0390392c4315a1c5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/events-combobox/events-combobox.tsx:111 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/work-pools-combobox.tsx:61 \u00B7 ui-v2/src/components/work-pools/work-pool-multi-select/work-pool-multi-select.tsx:66 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/events-combobox/events-combobox.tsx"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62eec7cb71fbd40d6af46f64b8cdddef95d85417bcabddd2c85ba45982ac391"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): ui-v2/src/components/blocks/block-document-create-page/block-document-create-page-header.tsx:11 \u00B7 ui-v2/src/components/blocks/block-document-edit-page/block-document-edit-page-header.tsx:11 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-create-page/block-document-create-page-header.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2390eb2223a27ef14aa8bb648ec2e8ac314e4f8dc616bf740e0aaf59ab055c82"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): ui-v2/src/components/dashboard/flow-runs-card/index.tsx:333 \u00B7 ui-v2/src/components/dashboard/task-runs-card/index.tsx:190 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-card/index.tsx"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"945910007d83e955ca2cf33ee3f1b432b64b5415f0e0e86cb2a275966db9d2e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-form/deployment-form.tsx:77 \u00B7 ui-v2/src/components/deployments/deployment-form/deployment-form.tsx:157 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-form/deployment-form.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c47cfb1d705a30a624b0476c1bc5a645a7d032ed8378373ad45372654edd31f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): ui-v2/src/components/flow-runs/activity-chart/activity-chart.tsx:76 \u00B7 ui-v2/src/components/ui/flow-run-activity-bar-graph/utils.ts:54 \u2014 the two spans are one implementation copied and then locally edited \u2014 90 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/activity-chart/activity-chart.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1042dcb3d5aecd19365f46212c274f2e148ecd6d25a4c4501df5546800425042"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx:91 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"91295dda54c498b4bf9b8e700f0e55630536619e8bdb4439d68f282564f439a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4 locations): ui-v2/src/components/flows/detail/flow-stats-summary/query-filters.ts:70 \u00B7 ui-v2/src/components/flows/detail/flow-stats-summary/query-filters.ts:91 \u00B7 ui-v2/src/components/flows/detail/flow-stats-summary/query-filters.ts:112 \u00B7 ui-v2/src/components/flows/detail/flow-stats-summary/query-filters.ts:133 \u2014 all 4 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/flow-stats-summary/query-filters.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bac19c6cb7933a68e98060131201a9df2f1352f6d2fa4a05d4cd75e1dccdc41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): ui-v2/src/components/ui/data-table.tsx:94 \u00B7 ui-v2/src/components/ui/data-table.tsx:151 \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":"ui-v2/src/components/ui/data-table.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6044879775d6429eb750c94ad04e2c318a7fa2a8f12e7d30df79bd2a71b16257"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): ui-v2/src/components/ui/select.tsx:128 \u00B7 ui-v2/src/components/ui/select.tsx:146 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/select.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7618d50320346fe6d47136c9d7ebb0f0758df490f64f51260497233cac63beee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-page-header/work-pool-page-header.tsx:34 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-page-header/work-pool-queue-page-header.tsx:47 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-page-header/work-pool-page-header.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5dec2a598ca39bbad27943da5c1d93fb1a56fd3dacde6017f7a1fa83edd44e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8 locations): ui-v2/src/api/automations/automations.ts:139 \u00B7 ui-v2/src/api/automations/automations.ts:178 \u00B7 ui-v2/src/api/automations/automations.ts:223 \u00B7 ui-v2/src/api/flow-runs/index.ts:444 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/automations/automations.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3867cd5bee6a277117999e64f8faaabcde34c71cf031ff3b437426b2394ebe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): ui-v2/src/components/automations/trigger-details/trigger-utils.ts:208 \u00B7 ui-v2/src/components/automations/trigger-details/trigger-utils.ts:358 \u00B7 ui-v2/src/components/automations/trigger-details/trigger-utils.ts:387 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-utils.ts"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb60d95e0c02198b55a6950648dfd7f8adf2aeb16af48ec8b381c3cd1a17689"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts:100 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx:125 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx:217 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2533f5812fcbc248b9cafcc9e6f688a7962d244884ec654b0cea309a2778c010"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/actions-cell.tsx:31 \u00B7 ui-v2/src/components/work-pools/work-pool-card/components/work-pool-context-menu.tsx:26 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/actions-cell.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2444b5611d0adcdb8be2d19c67749731c7411dcc55a2f94ca435a70f610a4113"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): ui-v2/src/components/deployments/create-flow-run-form/create-flow-run-form.tsx:234 \u00B7 ui-v2/src/components/deployments/deployment-form/deployment-form.tsx:219 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/create-flow-run-form/create-flow-run-form.tsx"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8362955d9c188d5cdf3d1074954f3f4010d5837a7da523b7e54586c2cd29e1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): ui-v2/src/components/deployments/data-table/index.tsx:204 \u00B7 ui-v2/src/components/flows/data-table.tsx:99 \u00B7 ui-v2/src/components/variables/data-table/data-table.tsx:127 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/data-table/index.tsx"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76404832d6a3655fa39f7ac1625066418752f03eae2f27b1b54625bba5105c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): ui-v2/src/components/deployments/deployment-form/deployment-form.tsx:128 \u00B7 ui-v2/src/components/variables/variable-dialog/variable-dialog.tsx:170 \u00B7 ui-v2/src/components/work-pools/create/information-step/information-step.tsx:21 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-form/deployment-form.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"111c4a735dde750da942b2c54fc0ddd82a222d34222701d0a4b1f4257799a72c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): ui-v2/src/components/flows/detail/delete-flow-dialog.tsx:4 \u00B7 ui-v2/src/components/work-pools/work-pool-menu/components/delete-work-pool-dialog.tsx:4 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-menu/components/delete-work-pool-queue-dialog.tsx:3 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/delete-flow-dialog.tsx"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc158cdc261dc434735af6d6393c3e099c72e72712e4013608a6a6c9a315691"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): ui-v2/src/components/schemas/schema-form-input-prefect-kind-jinja.tsx:11 \u00B7 ui-v2/src/components/schemas/schema-form-input-prefect-kind-json.tsx:11 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input-prefect-kind-jinja.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8b11ba99782ae561b5316887397c9eac10038f1541938178f56e33f47cdd79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx:719 \u00B7 ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx:736 \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":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"3297a7165bdd8bc22660d24094f99cfed00a96b2ee20e492aa27d7a3ea627d03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-create-dialog/use-create-work-pool-queue-form.ts:119 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-create-dialog/use-create-work-pool-queue-form.ts:138 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-create-dialog/use-create-work-pool-queue-form.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"602f1280ab9ea5f43351e2e4f7a8db1127294ed1ec6149c62d2bba5c80b490f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-toggle/work-pool-queue-toggle.tsx:32 \u00B7 ui-v2/src/components/work-pools/work-pool-toggle/work-pool-toggle.tsx:26 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-toggle/work-pool-queue-toggle.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"68473e590a54e007859ea7feb566bb4cfbcd2fd8c0a76211bb6d93629ea54645"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4 locations): ui-v2/src/hooks/use-runs-filters.ts:105 \u00B7 ui-v2/src/hooks/use-runs-filters.ts:122 \u00B7 ui-v2/src/hooks/use-runs-filters.ts:140 \u00B7 ui-v2/src/hooks/use-runs-filters.ts:158 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/hooks/use-runs-filters.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ede0e4a80ba3e7377fcf1c55b661fd8663b345bfb44de3f16f5f3b8535ccf21"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): ui-v2/src/routes/dashboard.tsx:438 \u00B7 ui-v2/src/routes/dashboard.tsx:533 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbc65e5f83cbaeb9d89226b449885f41f6769aff7b3f984a6ea49c34d891c3d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/api/automations/automations.ts:43 \u00B7 ui-v2/src/api/block-types/block-types.ts:34 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/automations/automations.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbcbf4467760090cc93e0f1a7b9d04c9d5e7ae1c8aee9820c032435edfb5af7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/api/flows/index.ts:203 \u00B7 ui-v2/src/api/flows/index.ts:241 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flows/index.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"902f903f282496f5d82ccc5ad4994aed219bcd9d93577c74be5128fca31cf56e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): ui-v2/src/components/artifacts/artifact/artifact-raw-data-display.tsx:32 \u00B7 ui-v2/src/components/ui/markdown-input.tsx:63 \u00B7 ui-v2/src/components/ui/python-input.tsx:60 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifact/artifact-raw-data-display.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"914949df7dae6672d07639b8caf4718c01eac3fc033d9338c363c9b502976eeb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5 locations): ui-v2/src/components/automations/automations-delete-dialog/automations-delete-dialog.tsx:14 \u00B7 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-delete-dialog/global-concurrency-limits-delete-dialog.tsx:17 \u00B7 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-reset-dialog/global-concurrency-limits-reset-dialog.tsx:17 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-delete-dialog/task-run-concurrency-limits-delete-dialog.tsx:17 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-delete-dialog/automations-delete-dialog.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c317265c916eba7363ef97de0369c7f1d416bf06c0da5ce4c3ec620ccf08c2c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/automation-wizard.tsx:119 \u00B7 ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx:867 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/automation-wizard.tsx"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09740811ee3295fdbeac1ff5e66ffb8fa0b69cb71d11a7f0312fe7266b95655"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/custom-posture-select/index.tsx:24 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/posture-select.tsx:38 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/custom-posture-select/index.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b06aec9c349f8ee8cd94ee538951521b29dac56ecaa3ef01a8e49a337974a7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): ui-v2/src/components/automations/use-delete-automation-confirmation-dialog.ts:25 \u00B7 ui-v2/src/components/variables/use-delete-variable-confirmation-dialog.ts:17 \u2014 the two spans are one implementation copied and then locally edited \u2014 65 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/use-delete-automation-confirmation-dialog.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f5541860a2778f2263535f740240a730b67c2ab9caed6cfbc8f8520f1b18f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx:55 \u00B7 ui-v2/src/routes/dashboard.tsx:619 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe01c2a9ca12dd142495e11d4175b82e95293472cf2feb7b28ba98b005ccf8b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-metadata.tsx:152 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-details/work-pool-queue-details.tsx:126 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-metadata.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaee739a2c8f8a071f3deffd2870495ee40607316e0c984898a5683138cd8e14"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4 locations): ui-v2/src/components/flow-runs/flow-run-actions/pause-flow-run-dialog.tsx:46 \u00B7 ui-v2/src/components/flow-runs/flow-run-actions/retry-flow-run-dialog.tsx:35 \u00B7 ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx:92 \u00B7 ui-v2/src/components/task-runs/task-run-details-page/index.tsx:171 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-actions/pause-flow-run-dialog.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0252db3fd934e7c9fd35e673cdcadaabb7d23d7ef63fc0790773a0cd8f12648c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-card/card-properties/flow-run-start-time.tsx:29 \u00B7 ui-v2/src/components/task-runs/task-runs-list/task-runs-list-item.tsx:174 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-card/card-properties/flow-run-start-time.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1f3cb35337547a5dc58c2bcde3d16551cc816b737ccafabfdc4e255ee83040"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): ui-v2/src/components/flows/detail/deployment-columns.tsx:102 \u00B7 ui-v2/src/components/flows/detail/flow-menu.tsx:22 \u2014 the two spans are one implementation copied and then locally edited \u2014 63 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/deployment-columns.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1213d0367bf73816e927433362523c9ed2bf4f6c137058d00f9a4f4aa4d3e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/components/runs/save-filter-dialog.tsx:93 \u00B7 ui-v2/src/components/ui-version-switch/ui-version-switch-dialog.tsx:191 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/runs/save-filter-dialog.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2125dd0bb1306f345fbd766bf596b1a5da9ed7839e659d21a5d741c578f46537"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx:100 \u00B7 ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx:119 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-time-picker/date-time-picker.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"462c73e62e8f5ea0d759f5f9e322c0c0d1a75aeccf96ddad9661661ee8beb25c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-runs-tab/work-pool-queue-runs-tab.tsx:20 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-upcoming-runs-tab/work-pool-queue-upcoming-runs-tab.tsx:17 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-runs-tab/work-pool-queue-runs-tab.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c86b32890efe26d4a4482446d3f507949461b541084f5af21b2ae30c02acf0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-status-badge/work-pool-queue-status-badge.tsx:37 \u00B7 ui-v2/src/components/work-pools/work-pool-status-badge/work-pool-status-badge.tsx:33 \u2014 the two spans are one implementation copied and then locally edited \u2014 69 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-status-badge/work-pool-queue-status-badge.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"54370e5c025c9ff856a852c8f1b2941ca5f5eda1ef1c9a7f15c1841694e2c054"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-tabs-sync/use-redirect-details-tab-on-desktop.ts:19 \u00B7 ui-v2/src/routes/work-pools/-use-redirect-details-tab-on-desktop.ts:22 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-tabs-sync/use-redirect-details-tab-on-desktop.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69371e7a2eb43557546d4164386a172051a2ca6934713043bb91240e5a772e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/api/artifacts/index.ts:85 \u00B7 ui-v2/src/api/variables/index.ts:70 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/artifacts/index.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"773dd2240acb90e07056fe42f3d8c0c85516386ab38a7457d095c096c2ebeafa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/api/block-documents/block-documents.ts:59 \u00B7 ui-v2/src/api/deployments/index.ts:90 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/block-documents/block-documents.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71a8583c64e744702a3e3255f0bb3090be2d3b735cb1ac3dc8093153d4afc93"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/api/block-documents/block-documents.ts:228 \u00B7 ui-v2/src/api/deployments/index.ts:207 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/block-documents/block-documents.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c219a9f49a85f42debe16e39132cf9c009e6c8c72de73f32b1c6cd116ed55d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4 locations): ui-v2/src/api/events/index.ts:80 \u00B7 ui-v2/src/api/flow-runs/index.ts:176 \u00B7 ui-v2/src/api/flows/index.ts:110 \u00B7 ui-v2/src/api/task-runs/index.ts:128 \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/events/index.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1280ee12d37734e28138aa83607337607191800bcbcce7f7de21f589d0d61a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/api/task-run-concurrency-limits/task-run-concurrency-limits.ts:225 \u00B7 ui-v2/src/api/task-run-concurrency-limits/task-run-concurrency-limits.ts:266 \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":"ui-v2/src/api/task-run-concurrency-limits/task-run-concurrency-limits.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a79e764278ecb07ddcebc3654dddd447e9255aa8413f030f8b84af4818856d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-wizard/details-step/details-step.tsx:24 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-create-dialog/work-pool-queue-create-dialog.tsx:88 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-form/work-pool-queue-form.tsx:70 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/details-step/details-step.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bda86d47d004a68ce45f5e2ffcbb6f8601e2f8e1b6dc8d4f7829e99431630e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts:66 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx:76 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx:149 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7019f73232addfcbe0db8e50bb090e470f18a4a5af08e989def51cc54dee1b23"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/components/dashboard/work-pools-card/work-pools-card-skeleton.tsx:17 \u00B7 ui-v2/src/routes/dashboard.tsx:103 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/work-pools-card/work-pools-card-skeleton.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65a6334253e234d0d8ad0bdf9fb6833ee98562d3b5774f1eceb9493d4d2630c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/components/deployments/create-flow-run-form/use-create-flow-run-form.tsx:35 \u00B7 ui-v2/src/components/deployments/deployment-form/use-deployment-form.ts:38 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/create-flow-run-form/use-create-flow-run-form.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"826b093411232dc80979fd883846560be5a1d7d4067540515b48317ab43802f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-form/deployment-form.tsx:202 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx:213 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-form/deployment-form.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f33632aaf90def90efb255f8b347cb0f72b27ed52132d37de7fc5cdf545a8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-link.tsx:25 \u00B7 ui-v2/src/components/flows/flow-link.tsx:21 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-link.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"423b10198938134f891288c6d9134072160ca731db34e384fd9dcf2a8a156beb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-triggers.tsx:69 \u00B7 ui-v2/src/components/task-runs/task-runs-list/task-runs-list.tsx:47 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-triggers.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5195a95597fc5246151c8a894f95326e18d0aef452fd8ec70e31088a70032b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx:43 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/index.tsx:8 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8835e43e7f1ba8c3459930ba21985618ce179f68f448f274ec10259b9dae332c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6 locations): ui-v2/src/components/ui/alert-dialog.tsx:64 \u00B7 ui-v2/src/components/ui/card.tsx:18 \u00B7 ui-v2/src/components/ui/card.tsx:38 \u00B7 ui-v2/src/components/ui/dialog.tsx:75 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 5 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/alert-dialog.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d67168c92fecc1e16ba2a1ca0c5f939b46464025039388f55282fae7a2e1d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7 locations): ui-v2/src/components/ui/breadcrumb.tsx:18 \u00B7 ui-v2/src/components/ui/card.tsx:12 \u00B7 ui-v2/src/components/ui/card.tsx:32 \u00B7 ui-v2/src/components/ui/card.tsx:52 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/breadcrumb.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2994f9a09fa2118a2852aee085f2d290a2486460d933f6e30810cb9e7d22f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/components/ui/card-error-state.tsx:22 \u00B7 ui-v2/src/components/ui/tab-error-state.tsx:20 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/card-error-state.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa114811b4a34adaa4b65afb7744fee8df798a9f26bd4a30065599f37fdee1e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/components/ui/pagination.tsx:93 \u00B7 ui-v2/src/components/ui/pagination.tsx:160 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/pagination.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7407547e316bb826e1832650692673e7cccf35e1b82429bc9f932855f6b3dd1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queues-table/components/queue-name-with-late-indicator.tsx:37 \u00B7 ui-v2/src/components/work-pools/work-pool-queues-table/components/work-pool-queues-table-columns.tsx:40 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queues-table/components/queue-name-with-late-indicator.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ab4b02e4603dacccd9d44adbc8a011e2952b3ddf79438af3905be4d566f641"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): ui-v2/src/graphs/objects/flowRunArtifacts.ts:9 \u00B7 ui-v2/src/graphs/objects/flowRunStates.ts:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/flowRunArtifacts.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefa4a553657a9121b1cc336a11020824c7523528373b4ca608f56e73e9e6cef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): ui-v2/src/routes/deployments/deployment.$id.tsx:102 \u00B7 ui-v2/src/routes/runs/flow-run.$id.tsx:111 \u00B7 ui-v2/src/routes/runs/task-run.$id.tsx:79 \u2014 the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/deployment.$id.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05ce2e79d0f18a71736d690570b2e10a86a3b53558bd97bbb6b71f0f1c3ecd7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): ui-v2/src/routes/runs/index.tsx:735 \u00B7 ui-v2/src/routes/runs/index.tsx:775 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a640b4777eb7124ee4192211933e7f408ed0fbf59e4a18036a0869c69b48cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:292 \u00B7 ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:317 \u00B7 ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:337 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"35667f527eb7d21326f3673be1a53e0b54731c4908a90daffceb6532bf04a330"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/api/artifacts/index.ts:14 \u00B7 ui-v2/src/api/deployments/index.ts:17 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/artifacts/index.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fbe8d09f7fd2b1303152e0a78b01a8960659bc9334682f279bb5020cf8cde6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/api/work-pools/work-pools.ts:145 \u00B7 ui-v2/src/api/work-pools/work-pools.ts:303 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/work-pools/work-pools.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"789e0d3dc47861c3d556ecbc464ebb385e3e9008242689e10ce9f802fd2d96c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): ui-v2/src/api/work-pools/work-pools.ts:168 \u00B7 ui-v2/src/api/work-pools/work-pools.ts:191 \u00B7 ui-v2/src/api/work-pools/work-pools.ts:212 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/work-pools/work-pools.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a3800f35cebe7771fd51864f46b67f6890bb37bd17bdb2358392cb0c18380d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/events-combobox/events-combobox.tsx:95 \u00B7 ui-v2/src/components/flows/flow-multi-select/flow-multi-select.tsx:81 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/events-combobox/events-combobox.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f4871161367c8cf70d5ffeecdf7e6f4ca707c89c533e2e0f1e468823ba3ef4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/components/automations/trigger-details/trigger-details-flow-run-state.tsx:72 \u00B7 ui-v2/src/components/automations/trigger-details/trigger-details-flow-run-state.tsx: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":"ui-v2/src/components/automations/trigger-details/trigger-details-flow-run-state.tsx"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a8d9fccd4be54d6abe454568a2f7620d5d8bfb50d214dcb8d42468c9c42930"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/components/blocks/block-document-details-page/block-document-details-page-header.tsx:10 \u00B7 ui-v2/src/components/deployments/deployment-details-header.tsx:12 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-details-page/block-document-details-page-header.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd71be5b26e6ff65af8ee1a7539f2a1051489ea051a32db5f5efc9de0a10db29"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): ui-v2/src/components/blocks/block-document-details-page/block-document-schema-properties.tsx:56 \u00B7 ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx:177 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-details-page/block-document-schema-properties.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e693c8f67a5bb338bf317ca5d7d033f7f6531aed34413c6ec716eecedb457507"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/components/dashboard/flow-runs-card/index.tsx:68 \u00B7 ui-v2/src/components/flows/detail/flow-stats-summary/flow-runs-history-card.tsx:36 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-card/index.tsx"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff37fe2491b928ce7b94fbd361ada0cb6d2c22680a97535565dafa914c0106bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): ui-v2/src/components/deployments/deployment-details-header.tsx:19 \u00B7 ui-v2/src/components/flows/detail/flow-page-header.tsx:22 \u00B7 ui-v2/src/components/work-pools/work-pool-page-header/work-pool-page-header.tsx:30 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-details-header.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d077c99ebe784986184dd306473ce2a52a7e26f9fe8a7ca6be45938d192ccaca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): ui-v2/src/components/deployments/deployment-details-tabs.tsx:43 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-tabs-sync/use-redirect-details-tab-on-desktop.ts:20 \u00B7 ui-v2/src/routes/work-pools/-use-redirect-details-tab-on-desktop.ts:23 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-details-tabs.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"40373c4db5c38bbef8bed01460ab470444a390719954684c75e8d26749ce4e78"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/components/flows/cells.tsx:76 \u00B7 ui-v2/src/components/flows/cells.tsx:100 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/cells.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b385331ad3f6aadbb95e3bb270592b7e2a960f06aff9745a2b8c0911aa075c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): ui-v2/src/components/runs/save-filter-dialog.tsx:76 \u00B7 ui-v2/src/components/ui/stepper/stories/form-stepper-story.tsx:128 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/runs/save-filter-dialog.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd00bcc5d435e2b2afa1f2bcea28d2ec524ad3c09bae0305d5ae04f96b478823"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/components/runs/use-runs-saved-filters.ts:206 \u00B7 ui-v2/src/components/runs/use-runs-saved-filters.ts:346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/runs/use-runs-saved-filters.ts"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93304fca39a8ab0fc2544cb224ff04a02611b56cdc1cbb423d79d90c5e412e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): ui-v2/src/components/schemas/schema-form-input-prefect-kind-jinja.tsx:2 \u00B7 ui-v2/src/components/schemas/schema-form-input-prefect-kind-json.tsx:2 \u00B7 ui-v2/src/components/schemas/schema-form-input-prefect-kind-workspace-variable.tsx:1 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input-prefect-kind-jinja.tsx"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1989d818619c99d8c2c30f22ac3622591a6bfd16da33f820c0cc85848f0b8184"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx:95 \u00B7 ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx:115 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28c5246e2edc9eb5e43ba7102fb1fc9ff623c980598b710a054139ef97ae07e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-form/work-pool-queue-edit-page-header.tsx:30 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-page-header/work-pool-queue-page-header.tsx:39 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-form/work-pool-queue-edit-page-header.tsx"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13c46b0a55b8b970bf6fdb4e93a8ac618499ffa8adbb698fb44958353c67855"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): ui-v2/src/graphs/factories/node.ts:125 \u00B7 ui-v2/src/graphs/factories/runArtifacts.ts:37 \u00B7 ui-v2/src/graphs/factories/runEvents.ts:40 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/node.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef23c74ec62436a449f9a017e8125e7294256414f0bcc0953b8b126106bf9ab3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): ui-v2/src/routes/flows/flow.$id.tsx:430 \u00B7 ui-v2/src/routes/runs/index.tsx:499 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/flow.$id.tsx"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbb8382ec8340c91f58aa18aba024ac0ce2117cb5e811fe7fcb38670fd9bebd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): ui-v2/src/components/automations/action-details/action-details.tsx:242 \u00B7 ui-v2/src/components/automations/action-details/action-details.tsx:299 \u00B7 ui-v2/src/components/automations/action-details/action-details.tsx:377 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/action-details/action-details.tsx"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82765113bfaf2551325b91a4f330a3f52d8405f2ee7d886b2da5c7f5d71ee35"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-page.tsx:85 \u00B7 ui-v2/src/components/deployments/data-table/index.tsx:296 \u00B7 ui-v2/src/components/variables/data-table/data-table.tsx:196 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-page.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"772120fa2910122e66cd470024810944ed21ad00b69c396d093e97dd99c6ea35"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/automations-trigger-template-select/automations-trigger-template-select.tsx:74 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/posture-select.tsx:23 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/automations-trigger-template-select/automations-trigger-template-select.tsx"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7fc9e1c0a52564934feb642b63bcb7e6b9d69f750230c741be8a9a808617ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): ui-v2/src/components/blocks/block-document-action-menu/block-document-action-menu.tsx:14 \u00B7 ui-v2/src/components/deployments/deployment-action-menu/deployment-action-menu.tsx:13 \u00B7 ui-v2/src/components/work-pools/work-pool-card/components/work-pool-context-menu.tsx:14 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-action-menu/block-document-action-menu.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8e4f84f10b8b51adb8ec8cbe8ac8cf1040cf647105aff4ca9f79b7866b928d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8 locations): ui-v2/src/components/blocks/blocks-catalog-page/block-types-grid.tsx:53 \u00B7 ui-v2/src/components/blocks/blocks-page.tsx:41 \u00B7 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.tsx:110 \u00B7 ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-data-table/task-run-concurrency-limits-data-table.tsx:103 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 7 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/blocks-catalog-page/block-types-grid.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3328df1fdc70659f8858d315a2489d379783d93ba70a2b012bdf78a708d2ac38"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limit-header/nav-header.tsx:17 \u00B7 ui-v2/src/components/events/event-details-page/event-details-header.tsx:20 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limit-header/nav-header.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"20640addd11603d66a6076d9b3217309ba7e7695f3a37bf1739bb781a094873b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/components/dashboard/flow-runs-card/flow-runs-card-skeleton.tsx:11 \u00B7 ui-v2/src/routes/dashboard.tsx:65 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-card/flow-runs-card-skeleton.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d13fd47b3ceed77bf78514ea7047ad7d28501eea0fc0e6b500a1625167ed84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/components/dashboard/flow-runs-card/index.tsx:101 \u00B7 ui-v2/src/components/dashboard/task-runs-card/index.tsx:67 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-card/index.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb44c85d39581c6c36fbb518db4a395d3add9d02ed770ac3fbeb0d7365fedc1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/components/dashboard/task-runs-card/task-runs-stats.tsx:71 \u00B7 ui-v2/src/components/dashboard/task-runs-card/task-runs-stats.tsx: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":"ui-v2/src/components/dashboard/task-runs-card/task-runs-stats.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"6328e1e8019045cc011c6226c6f2b68f9d025f66736be9dbcdfac5505d0632d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/components/deployments/data-table/cells.tsx:33 \u00B7 ui-v2/src/components/variables/data-table/cells.tsx:35 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/data-table/cells.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0bd7531ad3197dabe5b9202717a9c78fd370d1275cc4cb8cbb15a40b6a5a9a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/components/runs/runs-page.tsx:273 \u00B7 ui-v2/src/components/runs/runs-page.tsx:287 \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":"ui-v2/src/components/runs/runs-page.tsx"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"589919b93dd29c3ddcb9565f99601348c2b4e4a2067d1d3da3c6ed6dca584740"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): ui-v2/src/components/ui/json-input-lazy.tsx:6 \u00B7 ui-v2/src/components/ui/markdown-input-lazy.tsx:6 \u00B7 ui-v2/src/components/ui/python-input-lazy.tsx:6 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/json-input-lazy.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"df18514be8171486215f491d3f85a6532fb4273fac555c65ddc612e955a5ed81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/components/ui/run-state-change-dialog/run-state-change-dialog.tsx:81 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-create-dialog/work-pool-queue-create-dialog.tsx:53 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/run-state-change-dialog/run-state-change-dialog.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5836aefbdb23ed4e3b01f37874f32c19b85b3c64299d06dae4fb3af5430bd2a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/components/ui/stepper/stories/form-stepper-story.tsx:87 \u00B7 ui-v2/src/components/ui/stepper/stories/stepper-story.tsx:8 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/stepper/stories/form-stepper-story.tsx"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6a13dbfee49f2b74f147f9ae9e31809796111babb340aa65e3e85dc996ccc1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): ui-v2/src/graphs/factories/nodes.ts:368 \u00B7 ui-v2/src/graphs/workers/runGraph.worker.ts:13 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/nodes.ts"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"82929e1707dca520227c12fd6fba031c1b36c98cfe4b22c73b1ae1d07a60c0be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6 locations): ui-v2/src/routes/deployments/index.tsx:295 \u00B7 ui-v2/src/routes/flows/flow.$id.tsx:166 \u00B7 ui-v2/src/routes/runs/index.tsx:715 \u00B7 ui-v2/src/routes/runs/index.tsx:826 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/index.tsx"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3ef7b4f948081eb76de2ebf948cabd7076f5bbbac653ec630ddb03e41ac680"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): ui-v2/src/api/admin/admin.ts:35 \u00B7 ui-v2/src/api/admin/admin.ts:51 \u00B7 ui-v2/src/api/admin/admin.ts:67 \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":"ui-v2/src/api/admin/admin.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f15a0415bcf660cfa50e7bfd57a8e61d514d144dd980126e5b60d585929ded6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): ui-v2/src/api/admin/admin.ts:94 \u00B7 ui-v2/src/api/deployments/index.ts:295 \u00B7 ui-v2/src/api/variables/index.ts:202 \u00B7 ui-v2/src/api/work-pools/work-pools.ts:239 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/admin/admin.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce36c52001e8851b47e22a76adcba9e7c6b171201648a32ac17718c4809b2653"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/api/events/filters.ts:35 \u00B7 ui-v2/src/routes/dashboard.tsx:162 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/events/filters.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"86880754bf0c8c777c219ed49ca3b7d9d4b30ff3b1928175482eb4ed1f3f6c13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/api/flows/index.ts:71 \u00B7 ui-v2/src/api/flows/index.ts:199 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flows/index.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"314649731468a081a08337b558522eca4964bc7b9ade522489eea2c96988dfeb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/api/task-runs/index.ts:96 \u00B7 ui-v2/src/api/task-runs/index.ts:391 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/task-runs/index.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f516026f715c34ce85b60f02f45e350768d161f91ba863f72249c25558a14f03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): ui-v2/src/components/artifacts/artifacts-filter.tsx:106 \u00B7 ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-artifacts.tsx:61 \u00B7 ui-v2/src/components/task-runs/task-run-artifacts/index.tsx:61 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifacts-filter.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3e2fe738e25cfd9141a2413014373c79ed631109a5b84e2f0733c04b5c8e8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/actions-step/select-work-pools-fields.tsx:29 \u00B7 ui-v2/src/components/automations/automations-wizard/actions-step/select-work-queues-fields.tsx:29 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/select-work-pools-fields.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f42b5010f70a4c3b7451ce23d2d102e2f297941c5166a10c9bbd6e8514facf0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): ui-v2/src/components/automations/automations-wizard/automation-schema.ts:43 \u00B7 ui-v2/src/components/automations/automations-wizard/automation-schema.ts:56 \u00B7 ui-v2/src/components/automations/automations-wizard/automation-schema.ts:69 \u00B7 ui-v2/src/components/automations/automations-wizard/automation-schema.ts:82 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/automation-schema.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1169f9db2324f8b8ee6bc70d6fd034da4d44d1655cbde1e59bcad9f0388b4878"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/components/blocks/block-document-combobox/block-document-combobox.tsx:45 \u00B7 ui-v2/src/components/blocks/default-result-storage-card.tsx:155 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-combobox/block-document-combobox.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e111955398b30bc9ae9ed455bc236914d43fa5f2ff23d4d1c823b810b17c1f98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts:13 \u00B7 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts:34 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"02076602e8992a79cc4351e5ca87e71fea184da1bc065bf4900e3589e199fc5a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-link.tsx:8 \u00B7 ui-v2/src/components/flows/flow-link.tsx:8 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-link.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0503b4c14e0f877b66cfabb3dde743534d38bf067d17a0dc160f75e8fcead95"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): ui-v2/src/components/deployments/deployment-metadata.tsx:10 \u00B7 ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx:15 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-details/work-pool-queue-details.tsx:11 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-metadata.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c414c475689ae1fffb0ff288971a45381410a6ab86d3465e8944e2a8378e1a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-schedules/schedule-action-menu.tsx:37 \u00B7 ui-v2/src/components/flows/detail/deployment-columns.tsx:107 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-schedules/schedule-action-menu.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ed0cd104dd90e34846ac899e22031358a437f83fc1aa45286abe05f28d3e8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): ui-v2/src/components/events/events-type-filter/events-type-filter.tsx:79 \u00B7 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/deployment-filter.tsx:88 \u00B7 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/flow-filter.tsx:85 \u00B7 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/work-pool-filter.tsx:63 \u2014 the 4 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/events-type-filter/events-type-filter.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"044f573f1f4e47294a1318d070f22a49e13ca9fea4aa127f5bd74921c2556d60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx:272 \u00B7 ui-v2/src/components/task-runs/task-run-details-page/index.tsx:227 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"637bf23b8a961f0029ed1869a784c1b039d2ca863f063da4ba9218af346e1a5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/components/flows/cells.tsx:204 \u00B7 ui-v2/src/components/flows/detail/flow-stats-summary/flow-runs-history-card.tsx:76 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/cells.tsx"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89b5447285bace7f9ad5cb3a2c0e0cab6b418cb3c373dd807f42b3224861549"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/components/ui/checkbox.tsx:2 \u00B7 ui-v2/src/components/ui/menubar.tsx:2 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/checkbox.tsx"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb6905c2bd30c4be78193b3494721256d4a2474a5463eee9b249c9871046269"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): ui-v2/src/components/variables/header.tsx:16 \u00B7 ui-v2/src/components/work-pools/header.tsx:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/variables/header.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8908c055a81ed5e4767c5dce002a68dbbc97b20028dd5e7d1d88bbb52192e762"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-menu/hooks/use-work-pool-menu.ts:7 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-menu/hooks/use-work-pool-queue-menu.ts:7 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-menu/hooks/use-work-pool-menu.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e199451fdbfddd63fab17f7ed692b2cb4826d307b431fb9f4a2284225456705"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/routes/flows/index.tsx:142 \u00B7 ui-v2/src/routes/flows/index.tsx:155 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/index.tsx"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a747a12e5620ed6c1ff92decfee1ef1b75db73adf61457ed7b30e5fbe1de296"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): ui-v2/src/routes/runs/index.tsx:583 \u00B7 ui-v2/src/routes/runs/index.tsx:612 \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":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c7e5cc014d378680c7232d93c786e6215887bdebbfc502f161e352cc882b5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): ui/src/pages/BlockView.vue:20 \u00B7 ui/src/pages/BlocksCatalogCreate.vue:28 \u00B7 ui/src/pages/BlocksCatalogView.vue:17 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/pages/BlockView.vue"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc7c9b9ffb8f8c2f8e877e92d6403a7c972b0bdc61ff812c628109257dbe0e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/api/admin/admin.ts:83 \u00B7 ui-v2/src/api/block-documents/block-documents.ts:256 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/admin/admin.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e34d8367f52fbddf3d8a516774209b4ac8a8d32946f7a98c77f525252be01f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): ui-v2/src/api/automations/automations.ts:9 \u00B7 ui-v2/src/api/block-documents/block-documents.ts:13 \u00B7 ui-v2/src/api/block-types/block-types.ts:5 \u00B7 ui-v2/src/api/work-queues/work-queues.ts:7 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/automations/automations.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9591bc3614397e2eb2e32db247e9d30ac22c2d3fa6834e943785189334f4cdaa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/api/work-pool-queues/work-pool-queues.ts:46 \u00B7 ui-v2/src/api/work-pools/work-pools.ts:278 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/work-pool-queues/work-pool-queues.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dd3d6a844549609937d1b4510ba1d659735aaa63c58e3ed204bedb86ee8230"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/actions-step/action-type-select.tsx:42 \u00B7 ui-v2/src/components/automations/automations-wizard/actions-step/change-flow-run-fields.tsx:21 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/actions-step/action-type-select.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c48bf40897d34cff3ac6fb537a0617816c68b5c8a74562eba93230f3ac4cd0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-wizard/automation-wizard.tsx:103 \u00B7 ui-v2/src/components/ui/stepper/stories/form-stepper-story.tsx:90 \u00B7 ui-v2/src/components/ui/stepper/stories/stepper-story.tsx:10 \u2014 the 3 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/automation-wizard.tsx"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3e52b7a4f73a05106fa3bddc2dec6fa42c189aecfab9e4bca7253289ac90aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx:104 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx:116 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b3f4dbd9c445fd92884d6d9ef692da5b4a270cac3bd1208c781a2a7408f7c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/posture-select.tsx:64 \u00B7 ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-logs.tsx:132 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/posture-select.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6ef9a0dfe12d1f55d91a1098e3029f83e929b47aebc559c1b67c6fcd8c0e31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/posture-select.tsx:64 \u00B7 ui-v2/src/components/task-runs/task-run-logs/index.tsx:131 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/posture-select.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b6f54060aff292c5941429fc6de0796281a0662e7bf1da14bae3d075cca3c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/components/automations/trigger-details/trigger-details.tsx:26 \u00B7 ui-v2/src/components/automations/trigger-details/trigger-utils.ts:97 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-details.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb6e77c52ff0d9055a6fec154cf5d83a708b2a500ae9ac477f2bb784f26a6ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/components/blocks/block-document-action-menu/block-document-action-menu.tsx:28 \u00B7 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/actions-cell.tsx:31 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-action-menu/block-document-action-menu.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"deae43373de371bf874eb348913511b4f569de288ded4a412704202bb64993f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): ui-v2/src/components/blocks/block-document-data-table/block-document-data-table.tsx:94 \u00B7 ui-v2/src/components/flows/data-table.tsx:107 \u00B7 ui-v2/src/components/variables/data-table/data-table.tsx:135 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-data-table/block-document-data-table.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5cd7b06f8eacefd29827bf2d4f5c4fbdbe8a02320f1a1998589ed648c2b862"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): ui-v2/src/components/blocks/block-document-data-table/block-document-data-table.tsx:94 \u00B7 ui-v2/src/components/flows/data-table.tsx:107 \u00B7 ui-v2/src/components/variables/data-table/data-table.tsx:135 \u00B7 ui-v2/src/components/work-pools/work-pool-queues-table/work-pool-queues-table.tsx:34 \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-data-table/block-document-data-table.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e488ff892852e395e1de3a8cd748a6592142b9922f045cf283fa2741e87bb5f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): ui-v2/src/components/deployments/create-flow-run-form/create-flow-run-form.tsx:194 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx:190 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx:289 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/create-flow-run-form/create-flow-run-form.tsx"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d498b80f879f43f5187713f89e89f6369b55ee5693d603f385ecd9a4af5fbb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/components/deployments/deployment-duplicate-page.tsx:13 \u00B7 ui-v2/src/components/deployments/deployment-edit-page.tsx:11 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-duplicate-page.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce3960bfec0ec6961f680e78a212674c53141d48d3c535f6bf9c8ee13217396"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/components/flows/cells.tsx:53 \u00B7 ui-v2/src/components/flows/cells.tsx:215 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/cells.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc6e7a4c24a1f8bb23c175b8d9152f114608fe3f5148ef8014a0eb36f2b63ca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): ui-v2/src/components/flows/cells.tsx:160 \u00B7 ui-v2/src/components/flows/detail/deployment-columns.tsx:105 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/cells.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40aef9751abefbe3fe0ac0fe42adee441110b652c753a2481c4e2b054c90c60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/components/flows/detail/cells.tsx:8 \u00B7 ui-v2/src/components/flows/detail/cells.tsx:21 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/cells.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d282631f749b6553d3492251deb42d42583e7402b9933c1e43538d7928da9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/components/flows/detail/flow-details.tsx:16 \u00B7 ui-v2/src/components/flows/detail/flow-details.tsx:26 \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":"ui-v2/src/components/flows/detail/flow-details.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"072a913a19ebf3be120eb7ae38125fe8182037773ec1fbc77b413acbefd47230"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/components/work-pools/priority-management/priority-editor-dialog.tsx:36 \u00B7 ui-v2/src/components/work-pools/priority-management/priority-editor-dialog.tsx:71 \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":"ui-v2/src/components/work-pools/priority-management/priority-editor-dialog.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2e8bfbd58c200f1e3308e99a9b916995649ef70e61d41947f04710aba6dbd1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-status-icon/work-pool-queue-status-icon.tsx:57 \u00B7 ui-v2/src/components/work-pools/work-pool-status-icon/work-pool-status-icon.tsx:45 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-status-icon/work-pool-queue-status-icon.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1d53a91a7cb91cea4a06619fdb0a1b5c9b6126a825ac30281adee96c1925ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/graphs/objects/selection.ts:69 \u00B7 ui-v2/src/graphs/objects/selection.ts:79 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/selection.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cd25e1247540f12f6738d097fe2fd27fb25ec71058542e16dab6ea7963ece8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/routes/dashboard.tsx:199 \u00B7 ui-v2/src/routes/dashboard.tsx:1007 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3555cc67c63dc5cd0d16996a7ed52a4758f4e6ef87e5783b33268eb41084002"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui-v2/src/routes/flows/flow.$id.tsx:304 \u00B7 ui-v2/src/routes/variables/index.tsx:298 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/flow.$id.tsx"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee26eb745eed56b9dd679a797d822f8e35b576e0f9bc481ce45ce8ad33e29217"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui/src/pages/AppRouterView.vue:56 \u00B7 ui/src/pages/Unauthenticated.vue:60 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/pages/AppRouterView.vue"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"27655a45650e9c77717b0bbaec4c0339612e63bf71ce00f4cad2710c4b346c5a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): ui/src/pages/Runs.vue:205 \u00B7 ui/src/pages/Runs.vue:240 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/pages/Runs.vue"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1dc8fe6edaa7699d7e1a4d61fa57bf0011d2d6adef48304852e5202d7986d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9 locations): ui-v2/src/components/artifacts/artifact/artifact-detail-tabs.tsx:64 \u00B7 ui-v2/src/components/artifacts/artifact/artifact-detail-tabs.tsx:82 \u00B7 ui-v2/src/components/artifacts/artifact/artifact-detail-tabs.tsx:96 \u00B7 ui-v2/src/components/deployments/deployment-details-tabs.tsx:96 \u00B7 \u002B5 more site(s) not listed \u2014 the 9 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifact/artifact-detail-tabs.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"540223612b2c423e3f5f1d5ccbbc82d924208f16a9649fa6a03718c4409764dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): ui-v2/src/components/automations/automation-details-page.tsx:35 \u00B7 ui-v2/src/components/automations/automations-page.tsx:129 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automation-details-page.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d185d8a221246e2a60c0a8a485a22d2f0e065a84697af0d89f6fbffeb3294b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): ui-v2/src/components/blocks/block-types-multi-select/block-types-multi-select.tsx:62 \u00B7 ui-v2/src/components/global-concurrency-limit/global-concurrency-limit-select/global-concurrency-limit-select.tsx:57 \u00B7 ui-v2/src/components/variables/variable-combobox/variable-combobox.tsx:50 \u00B7 ui-v2/src/components/work-pools/work-pool-select/work-pool-select.tsx:56 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-types-multi-select/block-types-multi-select.tsx"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0798124744475507ff5c21bf3025606a310431fb650b76c837b3ee779fbde00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): ui-v2/src/components/deployments/create-flow-run-form/create-flow-run-form.tsx:56 \u00B7 ui-v2/src/components/deployments/deployment-form/deployment-form.tsx:38 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx:163 \u00B7 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx:262 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/create-flow-run-form/create-flow-run-form.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6745152927e195f1e464c1bf8e97b26035a08018fb58c1ef7c66c7d5362199d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): ui-v2/src/components/deployments/data-table/index.tsx:138 \u00B7 ui-v2/src/components/flows/detail/deployment-columns.tsx:81 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/data-table/index.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e0c163c8e6399e0c641c2fe95c330688da2af29bd698599452d973674b6929"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-artifacts-popover.tsx:32 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx:233 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-events-popover.tsx:27 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-state-popover.tsx:43 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-artifacts-popover.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7123055058d474b502860e5258ebb06a37f9b2e493a092cee099da6dbca06e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx:64 \u00B7 ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx:99 \u00B7 ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx:118 \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":"ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e3c371481394be0a4d8418e0eaa702c676f4d132ecebb730f8e25b376ee168"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): ui-v2/src/graphs/factories/guide.ts:17 \u00B7 ui-v2/src/graphs/factories/guides.ts:22 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/guide.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8489b939e01c8d246a0fb501dfbc68707f80acaf00fe804d7b57ce243ea5c911"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): ui/src/pages/AutomationCreate.vue:62 \u00B7 ui/src/pages/AutomationEdit.vue:43 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/pages/AutomationCreate.vue"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c853abb0af9c05509f87ef30f37ae40ed3469f8b982458ef022faec8f3875687"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): ui-v2/src/components/artifacts/artifact/metadata-sidebar/artifact-section.tsx:6 \u00B7 ui-v2/src/components/artifacts/artifact/metadata-sidebar/flow-run-section.tsx:9 \u00B7 ui-v2/src/components/artifacts/artifact/metadata-sidebar/task-run-section.tsx:7 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifact/metadata-sidebar/artifact-section.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f41ea69e8ea6de0e1a4f7fac253b2a21040a9d226fc897005c2ff6fac15089"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): ui-v2/src/components/automations/action-details/action-details.tsx:93 \u00B7 ui-v2/src/components/automations/action-details/action-details.tsx:110 \u00B7 ui-v2/src/components/automations/action-details/action-details.tsx:132 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/action-details/action-details.tsx"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2591cd49f99efa76da21c4caa691061d7034ce3c79e8d56406a4d882a2ba80cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/deployment-status-trigger-fields.tsx:48 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/work-pool-status-trigger-fields.tsx:139 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/deployment-status-trigger-fields.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf278431c674c17271b479217e9387174d4f5df17c191667a8e7bdaee3b31bf2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7 locations): ui-v2/src/components/ui/alert-dialog.tsx:4 \u00B7 ui-v2/src/components/ui/dialog.tsx:3 \u00B7 ui-v2/src/components/ui/dropdown-menu.tsx:3 \u00B7 ui-v2/src/components/ui/hover-card.tsx:2 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 7 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/alert-dialog.tsx"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e94d1b258daaf79521ac956ba9db05ba9ef8590718b6620c2797f13d41a7bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): ui-v2/src/components/work-pools/work-pool-queue-create-dialog/use-create-work-pool-queue-form.ts:21 \u00B7 ui-v2/src/components/work-pools/work-pool-queue-create-dialog/use-create-work-pool-queue-form.ts:38 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-create-dialog/use-create-work-pool-queue-form.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6dae739c2d007d7ae089dfe3d54f44db75842486c8ce151a604688e3623c739"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): ui-v2/src/graphs/factories/artifactBar.ts:14 \u00B7 ui-v2/src/graphs/factories/nodeBar.ts:18 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/artifactBar.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"99063e68be342687144a85a2630020def6c3f885d6ad7bab55ed5c3cda0d8d11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): ui-v2/src/graphs/factories/flowRunEvent.ts:43 \u00B7 ui-v2/src/graphs/factories/nodeFlowRunArtifact.ts:50 \u00B7 ui-v2/src/graphs/factories/nodeFlowRunEvent.ts:43 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunEvent.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6700a96f13b4be57a38df8829a66f5e7c341ba28ae1ca358dd334d1219d26f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): ui-v2/src/graphs/factories/guide.ts:15 \u00B7 ui-v2/src/graphs/factories/playhead.ts:11 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/guide.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9af8eebdb9f62415fd339c01a1d2ddbef6f81948e2d9d01863e13e3e848e4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): ui-v2/src/routes/artifacts/artifact.$id.tsx:18 \u00B7 ui-v2/src/routes/runs/flow-run.$id.tsx:26 \u00B7 ui-v2/src/routes/runs/task-run.$id.tsx:16 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/artifacts/artifact.$id.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8001e264670a03f93edf6ca7d8529effb4e22490a1fdcd6db2e0882e6630e051"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): ui-v2/src/routes/automations/create.tsx:39 \u00B7 ui-v2/src/routes/events/event.$eventDate.$eventId.tsx:11 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/automations/create.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"907f922290b587fc4ebdef995323be89eee0bbb90beee2931385e63f0ab3d016"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): ui-v2/src/routes/runs/index.tsx:106 \u00B7 ui-v2/src/routes/runs/index.tsx:118 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9486860377dcf4337e6f61a644ab8082c9d2a394d30ed616a2b08918882748e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): ui/src/components/ContextSidebar.vue:56 \u00B7 ui/src/pages/Dashboard.vue:99 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/components/ContextSidebar.vue"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4167420f14102ab5269c69276fd417b0b5a705818ff9d47c4d1e1c2959fd2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): ui/src/pages/Deployments.vue:23 \u00B7 ui/src/pages/Flows.vue:23 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/pages/Deployments.vue"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf74ceb769524ec2b0c1f99bff2ce8010bf53dfc300084c2d8cacab67be3c9e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): ui/src/pages/WorkPool.vue:57 \u00B7 ui/src/pages/WorkPoolQueue.vue:44 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/pages/WorkPool.vue"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f53d4af8f4858ea4ebb2a9ee1f9cc3d2d8a5daea26ab73f826fd67cd2bd95e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): ui-v2/src/api/flows/index.ts:35 \u00B7 ui-v2/src/api/task-runs/index.ts:53 \u00B7 ui-v2/src/api/work-pools/work-pools.ts:48 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flows/index.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"51583156d3b99adc262fd6956c47a9b96f50980e4eec103897e0e29ff226d24d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): ui-v2/src/api/flows/index.ts:283 \u00B7 ui-v2/src/api/work-pools/work-pools.ts:209 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flows/index.ts"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9352d8873f01a72cbe6e8a9e88454728aabaff8fa823c984a410a5c6cca8ef44"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/work-pool-status-trigger-fields.tsx:128 \u00B7 ui-v2/src/components/flows/data-table.tsx:186 \u00B7 ui-v2/src/components/flows/detail/flow-deployments-tab.tsx:230 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/work-pool-status-trigger-fields.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca13d0c72efe660fb45465061c1bc6c6c93c57b87659566cca46a974197d2759"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): ui-v2/src/components/dashboard/task-runs-card/task-runs-history-filter.ts:22 \u00B7 ui-v2/src/components/flows/detail/flow-stats-summary/query-filters.ts:169 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/task-runs-card/task-runs-history-filter.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2621ff9c207ae5849ffcdc897c7bdf3689c0f70d31921e7450558fbb7f128e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): ui-v2/src/components/events/events-timeline/utilities.ts:24 \u00B7 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx:36 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/events-timeline/utilities.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"11286ffb4a4b215f36f96097154807d61bf9c5328341c697b33986bb8983b81d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7 locations): ui-v2/src/components/ui/accordion.tsx:2 \u00B7 ui-v2/src/components/ui/dialog.tsx:2 \u00B7 ui-v2/src/components/ui/dropdown-menu.tsx:2 \u00B7 ui-v2/src/components/ui/hover-card.tsx:1 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 7 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/accordion.tsx"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c3b94daa6b7491a00279075430c836467dc7d3d3a8501f10de323a7b6efdb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8 locations): ui-v2/src/components/ui/alert-dialog.tsx:5 \u00B7 ui-v2/src/components/ui/collapsible.tsx:2 \u00B7 ui-v2/src/components/ui/dialog.tsx:5 \u00B7 ui-v2/src/components/ui/dropdown-menu.tsx:5 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 8 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/alert-dialog.tsx"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"415fe36d83da94fb20c37b3c4fac2601f8e986ac5d851b0f9dac286a49acf7df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): ui-v2/src/components/ui/timezone-select/timezone-select.tsx:101 \u00B7 ui-v2/src/components/ui/timezone-select/timezone-select.tsx:109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/timezone-select/timezone-select.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ce3a691c6cedb0d071234898935ed21fa2706f4ab3f866836cfd5551dec1a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): ui-v2/src/components/work-pools/workers-table/workers-table.tsx:71 \u00B7 ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx:73 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/workers-table/workers-table.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"026736638b0cefada1bddad935171d1145689b013dd2e0f1309178a7d941a653"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): ui-v2/src/graphs/factories/guides.ts:22 \u00B7 ui-v2/src/graphs/factories/playhead.ts:13 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/guides.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bfc358eff767cc4d041ae9276001ee89ab574a29ecb1fd025fcc0a5b54eb92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): ui-v2/src/graphs/factories/nodes.ts:300 \u00B7 ui-v2/src/graphs/factories/nodes.ts:395 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/nodes.ts"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e528db896aae35f3aa2ee7a61e0ad29d23cdcbb41b1f80e62b6ecb01a01c109"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): ui-v2/src/graphs/objects/flowRunStates.ts:4 \u00B7 ui-v2/src/graphs/objects/playhead.ts:2 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/flowRunStates.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec34e97aeb2902fa009a272bf4cb9ff6b0d64de14c99e79c210932b6b0d72fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): ui-v2/src/routes/flows/index.tsx:231 \u00B7 ui-v2/src/routes/variables/index.tsx:179 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/index.tsx"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba142a539832abdbb86e04509ff557bc600e26a660ee1b483be79a85151004f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): ui-v2/src/api/global-concurrency-limits/global-concurrency-limits.ts:10 \u00B7 ui-v2/src/api/task-run-concurrency-limits/task-run-concurrency-limits.ts:10 \u00B7 ui-v2/src/api/variables/index.ts:10 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/global-concurrency-limits/global-concurrency-limits.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24dbec65995e42fb8278339476057b5f75a903933c3f2ab75fc3caf7e7ea766"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx:37 \u00B7 ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx:39 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"34252b82e8e57c797f0e3a77c4a958d268545ee176a2d3a4cffc81f6dfcf5492"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4 locations): ui-v2/src/components/automations/trigger-details/trigger-details-deployment-status.tsx:43 \u00B7 ui-v2/src/components/automations/trigger-details/trigger-details-flow-run-state.tsx:75 \u00B7 ui-v2/src/components/automations/trigger-details/trigger-details-flow-run-state.tsx:94 \u00B7 ui-v2/src/components/automations/trigger-details/trigger-details-work-queue-status.tsx:76 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-details-deployment-status.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75b4d55b80ee9aa96b502f2bcf290928394d9c3da6fecaba8a1fc843c501fca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): ui-v2/src/components/dashboard/marketing-banner/marketing-banner.tsx:20 \u00B7 ui-v2/src/components/ui/app-sidebar.tsx:48 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/marketing-banner/marketing-banner.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"23366ce27441456378e77ce16e770b6558524705124840d065550242254b4ef4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): ui-v2/src/components/flow-runs/flow-runs-scatter-plot/scatter-plot-utils.ts:86 \u00B7 ui-v2/src/components/flow-runs/flow-runs-scatter-plot/scatter-plot-utils.ts:97 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-scatter-plot/scatter-plot-utils.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc9a87fbad0fc4d90b8aa92bf8d45ea7363c8e6c54d6ffcdf9c1ee6ff32f8e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8 locations): ui-v2/src/api/flow-runs/index.ts:69 \u00B7 ui-v2/src/api/flows/index.ts:15 \u00B7 ui-v2/src/api/global-concurrency-limits/global-concurrency-limits.ts:13 \u00B7 ui-v2/src/api/logs/index.ts:9 \u00B7 \u002B4 more site(s) not listed \u2014 the 8 copies are spread across 8 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flow-runs/index.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d59ed48567aae5fab9c063b4ea0adf8f2e5841cbd2b4150633b7d5b70b54c3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): ui-v2/src/components/work-pools/poll-status/poll-status.tsx:19 \u00B7 ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx:39 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/poll-status/poll-status.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e7266c10e635d8e0b205e05f41a7d5c1ba5204fd39239f4d8bfcbe46ad9d98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): ui-v2/src/routes/dashboard.tsx:141 \u00B7 ui-v2/src/routes/events/index.tsx:23 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ad80e82cbbd90ba321345d5d452f7d460a67fd5376f7e6494efa84e7d37bbe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FlowRunHeader (cyclomatic 47, cognitive 40): FlowRunHeader has cyclomatic complexity 47 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"273ebc84b592ec4ebbd11e45a299c8edd05d229be39bab412d0b8c4b6bfcc0c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ActionDetailsType (cyclomatic 35, cognitive 35): ActionDetailsType has cyclomatic complexity 35 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/action-details/action-details.tsx"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33b39acf7660d30b719e111e899209ad1d21f9565387aac20dacb53fea3e96c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 26, cognitive 20): (anonymous) has cyclomatic complexity 26 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c44b4cc9b2740aab6f7d1c20f51824fc1ce59d0dccbcab6e8cf80dfea1e47fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function manualChunks (cyclomatic 26, cognitive 17): manualChunks has cyclomatic complexity 26 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/vite.config.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"571f2b20cde93d723b1cf99c3f1be2902386091e58f08f19f5aaded6cc78e90a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transformActionToFormValue (cyclomatic 26, cognitive 10): transformActionToFormValue has cyclomatic complexity 26 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/use-edit-automation.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a544005ba1ef0e329ed642368f852b2f7117d905ebcbc3f69b993423658739ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FlowRunsCard (cyclomatic 25, cognitive 23): FlowRunsCard has cyclomatic complexity 25 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-card/index.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"264f365ca8efb44ed1ca52642946a5f514708474fc5b3b7eef518b86cdef9910"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FlowRunGraph (cyclomatic 24, cognitive 16): FlowRunGraph has cyclomatic complexity 24 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph.tsx"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"592977cdbb0ef6485c7b63ecf08afc631f80cffc1ecc5275d3cabf0dd1991de9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TaskRunDetails (cyclomatic 23, cognitive 22): TaskRunDetails has cyclomatic complexity 23 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/task-runs/task-run-details/task-run-details.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"656be35b1e3555b9e38857244b95d95e19d5435e674b59dfef229e60d7284854"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FlowRunDialogBody (cyclomatic 22, cognitive 18): FlowRunDialogBody has cyclomatic complexity 22 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/flow-run-action/flow-run-action.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea1a427635975d4fb18997c3dc96240fd24eacb185e9cfe68c9ec374c0033dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 17): (anonymous) has cyclomatic complexity 21 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c82ab2edc5ffe979b9e36de7112727cac18df60c795a1a7cbc1c3435dc02f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SchemaFormInput (cyclomatic 20, cognitive 25): SchemaFormInput has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa354cbe410b70e38a9ad6253dce36fafd96a947418a61e8e42652b97c45c3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 18): (anonymous) has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3339196560cfef2da7aea4e0e7aadf289e435fabdd1c36987f3c0b438d0e748"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getResourceSets (cyclomatic 18, cognitive 18): getResourceSets has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/automations/use-get-automation-action-resources/use-get-automation-action-resources.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c2c4fc346e4cc97d0ff83da755edc6b75d2acaf8bdbb7f0e6406890159528a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getResourceRoute (cyclomatic 18, cognitive 12): getResourceRoute has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/event-resource-display/resource-routes.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"05af6b9ccdbd4831a44f8ca367d5beb95fc9e3131cfe11bc12652c4c2c053ff6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isSelected (cyclomatic 18, cognitive 9): isSelected has cyclomatic complexity 18 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/selection.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"899c3a9d3bdbd91bbbe987cba883b20071549a83a8fe1e5a3b44cec60de5a82e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getDateRangeFromSearch (cyclomatic 17, cognitive 13): getDateRangeFromSearch has cyclomatic complexity 17 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f800bd94e92f45bed286e9d5e7be3d856ac51135d5556ef66470619ad19cfc02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function secondsToApproximateString (cyclomatic 17, cognitive 9): secondsToApproximateString has cyclomatic complexity 17 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/utils/seconds.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c056893bd8cdb963f325089a9deef77274914bd3f37351275837faaf4dc77d77"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 12): (anonymous) has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d4c70b6895aea5b8b96e26130457f9b0c9a5e37b01623b49cfaafe4885a541"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 25): (anonymous) has cyclomatic complexity 15 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/hooks/use-animated-reorder.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd0501d79c55af1e109ccefc7876a856b2839745f7e2b317be4095e423f724a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FlowRunTooltip (cyclomatic 15, cognitive 13): FlowRunTooltip has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/flow-run-activity-bar-graph/index.tsx"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9378acc96cee3944117a19fc4d900a0387bd4a978d54b6cdcaca4384947980"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onSave (cyclomatic 14, cognitive 13): onSave has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-form/use-deployment-form.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec30a6df8ca3a921e7c787c766cf9c30b87914de851dd69d7e9e7b3816b9b5a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/events-resource-filter/use-resource-options.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc80730e0aaf1e7dad713013c457ca4fbee96634d932634cb9f9151fd243aa28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function coerceValueToProperty (cyclomatic 14, cognitive 12): coerceValueToProperty has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/utilities/convertValueToPrefectKind.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fcf690cb335aefa2799ccd7a51e3441bed129b53d6b53e8bc80e9ff0fbc895"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FlowRunAction (cyclomatic 13, cognitive 11): FlowRunAction has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/flow-run-action/flow-run-action.tsx"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4227316886436eb28aea741bee3fed77fb21a0b14bac3d2d3b57c690f1fe33"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function RichDateRangeSelector (cyclomatic 13, cognitive 11): RichDateRangeSelector has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"243cd17781f3d0695e94e5085d90c241a8bfde60951423ca6a67502c45fe214d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getVisibleBasePrefix (cyclomatic 12, cognitive 18): getVisibleBasePrefix has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/services/uiSettings.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50211b654ad31ce2f5bdf670f26899521709ba802b4abb60642b9cfdd6c1ada"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dateRangeValueToUrlState (cyclomatic 12, cognitive 14): dateRangeValueToUrlState has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/date-range-url-state.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"727b6cdaad379f170bc90a58343aac8e65cf76ce6c68a9361e1340fb995df4d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function WorkPoolFlowRunCompleteness (cyclomatic 12, cognitive 13): WorkPoolFlowRunCompleteness has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c9fc130378db3296cad12faddc44b7d6653c5d1e94a1df037b1e19583ed087"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setupCountQueries (cyclomatic 12, cognitive 11): setupCountQueries has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-card/index.test.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"478082fff28eed3d93bd8915e4c86bc1b6ced3aab3efc2e03dcca6f17b5a3de7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseResourceType (cyclomatic 12, cognitive 11): parseResourceType has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/event-resource-display/resource-types.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece14e0bb73cd1db8e2684e4fb2d28465918c33cc4d471b6c8b10618892a186a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FlowRoute (cyclomatic 12, cognitive 11): FlowRoute has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/flow.$id.tsx"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"756806b06529fa16ae1df6136fbd8894e1fc31cb0162851825589b2cd2506b6c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function EventsPage (cyclomatic 12, cognitive 10): EventsPage has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/events-page/events-page.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"717439d2411dfda940971fc5970765b73ed01b324ea5ca734d45d6f420ed969c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FlowRunTaskRuns (cyclomatic 12, cognitive 9): FlowRunTaskRuns has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-task-runs.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec729f26b7d45a894fd938b281e83f6be89ba7e85c9cc4666152fe8996c43a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 16): (anonymous) has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-scatter-plot/scatter-plot-utils.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df9ce7c0f129c6b3c71144c0fc1fc92591081747224f50639f84a574c149167"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function organizeFlowRunsWithGaps (cyclomatic 11, cognitive 14): organizeFlowRunsWithGaps has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/flow-run-activity-bar-graph/utils.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba3cc802e191f6fc4c523e8bba96df1b58fe216525426d93b4c46e41fc297b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function usePinnedFirstDeployments (cyclomatic 11, cognitive 10): usePinnedFirstDeployments has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/deployments/use-pinned-first-deployments/use-pinned-first-deployments.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c86504d10f4bcc86f28cb165263dffb3996efd68cdaa16e119b407475ec58a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ArtifactDataView (cyclomatic 11, cognitive 10): ArtifactDataView has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/artifacts/artifact/artifact-data-view.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8606dff43324efeb4cab381eb1fd22145047f17b126a091f9acd2cb06c7a3a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-parameters-table/deployment-parameters-table.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"35cfe2fbd01aac3af6e691398bee3262b1e40ed199bf05446343bf996b60e4f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FormattedDate (cyclomatic 11, cognitive 10): FormattedDate has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/formatted-date/formatted-date.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a15e884f00e51fca70f43f4f4ae68923216c6c954516d46163b712e760fd968"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 11, cognitive 10): render has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/nodeFlowRunState.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f8ecf4b8e497fdedeee7c85f11a287ab100534a51d7c136d79474352aedbc7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/index.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d4ac762c5d522bf7637a8600349718bf838e7dc370521dc7df84805c9ab94f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getFlowRunStateRelatedResource (cyclomatic 11, cognitive 9): getFlowRunStateRelatedResource has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-utils.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2a8a031f1c7db6b48fb6e8d3a8e8cc06b2b3b8fb93a9844906af304feb0677"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FlowRunCard (cyclomatic 11, cognitive 9): FlowRunCard has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-card/flow-run-card.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f934f98d2d20738f097e9efc6c326fd27a0f5cd62c4df1f338f52b16e680f47f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SavedFiltersMenu (cyclomatic 11, cognitive 9): SavedFiltersMenu has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/saved-filters-menu.tsx"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7592502c4c3845e61f55b921cdd1c11e49702d2e791c40b06b156ebfa5dc6bc4"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/mocks/create-fake-block-schema.ts: 8921 lines of code: ui-v2/src/mocks/create-fake-block-schema.ts has 8921 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/mocks/create-fake-block-schema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a359c8224fe3b12d003d1d37b13d63414bbf30ab7ff938c3bc7436501b9a986"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/routes/dashboard.tsx: 1094 lines of code: ui-v2/src/routes/dashboard.tsx has 1094 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbfd8febbc6993803a53ee4e792c1add27153ef44e49169acaf64d484385d95"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/routeTree.gen.ts: 911 lines of code: ui-v2/src/routeTree.gen.ts has 911 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routeTree.gen.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12bc0c8121e18cdb83df9e822e72f5b4372175198a1226e9ed5acd835afc4ae"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/mocks/create-fake-block-type.ts: 908 lines of code: ui-v2/src/mocks/create-fake-block-type.ts has 908 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/mocks/create-fake-block-type.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f66e7121eabde8fcd662428ed449330001488b758c16ee31e425eb3152ae670"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx: 841 lines of code: ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx has 841 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-select/rich-date-range-selector.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"357e85911f6d587e4dd7c077d59f30c086cf76a2874b3f4b242c782b25385251"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/routes/runs/index.tsx: 796 lines of code: ui-v2/src/routes/runs/index.tsx has 796 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/runs/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9332945b46553d79f267a4d059fed043a82d52ae904aa905179bd8f2dfc3702"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/components/ui/sidebar/sidebar.tsx: 738 lines of code: ui-v2/src/components/ui/sidebar/sidebar.tsx has 738 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/sidebar/sidebar.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33416eb5ebd3ad05cea76c1228df5958e4e6b8917a6c5f1f3ae324b8ad7e76b0"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/components/schemas/stories/properties.stories.tsx: 706 lines of code: ui-v2/src/components/schemas/stories/properties.stories.tsx has 706 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/stories/properties.stories.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"663772924b27a407dcfc40a7edda3b329edc69edf0bfc028160d1e61c07393d9"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx: 655 lines of code: ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx has 655 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/work-pools-card/work-pools-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cf9fabcbf13e7a90e883a94cecbb842af25d1c1b101e275c1bbd917d783c17"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/routes/flows/flow.$id.tsx: 606 lines of code: ui-v2/src/routes/flows/flow.$id.tsx has 606 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/flows/flow.$id.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd5676f8574287f7ed25506f85ecc72dc31dec70c6f9e4c36a7d3829b3607c9"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/components/ui/flow-run-activity-bar-graph/index.tsx: 597 lines of code: ui-v2/src/components/ui/flow-run-activity-bar-graph/index.tsx has 597 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/flow-run-activity-bar-graph/index.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6cb5723671863b7d80fde4f801abacc1d4156f021886ccb3acb0921f2271fc"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/api/flow-runs/index.ts: 571 lines of code: ui-v2/src/api/flow-runs/index.ts has 571 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/flow-runs/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ae7da9264e9d642d04b131d280b568e2390e7dfea41e632483425daa055642"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/components/runs/runs-page.tsx: 476 lines of code: ui-v2/src/components/runs/runs-page.tsx has 476 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/runs/runs-page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"709110f18529691eefd8fbb85de53baad9e41e3183177ff247ce72970995e9ea"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/api/deployments/index.ts: 464 lines of code: ui-v2/src/api/deployments/index.ts has 464 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/deployments/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6183a4bbf37638d51b23c8c481826f48bf3f4a7bbd30a1dc7e71601dbc65f7"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/components/automations/trigger-details/trigger-utils.ts: 464 lines of code: ui-v2/src/components/automations/trigger-details/trigger-utils.ts has 464 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99966d4470c457ca679ee77dcc464196e4b4e6b15e622c110e99858eb6896640"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx: 459 lines of code: ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx has 459 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/work-pools/work-pool.$workPoolName.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56a067ed06bcd6aabf6b4c68ed05ded2391d3645a9fab4e2cbb7c8f86a5c8ec"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/graphs/workers/layouts/nearestParentVertical.ts: 432 lines of code: ui-v2/src/graphs/workers/layouts/nearestParentVertical.ts has 432 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/workers/layouts/nearestParentVertical.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"845f09e0f5744752020a66f5967ca2b98312deb6e7dcffab5d487d27b59c9c2f"}},{"ruleId":"R3","level":"warning","message":{"text":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx: 405 lines of code: ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx has 405 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9ddbf904dbb5a88322aa5617a83e327a16a0745d1b27c5ae1e2e207cdf1aa4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/utils/spacing-utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ff31946370578728d2eac71610381b9acd41d87fcc2076d6ebd408a0e36074"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/priority-management/priority-editor-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63833ebe6465430833e509ab9b0c811f71ce8ae3e8d97aad9a12935db9803907"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/runs-columns.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"267eb80cb3c4259b04def06a8d87f581590a4e656e1b3aabcb12ed4139843e76"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-state-dialog/use-flow-run-state-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46b21b6a7d98741e8bb9a469d0dd3199976f4d8859de5d2a2581cf3e04a032f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/priority-management/use-bulk-update-priorities-mutation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aab12c6d4856f627def31b567984569673948fa8d0993766dc5bada6939177"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/table-count-header.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"debc5e165576b257735b31e5b2f6b87c4aae1943a19a426040eeaa264881f97c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/cells.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec59a72b9c67d04c0dec862a0ac95f2fdcc2a2dabd409d742ea87b6677b71731"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-display/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde2c098f0fba1e88dfb8da53669ae63f6d357aa50700ebe987e1a6a4c50d95a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42262960dfa9f31bd84a56713cc4fe147c98855711520c6b58b935dc2d337263"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/compositions/useToast.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3887235404b87e344d4ae2037b3c43ae06228e8415d70ef698ad1d6b91c94b50"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/utilities/units.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d6667be86571515226a15d0fed11060be91e391f4e3cc0e94d94cac4c872f3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-state-dialog/flow-run-state-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"176013ebbc76beb8a83aef82e9ec5a54ad1bbe84f9532effaee010892f0f1fcc"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/App.vue"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb1e13834fcd8af84f288c8171ed405808d4a9858ba4d09b7315835f178f250"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/utilities/promises.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af6e1d21aea00f5f5d3a58c84dca235aa606be200880fc21def4eeca03df871"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/utilities/testing.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2d9441be11fdab2d3453f22d5d2f17b3f53b2248cfa799fd7e4c7749fa6108"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-details-page/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1339c86ecee3abfc26321746b7582e9724b6e19cf0333469a340cb625d65bf"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/flow-runs-filters.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c762f214513ebff0b0f4c08c8d78a7555a18d52ef34136ad1d3be6ccf0c5d002"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-card/components/constants.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76f41b89eca713dd8ff6d9fe8faab7530f340f3d2f79331872237fe5bed391a"}},{"ruleId":"R6","level":"warning","message":{"text":"This package\u0027s lint script runs in no CI job: The package in \u0060ui\u0060 declares the lint script \u0060lint\u0060 (\u0060eslint src --ext .js,.ts,.vue\u0060), but no step of this repository\u0027s CI runs it, by name, through another script, a Makefile target or a workspace runner, and no CI step runs the linter over the package itself. The rules it sets are enforced nowhere a pull request can fail. Run it in CI: a step that runs \u0060npm run lint\u0060 in \u0060ui\u0060 (or the workspace\u0027s task runner)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/package.json"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f90f670b8c609527f9ab2eb5409c24755dc8d7a1d8bb543ab455b6092e6b021"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~451 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/utils/spacing-utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4fed766754799c5e4ff28ad6410df81d16d388045b75bd50007afce70347b4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~130 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (ui-v2/src/components/work-pools/priority-management/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/priority-management/priority-editor-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66088570d81d96d6d72535f6e8f1fe0414b1af24c26e651517d8aaf217097cd1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~75 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/runs-columns.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5109843836046ec9a35f98cd9a7f0a307eef850e98b62fbdcfbb1827065380b4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~61 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (ui-v2/src/components/flow-runs/flow-run-state-dialog/flow-run-state-dialog.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-state-dialog/use-flow-run-state-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"249280f4a05892bf462ef40b8e5dca9576e7e361e6d7f1cbcd72f135f128a252"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~51 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (ui-v2/src/components/work-pools/priority-management/priority-editor-dialog.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/priority-management/use-bulk-update-priorities-mutation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fb53308ddb9e8b8981e264d98011157dceebc9b374a6d1803f306b15f4c94b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~39 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/table-count-header.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7640755c311e688f89b9894cce394d13449c84d2658f228b865997c62d2beac5"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~37 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (ui-v2/src/components/flows/detail/runs-columns.tsx) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flows/detail/cells.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d50ccb1cdb084f89b2b267423425acd462e5a7a8163b06bafa37f4d7e9ed943"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~18 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (ui/src/compositions/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/compositions/useToast.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"119b0093eb40dea38aca8e116d490c2e5f72980ca14fd96e10b5e933187bb210"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~17 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/utilities/units.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bd690a0b7a356a1d2234f2e2b6aefe30ff65931cb4c19b88e3253daa373ed1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~13 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-state-dialog/flow-run-state-dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddd4266634460dc682c75a1aa433c5d3a0d63bcf63e7d5de65e36ff9b8e6545"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~3 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/utilities/promises.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"794dd621b1e24526482221ff13299808c806b78d12fa929e8c35f4ec2ed6e19c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/utilities/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"257dc11775a083fc607e2e00d78f4ac68a03d3a48be6c3a40106445d023e54a8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/date-range-picker/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58743a7efa6441f3a69ed2c4a77606e6ee5d566ab1ce0a3cb15e47f80f2e550d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/poll-status/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"febde958b53abc71bb68e7db60ebe64d856ac860f5eee439d34bc6ca96909049"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/utilities/testing.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4caf2b2129ef54f0a10387f20f781286997cb12f30b8253a20f1af13ed9bfcf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/collections/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8b729ec4cc2e54f1adfaf4c195cd72268f42e98461934b14673ffde40c9bf8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/auth/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c4ca7558539655a69e8639d5f0ba6fc7a910f53af82433c3907839a727674a"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-delete-dialog/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09930e78a0b893fd44b39f24dae643de825f0dd346c4e8423abc63a27426ba0"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-create-dialog/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf20a315ac3710193697d1dba8a025c9dddaa35471b685df3f9975e020005d6"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/blocks-catalog-page/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a598062d7d3194e3d978087ec061687ac7b87c048f3c76c5e15ad74f920b2565"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/deployments/deployment-schedules/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a101bc435106002e451acbce3516a1ae11ca4920fa4658df37f59e37ddd35496"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/types/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"631e0fe9e8bba8521928d425272c264191abefd23393fc7775f93883a262550b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/task-runs/task-run-details/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90f6eb04c9e9be0cc3a0d76a14fbef225b2c572afc7e90ca705495df0c23efd"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/priority-management/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f958564a9ac53875d735cb24c47c1aa14744ad8962a8a22dd4c6c81a679dbe"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/compositions/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be03473817b24161945720dac96a0fcdf240e15e13a1523f2a915d769148711"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~0 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/blocks/block-document-details-page/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77de251f55f9472fac7339bdd1c4081563aac522db3f680d64c90dc34bb7ae27"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~0 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/flow-runs-filters.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5594f90a9dfc026627239f67d0702e2c179127b0ba8c40670169562daf91e5ee"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~0 LoC): no import path from any entry point (29 application, 20 tooling, 679 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-card/components/constants.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64921212a829c27a8a6f254b4d6c3da211a52e1a66900359be8e6902ec4cb1c5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027HistoryResponseState\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/task-runs/index.ts"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac9841cab2f5387d8c84c27ad377f1bb0461644aa3518331cbe18efcd83893e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TriggerPosture\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/automation-schema.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b373b913a47dc4239b4af3fafb2685997f1174584c1d7e177019a32c335d0bb8"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ActionsSchema\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/automation-schema.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"064b72b1e68bf76ea1e3dbbed0a19ac603742d5dd192f571be0b911979081d1b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isPrefectKindValueJinja\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/types/prefect-kind-value.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04c55bffedeb6969d10397891bbf18133eccf8e4f92dfdda4b6f6968c76ff25"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isPrefectKindValueWorkspaceVariable\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/types/prefect-kind-value.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe90c158737d58f5e067fa876f8ecd87f7fba12f6274419b83eb6f37222bcbe"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027workPoolQueuesTableColumns\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queues-table/components/work-pool-queues-table-columns.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1d0269201f77a0b2d5b4082c803e4a03ffba8ffad3227c3071bdc0a4980211"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027DEFAULT_HORIZONTAL_SCALE\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in ui-v2/src/graphs/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in ui-v2/src/graphs/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/consts.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f531ecedde5dd1a96f5216875d8ad3229ba8c6d99f31b0b36ee86d2de585727b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isArtifactClusterFactory\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/artifactCluster.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec6f9a82718f26ed0352bb5878d5f975794b8eea4b2caefbf49e6dd2d2e1226"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027FlowRunArtifactFactory\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunArtifact.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5756df17e4c944a8fa419fac2b92766ca1f44617113b95c0a0e11533e7adec"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027FlowRunEventFactory\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunEvent.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"44789a6d7b8b4547fbc75dbe60423d46a7d46b2b0e5e62507278b0725b2000d4"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027NodeFlowRunArtifactFactory\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/nodeFlowRunArtifact.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"50bf15a537f6ad2279901bb6c25367b4a992a75dbaeed9fbfad2403cc3c3306d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027NodeFlowRunEventFactory\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/nodeFlowRunEvent.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf8d02d744d1842eefd0d2a460c9dddbe9f0da0c6f74dc9d83a1135b0ecad16"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027NodesContainer\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/nodes.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f26fc27676a46162a88da924ebf098dcda286f80dbdd2f6446935f9ab988d2"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027Offsets\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/offsets.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8aa7b8000c59432e5629ca2cf084302cfe0d2b3ed7bffa80c4aa8474fa6bac"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027RunGraphProps\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in ui-v2/src/graphs/models/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in ui-v2/src/graphs/models/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/models/RunGraph.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f8bcf89f76d154131f58767bd4c7bb43d4ef5f3c98f09d88b18f946d187487"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isRunGraphNodeType\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in ui-v2/src/graphs/models/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in ui-v2/src/graphs/models/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/models/RunGraph.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1ac2ebe44e10f53b361c6e9b1ed484198330b88963472659f180b04e4f7de0"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027waitForToggleCull\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/culling.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"df74256afd36353a955e7317d59231496eee89f5a2f7502377e67b47dd26458b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getSelected\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in ui-v2/src/graphs/objects/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in ui-v2/src/graphs/objects/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/selection.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2163677c7e514b004d9a6ecc9da1ca2b1b9f2ed8ef2bb3eaf74d9e55d62c93"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027setHorizontalMode\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in ui-v2/src/graphs/objects/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in ui-v2/src/graphs/objects/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/settings.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2cf144f0adade0bd528b5d7a44bee4be7e4b300cc0eee79e26cfaab90cfa65"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027setVerticalMode\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in ui-v2/src/graphs/objects/index.ts, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in ui-v2/src/graphs/objects/index.ts in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/settings.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f7640ce78327f920a890226152b16e9e81eba9328f99b13a12b0b37be4b7e5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isNamedRoute\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/router/routes.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef00dcad60188b7d65853c75fee64885207175b8bb979268fba395b43c45568"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027VITE_PREFECT_CANARY\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/utilities/meta.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef661c0517180d176397449f529b401a4ea2ab505a5aa3c3af34d7aa1d703c77"}},{"ruleId":"R7","level":"note","message":{"text":"Write-only private field \u0027refreshTimeout\u0027: This private field is assigned but never read: every reference in its class is a plain assignment, no string key or test reads it by name, and the instance never escapes as a whole (so nothing serialises or destructures it). The value it holds is dead state \u2014 read it where it was meant to take effect, or remove the field and its assignments."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/services/csrfTokenApi.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8dcaec70f17144f4c9b6dd19871cc588c5053d2f651fae2d465425475769d8"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027d3-scale\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/flow-run-activity-bar-graph/index.tsx"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba79344dc1cfa1b7085993ff4f1addb826ebcff028e0d89d8533630262cd79f"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027aws-cdk\u0027: Declared in src/integrations/prefect-aws/infra/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/infra/package.json"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda11fa11f9a615b86635177bac37a2119420e03aa95bea3658c924a99f777d6"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@fontsource-variable/inter\u0027: Declared in ui-v2/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/package.json"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8593cefe5d0d2297a9f3ad7769f143559cc3e7c8bdb982bdc7fde3c0688605ba"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@radix-ui/react-avatar\u0027: Declared in ui-v2/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/package.json"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"65538fcacbeb11d49d7766704df9c3308e13b48bf59331a59780ce333bcf77d2"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@radix-ui/react-toast\u0027: Declared in ui-v2/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/package.json"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfe03565ebee963226c1b03c94cfc103db8840e1bb98389a9bbc7bdbd53fe92"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027tailwindcss-animate\u0027: Declared in ui-v2/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/package.json"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3835b6211e66bfe3bd2e089968b109d30037c02c73600a3f9056628773260b"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): ui-v2/src/components/schemas/schema-form-input.tsx \u2192 ui-v2/src/components/schemas/schema-form-input-all-of.tsx \u2192 ui-v2/src/components/schemas/schema-form-input.tsx (one verified cycle inside a mutually-dependent group of 13 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/schema-form-input.tsx"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"448a6ac33b53e0b3714706c4cda3c5b8a0771482d52b775cbb7868fab8370512"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): ui-v2/src/components/events/event-resource-display/event-resource-display.tsx \u2192 ui-v2/src/components/events/event-resource-display/resolved-resource-display.tsx \u2192 ui-v2/src/components/events/event-resource-display/resource-displays.tsx \u2192 ui-v2/src/components/events/event-resource-display/event-resource-display.tsx"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/events/event-resource-display/event-resource-display.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9a4bfb6233d4d685df2ff9237901763e8b076eb0db7f98fe1515e9334fac9a"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): ui-v2/src/graphs/objects/culling.ts \u2192 ui-v2/src/graphs/objects/viewport.ts \u2192 ui-v2/src/graphs/objects/culling.ts (one verified cycle inside a mutually-dependent group of 42 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/objects/culling.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"207ce011fe4d19796cd1340ed055757ba5b448a45b9f77548cabcd885ed39a00"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): ui-v2/src/graphs/models/index.ts \u2192 ui-v2/src/graphs/models/selection.ts \u2192 ui-v2/src/graphs/models/index.ts"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/models/index.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"416f65ede075893b45a9934d93e49a6a652a1ae9642f8566e54902116f363ac6"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): ui/src/components/ContextSidebar.vue \u2192 ui/src/router/index.ts \u2192 ui/src/pages/AppRouterView.vue \u2192 ui/src/components/ContextSidebar.vue (one verified cycle inside a mutually-dependent group of 12 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/components/ContextSidebar.vue"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2a763f81618298c3fd7005cd8fe64dc7256e1a8c318baf2034bbcd6b371854"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!debouncedValue || debouncedValue.trim() === \u0022\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/automations/automations-wizard/actions-step/call-webhook-fields.tsx, ui-v2/src/components/automations/automations-wizard/actions-step/send-notification-fields.tsx. 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":"ui-v2/src/components/automations/automations-wizard/actions-step/call-webhook-fields.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd682f9c900b6b8efc969c89242fc868aca2120cf5bd8edb52e4a6307570d04"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!deferredSearch || deployment.name.toLowerCase().includes(deferredSearch.toLowerCase())\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx, ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/deployment-filter.tsx. 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":"ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ae633b4133efa897928d910fb48355e18b6eae217d420a0cab778fcc758fae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!deferredSearch || flow.name.toLowerCase().includes(deferredSearch.toLowerCase())\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/flow-filter.tsx, ui-v2/src/components/flows/flow-multi-select/flow-multi-select.tsx. 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":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/flow-filter.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1985ad3472c050497c8e1f206346734305f008ca9551634471122074424d363"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!deferredSearch || workPool.name.toLowerCase().includes(deferredSearch.toLowerCase())\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/work-pool-filter.tsx, ui-v2/src/components/work-pools/work-pool-multi-select/work-pool-multi-select.tsx. 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":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/work-pool-filter.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"816676d3945294da27020532d8d1b3a66784ff23e295880b14f011139f783a61"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isAllButScheduled \u0026\u0026 selectedFilters.has(filterKey)\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/state-filter.tsx, ui-v2/src/components/task-runs/task-run-state-filter.tsx. 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":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/state-filter.tsx"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"7165640604ec55111fca259e5426129d49f8a4ad8f81f7437560990fd5f1e185"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!measureEl || containerWidth === 0 || names.length === 0\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx, ui-v2/src/components/automations/automations-wizard/trigger-step/event-resource-combobox/event-resource-combobox.tsx. 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":"ui-v2/src/components/automations/automations-wizard/trigger-step/automation-deployment-combobox/index.tsx"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a34b41910499237fa0a196013f5dbd45624879867785004944e4967ac30d24"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!paginatedData || totalCount === undefined\u0060 appears character-identically in 4 files \u2014 ui-v2/src/components/work-pools/work-pool-deployments-tab/work-pool-deployments-tab.tsx, ui-v2/src/components/work-pools/work-pool-flow-runs-tab/work-pool-flow-runs-tab.tsx, ui-v2/src/components/work-pools/work-pool-queue-runs-tab/work-pool-queue-runs-tab.tsx, ui-v2/src/components/work-pools/work-pool-queue-upcoming-runs-tab/work-pool-queue-upcoming-runs-tab.tsx. 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":"ui-v2/src/components/work-pools/work-pool-deployments-tab/work-pool-deployments-tab.tsx"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db198fe70f770d2957cd64a27f394a594bcb77523f5368f5cffe2777a94bd28"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022results\u0022 in props \u0026\u0026 \u0022setSelectedRows\u0022 in props \u0026\u0026 \u0022selectedRows\u0022 in props\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-row-count.tsx, ui-v2/src/components/task-runs/task-runs-list/task-runs-row-count.tsx. 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":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-row-count.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cb3bd6af7b89bb30341794993afcf1f7e539241a55b348632e07a8835880c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060createPending || updatePending || form.formState.isSubmitting\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx, ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx. 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":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc94043daf798923971a8b12e5b40ff407d1afeaa0431ccc389f25f7b0b3f84f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data.length \u003E 0 \u0026\u0026 filteredData.length === 0\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.tsx, ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-data-table/task-run-concurrency-limits-data-table.tsx. 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":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-data-table/global-concurrency-limits-data-table.tsx"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb262e11dbdf4644151d9c813772ad8c5c64a85de660bee2b3be149a0bac9f16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060deployment.entrypoint === \u0022\u0022 || deployment.entrypoint === null\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/deployments/deployment-description.tsx, ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-toggle.tsx. 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":"ui-v2/src/components/deployments/deployment-description.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f5a78ce40892dc59ec264869ebdf594f41a473fe483d49148e9111f9b8e465"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.message || \u0022Failed to change state\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx, ui-v2/src/components/task-runs/task-run-details-page/index.tsx. 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":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-header.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbd7dbeb234ecf4182d3a9ada1fbce9bb9e2592c94919979e394d5e4a06a7a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.message || \u0022Unknown error while creating deployment schedule.\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx, ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx. 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":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e46a10f62fa71844f04a64389456b4681bd1550197ab848188dd57a5ebc44e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.message || \u0022Unknown error while creating flow run.\u0022\u0060 appears character-identically in 3 files \u2014 ui-v2/src/components/deployments/create-flow-run-form/use-create-flow-run-form.tsx, ui-v2/src/components/deployments/quick-run-parameters-dialog/quick-run-parameters-dialog.tsx, ui-v2/src/components/deployments/use-quick-run.tsx. 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":"ui-v2/src/components/deployments/create-flow-run-form/use-create-flow-run-form.tsx"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cc7265c39d32265665f648bc2798974f3815c6f959a1e7fa721dea9b424555"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.message || \u0022Unknown error while creating variable.\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts, ui-v2/src/components/variables/variable-dialog/variable-dialog.tsx. 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":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ba980e2db44560be29413646f73f39cbb7e48ba82ca8fa046b10a0bfe04299"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.message || \u0022Unknown error while deleting automation.\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/automations/automations-delete-dialog/automations-delete-dialog.tsx, ui-v2/src/components/automations/use-delete-automation-confirmation-dialog.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-delete-dialog/automations-delete-dialog.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6a37cec227e94a96b16b01827ef9017d0c844ba2c5fea1d68a589547057fd6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.message || \u0022Unknown error while deleting concurrency limit.\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-delete-dialog/global-concurrency-limits-delete-dialog.tsx, ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-delete-dialog/task-run-concurrency-limits-delete-dialog.tsx. 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":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-delete-dialog/global-concurrency-limits-delete-dialog.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1733fe37c42eae071362925868b4f88069e0b7be6339be55cc1cc17fa281ae74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.message || \u0022Unknown error while resetting concurrency limit.\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-reset-dialog/global-concurrency-limits-reset-dialog.tsx, ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-reset-dialog/task-run-concurrency-limits-reset-dialog.tsx. 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":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-reset-dialog/global-concurrency-limits-reset-dialog.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd61d06baacff7039d6e8bd5cc4951c9d7ae071bada5e90604aa346dd25348e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.message || \u0022Unknown error while updating deployment schedule.\u0022\u0060 appears character-identically in 3 files \u2014 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx, ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx, ui-v2/src/components/deployments/deployment-schedules/schedule-toggle-switch.tsx. 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":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"481077586afb43412504a07e5622c42b8f2c854658485e798e583368b7f2d688"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error.message || \u0022Unknown error while updating limit.\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts, ui-v2/src/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-create-dialog/task-run-concurrency-limits-create-dialog.tsx. 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":"ui-v2/src/components/concurrency/global-concurrency-limits/global-concurrency-limits-create-or-edit-dialog/use-create-or-edit-global-concurrency-limit-form.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcb65e37cda931b6c85b55d5586d1afee6b6cdf047ee8d79261e95e00003442"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.resource[\u0022prefect.resource.id\u0022] || \u0022\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/events/events-timeline/events-timeline.tsx, ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx. 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":"ui-v2/src/components/events/events-timeline/events-timeline.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a498ae2ee4841ce700d6ab0553bacf64bea3cfbbf50b8e15a6882180e2999e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extractedId \u0026\u0026 resourceType !== \u0022unknown\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/events/event-resource-display/event-resource-display.tsx, ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-event-popover.tsx. 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":"ui-v2/src/components/events/event-resource-display/event-resource-display.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36e9a5affd723e2b40278307d2f96b9e2ae5c93adb164ea675d9350fd419e9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isEventTargetInput(event.target) || event.metaKey || event.ctrlKey\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-center-button.tsx, ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-fullscreen-button.tsx. 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":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-center-button.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1794fe3a66b9aa1c03c97459ee4034db1b6022fb922b5156df0b6a23d575921f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isLoadingBlockTypes || isLoadingBlockDocuments\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/automations/automations-wizard/actions-step/call-webhook-fields.tsx, ui-v2/src/components/automations/automations-wizard/actions-step/send-notification-fields.tsx. 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":"ui-v2/src/components/automations/automations-wizard/actions-step/call-webhook-fields.tsx"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b413358ca60ade8de5eee78ff6565316f0bd62def770b2695c7583950f9e6ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060layout.isTemporal() \u0026\u0026 !settings.disableArtifacts\u0060 appears character-identically in 2 files \u2014 ui-v2/src/graphs/factories/node.ts, ui-v2/src/graphs/objects/flowRunArtifacts.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/node.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ec3ca216f6577d5c619ecbd4fbc0bf665e3d38cb8fbd67d385dc8969e66edf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060layout.isTemporal() || layout.isLeftAligned()\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-settings.tsx, ui-v2/src/graphs/factories/nodeBar.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/flow-runs/flow-run-graph/flow-run-graph-settings.tsx"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"19caa38445472695288288b21a28876096a0f45845544ea6c2622cdeffcdb6fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060logs.pages.length === 1 \u0026\u0026 logs.pages[0].length === 0\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-logs.tsx, ui-v2/src/components/task-runs/task-run-logs/index.tsx. 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":"ui-v2/src/components/flow-runs/flow-run-details-page/flow-run-logs.tsx"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"521924063ebf75d522537be738961ee716b88ebf54861f6eed42b6166d3fe6e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalizedRelativePathname === \u0027/\u0027 \u0026\u0026 normalizedCurrentBaseUrl === \u0027/\u0027\u0060 appears character-identically in 2 files \u2014 ui/src/services/uiSettings.ts, ui/src/utilities/uiVersion.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/services/uiSettings.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2d28ed9078d1334180b244a1e8552dddc5f370488daf7c59499ebbba73491d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parameterOverrides \u0026\u0026 !(await parameterOverrides.validate())\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx, ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/interval-schedule-form.tsx. 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":"ui-v2/src/components/deployments/deployment-schedules/deployment-schedule-dialog/cron-schedule-form.tsx"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"675e1da74b91cdd5530eecfcad64f27cfc44334824e6a3e67a03e15b07032e85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060previousPosture === \u0022Proactive\u0022 \u0026\u0026 value === \u0022Reactive\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/automations/automations-wizard/trigger-step/custom-posture-select/index.tsx, ui-v2/src/components/automations/automations-wizard/trigger-step/posture-select.tsx. 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":"ui-v2/src/components/automations/automations-wizard/trigger-step/custom-posture-select/index.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"922f2cd595af7d3f5e4123eaeddde6e59fb4ad4e03ac5cf275ac13aede4f024a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060previousPosture === \u0022Reactive\u0022 \u0026\u0026 value === \u0022Proactive\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/automations/automations-wizard/trigger-step/custom-posture-select/index.tsx, ui-v2/src/components/automations/automations-wizard/trigger-step/posture-select.tsx. 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":"ui-v2/src/components/automations/automations-wizard/trigger-step/custom-posture-select/index.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"22910a484defb96af4e06febb28fc936a4df231db478aea8b03ef38922b9a0fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resource[\u0022prefect.resource.name\u0022] || resource[\u0022prefect.name\u0022] || resource[\u0022prefect-cloud.name\u0022] || null\u0060 appears character-identically in 5 files \u2014 ui-v2/src/components/events/event-details-page/event-details-display.tsx, ui-v2/src/components/events/event-resource-display/event-resource-display.tsx, ui-v2/src/components/events/event-resource-display/resource-routes.ts, ui-v2/src/components/events/events-timeline/events-timeline.tsx. 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":"ui-v2/src/components/events/event-details-page/event-details-display.tsx"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cda8b571f43ca5dfb8f3157d6eaf4b1ac39a82d17c70a6c70c703360bbe170"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060search.rangeType === \u0022range\u0022 \u0026\u0026 search.start \u0026\u0026 search.end\u0060 appears character-identically in 2 files \u2014 ui-v2/src/api/events/filters.ts, ui-v2/src/components/events/events-page/events-page.tsx. 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":"ui-v2/src/api/events/filters.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac372ab7ddf186dc154234bc6c68c8120627831b02d14e0e711a6c71e471a5c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selectedFilters.has(\u0022Scheduled\u0022) || flowRunStatesNoScheduleSet.size !== selectedFilters.size\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/state-filter.tsx, ui-v2/src/components/task-runs/task-run-state-filter.tsx. 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":"ui-v2/src/components/flow-runs/flow-runs-list/flow-runs-filters/state-filter.tsx"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b90cfeb2a2b44041acd9fa67f5580d5b3c0582980fda0ccf205c2eb3c1d2cc8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060serverError.type !== \u0022server-error\u0022 \u0026\u0026 serverError.type !== \u0022client-error\u0022\u0060 appears character-identically in 32 files \u2014 ui-v2/src/routes/artifacts/artifact.$id.tsx, ui-v2/src/routes/artifacts/index.tsx, ui-v2/src/routes/artifacts/key.$key.tsx, ui-v2/src/routes/automations/automation.$id.tsx. 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":"ui-v2/src/routes/artifacts/artifact.$id.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4af685e9581f2490bccfc7a25790ac2480b15dcba70a8eb977384f4c5dfa5e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060settings.disableArtifacts || !layout.isTemporal()\u0060 appears character-identically in 2 files \u2014 ui-v2/src/graphs/factories/node.ts, ui-v2/src/graphs/factories/runArtifacts.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/node.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57153f9fce75cdd7d53a8383eaa9d72f729dd6664383200961874be8a520858"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state.state_type === \u0022FAILED\u0022 || state.state_type === \u0022CRASHED\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/dashboard/task-runs-card/task-runs-trends.tsx, ui-v2/src/components/flows/detail/flow-stats-summary/cumulative-task-runs-card.tsx. 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":"ui-v2/src/components/dashboard/task-runs-card/task-runs-trends.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb67f88ee53eed153bd6be28755de49e4d87d7aeb48cc4aea1127ddcc1a8ff3f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state.type === \u0022RUNNING\u0022 \u0026\u0026 !data.end_time\u0060 appears character-identically in 2 files \u2014 ui-v2/src/graphs/factories/flowRunState.ts, ui-v2/src/graphs/factories/nodeFlowRunState.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/graphs/factories/flowRunState.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a108b51c08429bc4a1795070526d9ce1acb76c1d61dc271766373efd11a255"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status === \u0022READY\u0022 || status === \u0022NOT_READY\u0022\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/work-pools/work-pool-queue-status-icon/work-pool-queue-status-icon.tsx, ui-v2/src/components/work-pools/work-pool-status-icon/work-pool-status-icon.tsx. 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":"ui-v2/src/components/work-pools/work-pool-queue-status-icon/work-pool-queue-status-icon.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee511de42d00d356548c00cde51343d0c17ad45fadc850448d510c2d93c2ea49"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022object\u0022 \u0026\u0026 value !== null \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 4 files \u2014 ui-v2/src/components/automations/trigger-details/trigger-utils.ts, ui-v2/src/components/blocks/block-document-details-page/block-document-schema-properties.tsx, ui-v2/src/components/schemas/utilities/resolveBlockReferences.ts, ui-v2/src/components/schemas/utilities/toBlockReferenceRequest.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/trigger-details/trigger-utils.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8402a2730bc8c0498dcf404d871f574aa9e9171bd8726d3e002b996d32599a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 || value === undefined\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/schemas/schema-form-input-prefect-kind-json.tsx, ui-v2/src/components/schemas/schema-form-input-string-format-json.tsx. 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":"ui-v2/src/components/schemas/schema-form-input-prefect-kind-json.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"38df8451eb643c1363805ac42eabf69305ee15f8ad2763dfa751e451ad2dfa5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === \u0022CREATED_DESC\u0022 || value === \u0022UPDATED_DESC\u0022 || value === \u0022NAME_ASC\u0022 || value === \u0022NAME_DESC\u0022\u0060 appears character-identically in 3 files \u2014 ui-v2/src/components/deployments/data-table/index.tsx, ui-v2/src/components/flows/data-table.tsx, ui-v2/src/components/variables/data-table/data-table.tsx. 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":"ui-v2/src/components/deployments/data-table/index.tsx"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd97be47514397c3782df759024f5fd73ae6b0c284dc2ea3a5623879c31cb2d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060workPool.concurrency_limit !== null \u0026\u0026 workPool.concurrency_limit !== undefined\u0060 appears character-identically in 2 files \u2014 ui-v2/src/components/work-pools/work-pool-card/work-pool-card.tsx, ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx. 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":"ui-v2/src/components/work-pools/work-pool-card/work-pool-card.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dfcdddaa612bf9feade461730836c69234db476f92fb497d2173ff5e33326b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022status\u0022 in update_data and emit_status_change\u0060 appears character-identically in 2 files \u2014 src/prefect/server/models/work_queues.py, src/prefect/server/models/workers.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":"src/prefect/server/models/work_queues.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b82845044d172bb96d291d7788a1538b1b66ce1a8aaabaa9e872b2fc6159cc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022triggers\u0022 in value and \u0022require\u0022 in value\u0060 appears character-identically in 2 files \u2014 src/prefect/events/schemas/automations.py, src/prefect/events/schemas/deployment_triggers.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":"src/prefect/events/schemas/automations.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a00dd3cc6d7bd5b22e470cd444b45b0b77d0d9c3edbe249992a4ee3057d16b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022triggers\u0022 in value and \u0022require\u0022 not in value\u0060 appears character-identically in 2 files \u2014 src/prefect/events/schemas/automations.py, src/prefect/events/schemas/deployment_triggers.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":"src/prefect/events/schemas/automations.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"966563e0383ae92b4d42e13da06e9deac8ea3c84bc9fda3aba002825b4358b05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022within\u0022 in data and data[\u0022within\u0022] is None\u0060 appears character-identically in 2 files \u2014 src/prefect/events/schemas/automations.py, src/prefect/server/events/schemas/automations.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":"src/prefect/events/schemas/automations.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"615a8ca7112bcf8bd16fae44fd7462ec6084c270a1b067bac3e3d843e9fa2645"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_service_cleanup_queue is None or _service_cleanup_queue_storage != storage\u0060 appears character-identically in 2 files \u2014 src/prefect/server/services/cancellation_cleanup.py, src/prefect/server/services/cleanup_reconciler.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":"src/prefect/server/services/cancellation_cleanup.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd543ab50732e4b3e4e9281d61d5491d2a7395e9cc17b7e973950b38a72d4db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060api_version is None or api_version \u003E= Version(\u00220.8.4\u0022)\u0060 appears character-identically in 2 files \u2014 src/prefect/server/orchestration/core_policy.py, src/prefect/server/orchestration/global_policy.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":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e7326f44df35373748dae3a3a398d54f531a7e1d85d2e62d00508e421d1f3d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args is not None and isinstance(args, str)\u0060 appears character-identically in 2 files \u2014 src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py, src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.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":"src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"590afe2df1489ce76f8e57d52b3fcdbf677161e43379a2763a61a5196f0c1b84"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attempt \u003C _BUILD_MAX_RETRIES and _is_transient_build_error(str(e))\u0060 appears character-identically in 2 files \u2014 src/prefect/_internal/buildx.py, src/prefect/utilities/dockerutils.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":"src/prefect/_internal/buildx.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b10804c4c1a1db22678d687dcb85fd777bd107a94b9a30f2bf80bd1f80bf634"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060block_type_result is not None and old_block_schema_result is not None\u0060 appears character-identically in 2 files \u2014 src/prefect/server/database/_migrations/versions/postgresql/2022_07_06_152528_4cdc2ba709a4_migrates_block_schemas_with_new_secrets_.py, src/prefect/server/database/_migrations/versions/sqlite/2022_07_06_142824_e2dae764a603_migrates_block_schemas_with_new_secrets_.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":"src/prefect/server/database/_migrations/versions/postgresql/2022_07_06_152528_4cdc2ba709a4_migrates_block_schemas_with_new_secrets_.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac614b3c997e118843897fedf61455114266a7b9197c52a73b7919695d933fac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060context is None or context.flow_run is None\u0060 appears character-identically in 2 files \u2014 src/prefect/flow_runs.py, src/prefect/input/actions.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":"src/prefect/flow_runs.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"12657154f6373510a67bd6b5c8cfd7e54d89f59581d97fe2200e247f3e077791"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060deployment and deployment.concurrency_limit_id\u0060 appears character-identically in 2 files \u2014 src/prefect/server/models/flow_runs.py, src/prefect/server/orchestration/core_policy.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":"src/prefect/server/models/flow_runs.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e65651ef829344869b027c94cfb7434e52ad2bb23207057b7c0a5f44f7bdf48"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060deployment.work_pool_name and deployment.work_queue_name\u0060 appears character-identically in 2 files \u2014 src/prefect/server/api/deployments.py, src/prefect/server/models/deployments.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":"src/prefect/server/api/deployments.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ab2b6cc6bed18da331f866b30669544c454bae90e4a047efb5536afbf5edc2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.follows and event.follows != event.id\u0060 appears character-identically in 2 files \u2014 src/integrations/prefect-redis/prefect_redis/ordering.py, src/prefect/server/events/ordering/memory.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":"src/integrations/prefect-redis/prefect_redis/ordering.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"35012bfa68627e58fb5c73aa705a8d80fd403e8251e6456e4ea5b9577c5207f1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existing_message and not existing_message.endswith(\u0022 \u0022)\u0060 appears character-identically in 2 files \u2014 src/prefect/_internal/states.py, src/prefect/states.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":"src/prefect/_internal/states.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa79e1af862768743330435028e89b2c239ecf39ba6b469ddb989dab9a0f941"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field not in WORK_QUEUE_EVENT_FIELDS or field == \u0022status\u0022\u0060 appears character-identically in 2 files \u2014 src/prefect/server/models/work_queues.py, src/prefect/server/models/workers.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":"src/prefect/server/models/work_queues.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0a9c52679bfadfadd21defbae14e5f6fa8cf108525d2e380018878fe248af3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field.validation_alias and isinstance( field.validation_alias, AliasChoices )\u0060 appears character-identically in 3 files \u2014 src/prefect/settings/legacy.py, src/prefect/settings/models/root.py, src/prefect/settings/sources.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":"src/prefect/settings/legacy.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ece1a6d6ff29655df09f64fa3ec6ed4ff81baf530baaef24257ad79d4fc52c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060field_info.serialization_alias or field_info.alias\u0060 appears character-identically in 2 files \u2014 src/prefect/blocks/core.py, src/prefect/utilities/pydantic.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":"src/prefect/blocks/core.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93fe0e32a588192cfa9fe1fcdb12a164cc58e423aa7ef4b290a529f69baf2de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060first_line.startswith(f\u0022## {tag}:\u0022) or first_line.startswith(f\u0022# {tag}:\u0022)\u0060 appears character-identically in 2 files \u2014 scripts/backfill_release_notes.py, scripts/prepare_release_notes.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":"scripts/backfill_release_notes.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c4c09f78513c3c676eb707529a11cedea9461a7e27f4ca3062cf8213e08407"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060flow_filter or flow_run_filter or deployment_filter\u0060 appears character-identically in 2 files \u2014 src/prefect/server/models/artifacts.py, src/prefect/server/models/task_runs.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":"src/prefect/server/models/artifacts.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"6291fe84047221cd6925b2b45370862d7350e13594f5a24763c6ca2ddd8410c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060flow_run.state and flow_run.state.is_final()\u0060 appears character-identically in 2 files \u2014 src/prefect/flow_runs.py, src/prefect/futures.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":"src/prefect/flow_runs.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdaab6d0d31d65f5af8a3aa74f278317b6e5e01dfd20f96d25f36871a63b209"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060flow_run_context and flow_run_context.flow_run\u0060 appears character-identically in 2 files \u2014 src/prefect/task_engine.py, src/prefect/tasks.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":"src/prefect/task_engine.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac2bccddcf39c00399067d00c3a003b9f3d30202526bbaee3f7c442146935ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060full_refresh and command in self._FULL_REFRESH_COMMANDS\u0060 appears character-identically in 2 files \u2014 src/integrations/prefect-dbt/prefect_dbt/cloud/_executor.py, src/integrations/prefect-dbt/prefect_dbt/core/_executor.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":"src/integrations/prefect-dbt/prefect_dbt/cloud/_executor.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bafc01519cf6c045329950d559c9e99c5882ea8c154959de96e09dddac50e8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ignore_file and Path(ignore_file).exists()\u0060 appears character-identically in 3 files \u2014 src/integrations/prefect-aws/prefect_aws/deployments/steps.py, src/integrations/prefect-azure/prefect_azure/deployments/steps.py, src/integrations/prefect-gcp/prefect_gcp/deployments/steps.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":"src/integrations/prefect-aws/prefect_aws/deployments/steps.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9abaeadda59599a36b6ea958eea49f22e4f670e0c837fa20282516c99565a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060included_files is not None and str(local_file_path.relative_to(local_path)) not in included_files\u0060 appears character-identically in 5 files \u2014 src/integrations/prefect-aws/prefect_aws/deployments/steps.py, src/integrations/prefect-aws/prefect_aws/s3.py, src/integrations/prefect-azure/prefect_azure/blob_storage.py, src/integrations/prefect-azure/prefect_azure/deployments/steps.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":"src/integrations/prefect-aws/prefect_aws/deployments/steps.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbf312a225c75ef8623633a61d75641342814bcc099040bcb7d6a4b626652ae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inspect.isclass(field.annotation) and issubclass( field.annotation, PrefectBaseSettings )\u0060 appears character-identically in 3 files \u2014 src/prefect/settings/base.py, src/prefect/settings/legacy.py, src/prefect/settings/models/root.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":"src/prefect/settings/base.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"539cbd22999fbe854b1116fcd7c03f79740ebca93d5b84ed8e93f9d5c951f4ef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inspect.iscoroutinefunction( self.fn ) or inspect.isasyncgenfunction(self.fn)\u0060 appears character-identically in 2 files \u2014 src/prefect/flows.py, src/prefect/tasks.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":"src/prefect/flows.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e728b937d4686e2d010695bc6ea71e90b51a9901805a000c7e0e7437c86bcd8b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inspect.isgeneratorfunction( self.fn ) or inspect.isasyncgenfunction(self.fn)\u0060 appears character-identically in 2 files \u2014 src/prefect/flows.py, src/prefect/tasks.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":"src/prefect/flows.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c81c38b6901064dcd6e4cd0cac587f97eccd7ff5aa7399ebf81141a54e757d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(api_url, str) and api_url.startswith(PREFECT_CLOUD_API_URL.value())\u0060 appears character-identically in 2 files \u2014 src/prefect/events/clients.py, src/prefect/logging/clients.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":"src/prefect/events/clients.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d7f8622fec8c20cf0d80dd705f8e039c681619e5ebd899a10f070879dab4af"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(retval, State) and not retval.state_details.flow_run_id and not retval.state_details.task_run_id\u0060 appears character-identically in 2 files \u2014 src/prefect/_internal/states.py, src/prefect/states.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":"src/prefect/_internal/states.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"77da2e9e4fe132926d21bd540eff25d47eec31aa2055fadc1398e67b48ac93f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(retval, State) or is_state_iterable(retval)\u0060 appears character-identically in 2 files \u2014 src/prefect/_internal/states.py, src/prefect/states.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":"src/prefect/_internal/states.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d397eb65fd9924a6570c6c6cd7e81f46192affb2976a97677bb0ac6119d058f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key == readchar.key.ENTER or key == readchar.key.CR\u0060 appears character-identically in 2 files \u2014 src/prefect/cli/_cloud_utils.py, src/prefect/cli/_prompts.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":"src/prefect/cli/_cloud_utils.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53af7dff56ec185214c4b4826adc5ddb6691eaec26b9bc8dad19bbedfc38059"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key not in rename_keys and key not in extras\u0060 appears character-identically in 3 files \u2014 src/integrations/prefect-dbt/prefect_dbt/cli/configs/bigquery.py, src/integrations/prefect-dbt/prefect_dbt/cli/configs/postgres.py, src/integrations/prefect-dbt/prefect_dbt/cli/configs/snowflake.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":"src/integrations/prefect-dbt/prefect_dbt/cli/configs/bigquery.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8efaf5cc04799f0846b63b5a36405c740db4d05a2612fabb7281f9c67f6b34"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060last_polled is None or (now(\u0022UTC\u0022) - last_polled).total_seconds()\u0060 appears character-identically in 2 files \u2014 src/prefect/client/schemas/objects.py, src/prefect/server/schemas/core.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":"src/prefect/client/schemas/objects.py"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ce2056982f1d2175ab581a4703705d2d2adfcda67db3d5d01b27f5ce424602"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.strip() == \u0022\u0022 and filtered_lines and filtered_lines[-1] == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 scripts/backfill_release_notes.py, scripts/prepare_release_notes.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":"scripts/backfill_release_notes.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a12a00ec67fb615870ae6256aecc7f0a28713d9356967f5656c39aaa4b327c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line_stripped == f\u0022## {tag} - {subtitle}\u0022 or line_stripped == f\u0022## {tag} - : {subtitle}\u0022\u0060 appears character-identically in 2 files \u2014 scripts/backfill_release_notes.py, scripts/prepare_release_notes.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":"scripts/backfill_release_notes.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a3f9ae5d71da1ec569cf52026dca31489104401b2f6118b68a36ecb2b7b966"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line_stripped.startswith(f\u0022## {tag}:\u0022) or line_stripped.startswith( f\u0022# {tag}:\u0022 )\u0060 appears character-identically in 2 files \u2014 scripts/backfill_release_notes.py, scripts/prepare_release_notes.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":"scripts/backfill_release_notes.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdaa0243390443c62620a62ce738643c86506d309127467a01bf3470cce6773"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060local.fold and dateutil.tz.datetime_ambiguous(local)\u0060 appears character-identically in 2 files \u2014 src/prefect/client/schemas/schedules.py, src/prefect/server/schemas/schedules.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":"src/prefect/client/schemas/schedules.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e021a273516ebd50540c36dbe80f42474cc9b72f4688c0a5159aa831c0447d7d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name in signature.parameters and signature.parameters[name].kind in named\u0060 appears character-identically in 2 files \u2014 src/prefect/_internal/engine.py, src/prefect/runner/_workspace_runtime_bootstrap.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":"src/prefect/_internal/engine.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26698ad69f8743084e9868d8810fe69b91ba39924e913db93017622e9b9bb43"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not event.follows or event.follows == event.id\u0060 appears character-identically in 2 files \u2014 src/integrations/prefect-redis/prefect_redis/ordering.py, src/prefect/server/events/ordering/memory.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":"src/integrations/prefect-redis/prefect_redis/ordering.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f723c52ced667a31bd5a94f4bd133e69b89a29bd2cc9486076e513260b6f44"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not msg or (isinstance(msg, str) and not msg.strip())\u0060 appears character-identically in 3 files \u2014 src/integrations/prefect-dbt/prefect_dbt/core/_executor.py, src/integrations/prefect-dbt/prefect_dbt/core/_freshness.py, src/integrations/prefect-dbt/prefect_dbt/core/_manifest.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":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6da78de773f10bfd7b3535b0c3fae6e4534a9cb45d051e09cceabae5c760a87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self._is_started or self._client is None\u0060 appears character-identically in 2 files \u2014 src/prefect/flow_engine.py, src/prefect/task_engine.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":"src/prefect/flow_engine.py"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"45179c564dc72fa231974b8951f82a58637e800d63e0c146ce5f1baa6caa8f2e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not state_type_str and \u0022validated_state\u0022 in event.payload\u0060 appears character-identically in 2 files \u2014 src/prefect/cli/flow_runs_watching.py, src/prefect/events/subscribers.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":"src/prefect/cli/flow_runs_watching.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0bd12505030ed02d50412d5327cca7d69b75d7b32edbe890a6e4b6f6d89ab4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not work_pool.is_push_pool and not work_pool.is_managed_pool and not active_workers\u0060 appears character-identically in 3 files \u2014 src/prefect/cli/deploy/_core.py, src/prefect/deployments/runner.py, src/prefect/flows.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":"src/prefect/cli/deploy/_core.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c51e51cfebfd9d818af25b2947107302649d03fe9f2a29fc8e455519baa7ea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060on_completion or copy(self.on_completion_hooks)\u0060 appears character-identically in 2 files \u2014 src/prefect/flows.py, src/prefect/tasks.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":"src/prefect/flows.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2690de614d7a4d7ef720d544cb28e885118b37afec127dad76bfef93ac828e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060on_failure or copy(self.on_failure_hooks)\u0060 appears character-identically in 2 files \u2014 src/prefect/flows.py, src/prefect/tasks.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":"src/prefect/flows.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"3654cfc074186f917e6c0e5b27cfeb670c0a1594b943e0911d6ae07056b079e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060on_running or copy(self.on_running_hooks)\u0060 appears character-identically in 2 files \u2014 src/prefect/flows.py, src/prefect/tasks.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":"src/prefect/flows.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb24d979975b3db483d1e4745378ac2cd8c6740b0a5a33f0d964f690860c0d61"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060orchestration_result.state and orchestration_result.state.timestamp \u003E= right_now\u0060 appears character-identically in 2 files \u2014 src/prefect/server/api/flow_runs.py, src/prefect/server/api/task_runs.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":"src/prefect/server/api/flow_runs.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d9fda48e52fee14e1374adbe71762ff6d78cfa25e743b719f3e84339f6bb6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pause_expiration_time is not None and timeout_seconds is not None\u0060 appears character-identically in 2 files \u2014 src/prefect/server/schemas/states.py, src/prefect/states.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":"src/prefect/server/schemas/states.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c4b1f6c94ed6b42f4047f931f48119916a3bded45d5f94640eb47647457665"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060python_version or python_version_minor()\u0060 appears character-identically in 2 files \u2014 src/prefect/cli/dev.py, src/prefect/utilities/dockerutils.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":"src/prefect/cli/dev.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b1f611668b20aeb407b4fb799ebeb82c926f38df48564a3e5183ab200233e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result_storage and not isinstance(result_storage, (str, Path))\u0060 appears character-identically in 2 files \u2014 src/prefect/flows.py, src/prefect/tasks.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":"src/prefect/flows.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a73fc28ffb78e5151db1e27cfed30108fb836a6c0ffa9ee38be6d7e9016dd16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.bucket_folder != \u0022\u0022 and bucket_path.startswith(self.bucket_folder)\u0060 appears character-identically in 2 files \u2014 src/integrations/prefect-aws/prefect_aws/s3.py, src/integrations/prefect-gcp/prefect_gcp/cloud_storage.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":"src/integrations/prefect-aws/prefect_aws/s3.py"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda0ae8a71e8c8ddc3a5577bebafdef3f3b8459f3d0ba13c52bd68490bea4637"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.maximum_late_runs is not None and late_runs_count \u003E self.maximum_late_runs\u0060 appears character-identically in 2 files \u2014 src/prefect/client/schemas/objects.py, src/prefect/server/schemas/core.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":"src/prefect/client/schemas/objects.py"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac51079dd95df2e7043fdf33697e07dfb1fe305f0806a3fa0c077d94cde9746"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060skip_section and line_stripped.startswith(\u0022##\u0022)\u0060 appears character-identically in 2 files \u2014 scripts/backfill_release_notes.py, scripts/prepare_release_notes.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":"scripts/backfill_release_notes.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53f5b17862c766772976e93a08824c2fbceb124cfd7043ed192f230d129445c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060skip_section and line_stripped.startswith(\u0022**Full Changelog**\u0022)\u0060 appears character-identically in 2 files \u2014 scripts/backfill_release_notes.py, scripts/prepare_release_notes.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":"scripts/backfill_release_notes.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e700f2bf640574bca3069ce7284028c491ecba4e813cd60def569eb8999fb9a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status.page is not None and status.pages is not None and status.page \u003C status.pages\u0060 appears character-identically in 2 files \u2014 src/prefect/cli/work_pool.py, src/prefect/cli/work_queue.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":"src/prefect/cli/work_pool.py"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e53e8440f3791e662da08b04476335bd12e980b988cb3b58c6f9853607f428"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sys.argv[0].endswith(\u0022/prefect\u0022) and len(sys.argv) \u003E= 3 and sys.argv[1] == \u0022--profile\u0022\u0060 appears character-identically in 2 files \u2014 src/prefect/context.py, src/prefect/settings/sources.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":"src/prefect/context.py"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbd2be67448cf151e264c1f1143ffc61c4cf7bbe0c935251742c511cd71a736"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tls_config.cert_file and tls_config.key_file\u0060 appears character-identically in 2 files \u2014 src/prefect/server/database/configurations.py, src/prefect/server/utilities/postgres_listener.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":"src/prefect/server/database/configurations.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"212f8a586d0729a5cd889d9a83b3636bfe9ee3ab77ef3e0e357401a8bd349411"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060within is not None and not isinstance(within, timedelta)\u0060 appears character-identically in 2 files \u2014 src/prefect/events/schemas/automations.py, src/prefect/server/events/schemas/automations.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":"src/prefect/events/schemas/automations.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b2aa69b97709b7c74b2d7bb4afd8eee2d3daf8db0a822b9fb0108399ccbffe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060work_pool.storage_configuration.bundle_upload_step is None or work_pool.storage_configuration.bundle_execution_step is None\u0060 appears character-identically in 2 files \u2014 src/prefect/flows.py, src/prefect/workers/base.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":"src/prefect/flows.py"},"region":{"startLine":2690}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cc0e56eea4e811f494ab1078902681fcd92336744fa442369edbef8a64363a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060work_pool_name or PREFECT_DEPLOYMENTS_DEFAULT_WORK_POOL_NAME.value()\u0060 appears character-identically in 2 files \u2014 src/prefect/deployments/runner.py, src/prefect/flows.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":"src/prefect/deployments/runner.py"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"367049c9ff2cafa09b2cad7a94ffa8de0e5c82e768672527d848797b7b11bc81"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060removePrefectKindValue\u0060 is exported and takes \u0060value: unknown\u0060 from its caller, and it calls itself at line 46 (\u0060removePrefectKindValue\u0060) with a piece of \u0060value\u0060 \u2014 and nowhere in \u0060removePrefectKindValue\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060removePrefectKindValue\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/schemas/utilities/removePrefectKindValues.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"74afe606383e38a8c95f0a0d79e91315503e056235ee8d0e0daba20a75e6611e"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060add_cloudpickle_reduction\u0060 is public and takes \u0060kwargs: Any\u0060 from its caller, and it calls itself at line 90 (\u0060add_cloudpickle_reduction\u0060) with a piece of \u0060kwargs\u0060 \u2014 and nowhere in \u0060add_cloudpickle_reduction\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060add_cloudpickle_reduction\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/pydantic.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3cf128fc7c611a0c3b9690ba1b525d53172e978b29287855aa11a6d0f7f853"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060null_handler\u0060 is public, takes a document from its caller (line 205) and hands it to \u0060_hydrate\u0060, which calls itself at line 332 (\u0060_hydrate\u0060) with a piece of \u0060obj\u0060 (and at line 338) \u2014 and nowhere in \u0060_hydrate\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060_hydrate\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/schema_tools/hydration.py"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b6102e854a85646fd63fea9010d4cca6845d4e4e414a1360f6c5e77ef83a28"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060hash_objects\u0060 is public, takes a document from its caller (line 92) and hands it to \u0060_tag_json_lossy_types\u0060, which calls itself at line 31 (\u0060_tag_json_lossy_types\u0060) with a piece of \u0060obj\u0060 (and at line 34, line 38, line 53) \u2014 and nowhere in \u0060_tag_json_lossy_types\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060_tag_json_lossy_types\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/hashing/__init__.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc1b8a0131ad7a042e0c4c247599b30210ca83a55f71b20063c2226b9985ed7"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060redact_substr\u0060 is public and takes \u0060obj: Any\u0060 from its caller, and it calls itself at line 54 (\u0060redact_substr\u0060) with a piece of \u0060obj\u0060 (and at line 65) \u2014 and nowhere in \u0060redact_substr\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060redact_substr\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/logging/filters.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d8b6062bf2a4e6174c51ec86caa540456cb67f452814ec41b0b9417cdc8fdf"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060serialize_parameters\u0060 is public, takes a document from its caller (line 586) and hands it to \u0060convert_temporal\u0060, which calls itself at line 599 (\u0060convert_temporal\u0060) with a piece of \u0060v\u0060 (and at line 601) \u2014 and nowhere in \u0060convert_temporal\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060convert_temporal\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/schemas/actions.py"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"be726610be403351927614aa2d426234eafa60b805e29ac3b007b53805516845"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060strip_kwargs\u0060 is public and takes \u0060kwargs: Dict\u0060 from its caller, and it calls itself at line 63 (\u0060strip_kwargs\u0060) with a piece of \u0060kwargs\u0060 \u2014 and nowhere in \u0060strip_kwargs\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060strip_kwargs\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-github/prefect_github/utils.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"555fccc9e4dd0bfec0453db37a94436cb2b3589a6ae755fab045b556be545922"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060serialize_model\u0060 is public and takes \u0060obj: Any\u0060 from its caller, and it calls itself at line 45 (\u0060serialize_model\u0060) with a piece of \u0060obj\u0060 (and at line 47) \u2014 and nowhere in \u0060serialize_model\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060serialize_model\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-databricks/prefect_databricks/rest.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0326f0fc8204a8e72d0d19c6e4c1b7ab85ccb56fd3b3283ba94cb41866305bea"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060strip_kwargs\u0060 is public and takes \u0060kwargs: Dict\u0060 from its caller, and it calls itself at line 71 (\u0060strip_kwargs\u0060) with a piece of \u0060kwargs\u0060 \u2014 and nowhere in \u0060strip_kwargs\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060strip_kwargs\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-databricks/prefect_databricks/rest.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dae3077732df2804069a74ede6e4bf5525e10f46b4c4d5df411723ebf52ad52"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 0/4 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: validateCredentials: \u0060validateCredentials\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/auth/auth-provider.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a082e934d768e785d88d5e439f0ad60603582c530355f39f28d8b1909e6ac35"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: checkApiHealth: \u0060checkApiHealth\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/auth/auth-provider.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0f7c97fe47a02bdf44c8f0bbe3ef3689181175e9043bdc88cda3a6f7a82492"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchToken: \u0060fetchToken\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/csrf.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"473c9a8f88ffa39068382a3d117839fd8320349b92e3de726c7d07497dc0cac3"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: load: \u0060load\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/ui-settings.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5693768f04711a8bc182d0494434dc93cef07d321546507ce9aca2fba6f984b3"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 423 is called with an argument built by \u0060sorted(str(f) for f in firing_ids)\u0060 (line 432), 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":"src/prefect/server/events/triggers.py"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"d136335356f668bb667aec4f11983c5f4dcec88770a661428347351ff9f7d4ef"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 362 is called with an argument built by \u0060\u0022\u2026\u0022.join(local_modules)\u0060 (line 364), 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":"src/prefect/bundles/__init__.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"730e6d0a7665bbc3bd2855a0aa7a63987b81b930962cefb91848ed05b35f5e43"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 664 is called with an argument built by \u0060json.dumps(configuration.job_manifest, indent = 2, default = str)\u0060 (line 665), 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":"src/integrations/prefect-snowflake/prefect_snowflake/experimental/workers/spcs.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a3127ef4841f01e8052b1908a0ff33b96365fdfb1fade3ea816ac7f1b4334d"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 842 is called with an argument built by \u0060json.dumps(task_definition, indent = 2, default = str)\u0060 (line 843), 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":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae93c41d5058d120b007c221436ea3998228e8032f6758f260f08a57cb0d717"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 854 is called with an argument built by \u0060json.dumps(mask_api_key(task_run_request), indent = 2, default = str)\u0060 (line 856), 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":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d140e250642ad35e8b91dd8d1c058f6573f38eea144cc42e11595d31fe7ba5"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 1105 is called with an argument built by \u0060json.dumps(task_definition, indent = 2, default = str)\u0060 (line 1107), 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":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"73cf8c12858ef4c79776b93652a4431a33cbfe1de4fbc1bf0b2a972e23fb44eb"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060Object.entries(THEMES).map(([theme,prefix])=\u003E\u0060\n${prefix} [data-chart=${id}] {\n${colorConfig.map(([key,itemConfig])=\u003E{\u2026\u0060 is text this program did not author, and it is written into the text of an element through \u0060dangerouslySetInnerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/chart.tsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d161990b1643799adea349d7c222cffa931f7ca138ef49043127a0ed3796ea3"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060svg\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/mermaid-diagram.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"198c82f6146ad7fb09a585588e7348afe7c3a017f4282eecc6bf7fa66ea16682"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/dashboard.tsx"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"495c6d2409f8989fb04610f6bcb73f27d7ce6048063ff53f0d5244f390b23aa3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/routes/deployments/index.tsx"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"106cb0da8b689dc12cb7cd41f58d7781f8d49cd434ba1f27ec9e1909e8e0b5d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/ui/run-state-change-dialog/run-state-change-dialog.tsx"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f3873b498d72cadd82635a9c924d727e0cee3d1145af609119d204a2b190c4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/dashboard/flow-runs-accordion/flow-runs-accordion-content.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fe5faa52fa68e2d4eceeb0e06324ec7a2b016bc9fa0fcb351ead55a7c20f15"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/automations/automations-wizard/trigger-step/trigger-json-input.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8515363e0d9d29ac848c0f757ff7c18f3bc17e52a9b4656005750d8d1c558d47"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/api/automations/automations.ts"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf93fa09440e6ce04c338e9e15c670db28b52c1a56a63bf704bddead584acf52"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/exceptions.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"891a8f16925b99f149da3e8de06a01a2c3cd4d51bcc071b1d6fcc938049adfa0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"da37d3818298817a4b70913f901c4a5a51eb2465d494e38fdfac7ba32260a91e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1600}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae67a3ded038bd23eb8dcaf5b831b4173975a4225e0e80d9c9afa36d21646822"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"01be401404a97aade60fd6253172ac65eb2d4a2ba43ee9a8efea21da6a699c67"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/flows.py"},"region":{"startLine":3033}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b43cd61e7009844fc51bc381bd99ec2e407a2c8a9652faaea78bca05d1abed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/results.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e8d79240fdf9b764396449cea02ddf832bf238243c34e0e44dc1195893bf8c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/results.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"687303c82b3b5b4fec1e0c90511f447cd3831c33f5b7380acccd586ef2c0e582"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/results.py"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bbf6455ca808041ca796d0abffbd9bb14bd7af8052b5f24ac3dd5c113df7ae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/results.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3ad9708a8df16deb173754170cd88a6f5e4ef08bba698e69bd0bd7420bc406"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/server/logs/stream.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3941f29640643865deecd27433707122d75f577392473914435189dca8fb90"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/actions.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"b785eb9c283e5657119175bdd900f4bd004281c6ab8088bfa23e7cf17793dbcb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/server/events/stream.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf6a8198d7b363889c734fd4f32a8b42e05c147482ef419e465b4ba972b0e7c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/server/database/interface.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"786f7eac23f387110cc865c3384cad8ef242007f5a3a54400481ad6fdbc3368a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/server/api/dependencies.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0446b6460f7fd4cc56785d5ddb59a1153cbad10d76e0d50d69b63c09957cee61"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/runner/_state_proposer.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3b5ea034374e510bbae75915a49616bd9310e9aa44d31b2bdb5b30b36d6cb8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/runner/storage.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f97777fd709ed269886424cc53302a69b8ed75de46cb486e52628ed84c0737"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/runner/storage.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac72622637a4bf41af8e40136d798bdbcb084a073fbaf12433ef4892abda58e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/runner/storage.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f3076061905292352fe5e088ac4e6a38c6f0a355e8c069325b9d85b9332a9f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/runner/storage.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e7f087601dcb41f945a145e9c76c324c56a55c465fac9ae451cf9201f77e3e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"155e2a2874e59b1127b734ac08b27db6e3b227539f37a64cb697afd8238a42ca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/runner.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"2374aa0688915f068648b0631905d3169873f3c9e5c1f62979ef593ba74daaa9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/concurrency/_asyncio.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c110442ef1eaeb8c390b07f1cd9f9ce3e7c64043d16ac93458cf305d623499"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/concurrency/_asyncio.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c5207b98dbf07e620216d459f62e45acedc57fdc494b3d7c3247ae9f1bc0e5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/concurrency/services.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdda815d181e37312832828a70ae38bdb1ccd9f0aa64ea4146bc43a182c80277"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except (httpx.HTTPStatusError, Exception)\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":"src/prefect/cli/profile.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"45db729dcc30628df88b4ad3321a51790efa1c958de05c0c6f597a8406798cc8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/cli/profile.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"166e4195cdc79ad660f658023b212bd1aff693057fa794898e9501012c496c57"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/cli/profile.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23705e67537910b30289b40aee385661593ef250e9779f8122da91da93a2d44"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/server.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcae749a2a0725bb0a59895370c1e05a5c96bc8a42387aa507a5c13a49715ce0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/cli/server.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"5648e4697e4c64638ac5a05cfcfefd475820d0f2fdf0158f96025c7b4613379d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/version.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86c20424ac8b17671964ad30ad8b08b73ca2b6c47076c83bdc1eaa31ec36ce4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/send_entrypoint_logs.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b4d6a56db13ccabc55265b4774cead5e4f6e4fd355d6877c1f4fc203899894"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/_internal/analytics/client.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6857fb363e89f58900337cf9e4603c5c72f1d94b56bc4493969b349994829d1b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/analytics/client.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91ab4188c1dbf07974a300befbf701d6859373625431d5cceed8ef80f1bdd65"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/_internal/analytics/client.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd87a1fc89c46dac49143dfdf5bc1d8d7d16ea06c463c61f3915eaff74de895"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/analytics/client.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bab6ce5be46e1118ca70d9d14c823dd6ffc4d0f068554c252c90ffc3f4dae3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/analytics/device_id.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ca52a0f0da3170e7fe891281ccd57433d7a084f795e4a0ed5574e9d32f1b90"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/_internal/analytics/emit.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5056b3afc32da2b553d5e377f56eb2ff3a54b6d749f55e38ab454b08c258a562"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/_internal/analytics/emit.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5165de56b16f3564306db616f38b2a203eb811e15ef151e2a746e6406e54c4a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/_internal/analytics/emit.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"533316a7bca44d024b4809876a7b120504ed93bf7c7c2542e1e90f962a615053"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/analytics/milestones.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b9ef213559656ad92d16a357b951ca678a17e611ef68a5f74529a001fbf172"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/analytics/milestones.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"912315d86649a6adce3da79f2739f716e19daed1244fb52c05fc4b097e0070e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/analytics/notice.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f08ae050fbd786eb3abfa2585dcf5928cf19a170e55518014956ac29140bf4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/prefect/_internal/analytics/service.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2015f9d305166e459ab775ad4c6c5591117607e276c9f5a22709f467b14647c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/integrations/prefect-email/prefect_email/credentials.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2107790ed11d98bfee5fe0f1abb61e58cd48869fb9c9331a827ea2c1e5bf03"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"799646adf63c5a0f89941c3b457062a76fb42dec48b516c0b02e9cc0624bc67a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"074ea88a2a36dc9268001dc8df1d101ccf0af025cd991c31aa8b517b570b1085"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"891e815c6b69f6dfcb4738ea1762b076e70c784d78776e7b4190730c59123fac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_executor.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e5f50cfba4583cfe259dc1991bff95b3278a738efac7d9374f74f12ac6d6b2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_freshness.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0370e00585ded9516695b6990312cf4f3e313a88a40ea50a5de131f8eee9d5a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_manifest.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f1a4917fae22bdaad26781b07f9add37af1f99ba0d830b401b9aac514f2f5a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b892f50227745b92fa8aabcab574bae97d9caf45a01757162a3fb11e667345"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"d037e09a637dd842a2f83b639f6e746e0bec1ab23338a615d4e1a57660cc413c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1942}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aabea8455b5f309a5c5dfb29c8f657d080a9879fd194f2b63035a814b3b1fbb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/core/_orchestrator.py"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f75979e4812c6e868ff761444d516762b70d97471db978ed73966e05c41e94"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a4ed099f69414fa2d7525979741de886a166c2832af2b4c450dd346e8a8980"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-databricks/prefect_databricks/rest.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5ecff7affbffbc1ff9b64d54dc7bbeaf68f7e0c3b2cf8a685aaf4b434026b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/_cli/ecs_worker.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"02897cfe6b23956ff6e65d74f083f9b016ed313c7eb0a132c35ab31c0a47086e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/integrations/prefect-aws/prefect_aws/_cli/utils.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccd59011c56b8fd246063bc4a281c364d13d0b30ce11ca63a07bf18fad665cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"src/integrations/prefect-aws/prefect_aws/_cli/utils.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"4533b2779cd1c4caf13da5e0fe38500dd45dd198dd0f5083725747f72f88ce89"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 323 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/artifacts.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"899d701721e586873c18b3ecef54919eac474cf487531aae13d5fa36bbb0fe8e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 327 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/artifacts.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1b108ff162862ea2ed9bf52be3828a83c735223ba842bc483e545346e0b7c3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 146 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/engine.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac21a48cce91ff77de8b937a3272a3859cf452097bbb12e38393d2e39d4fc7bb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 608 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad127db0f8f7fc908a7be375416d6757e5e512ae5ff987002c2678bd9512058"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 845 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca05aae8124875b299d1be88cdcdfab68ef95a28e21ec8f20c2719dbf19c81dc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 889 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e012e64c20e4d40cd7a33c95485d3b1aa80f02e5025bb6abfb449da151a9e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 919 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d2dcd7fe5f2258c950df8e49d643d8a56d803371673fd581278f3aa7e095fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 932 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f96a80e2f0f224f58d7ce7d5d00054bbab63b9655672e62956005a5cc69d96"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1100 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b0378e58101fa9ea1daedcda0131009af6509e01da0a1a1bc0fde46e3dfc63"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1109 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2b24d74db04f5ac4164cfdcb84e3083dbc82b7df5d0d2cc92b8d05530e5631"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1114 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d575ad787a48a08dc5c8dd8a37161ef49593f062405c7664fc6da516bea99819"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1193 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e34d7766b45f22837098392739cca0ded5b1ae45030d22dbddcd2c1473ef9b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1208 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0d8a9324e3a3e15aa415cc278fe4403270929d139755023375041bc0e435ff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1213 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb36f6d109fb62aefa5ad43f4f0a8d1fb6964b0f89b7ba43286799afdcc58177"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060log\u0060 at line 1330 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.log(logging.INFO, \u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cae95c0b0cfc906488b4600ed388fff46774ab260e81a6be9eab5a7b24c8fb9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1369 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1bf9f6c69d578a9ee8b6950817b44298d5660fab8d77f7bcdc2e66add0e3ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1584 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ad65203a317476138748eafc421aa39f1118e2eb8f985609a34cada63d0ed0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1625 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cd95ee8e392718c24b72df24327c6627b3564fe9a802d67a132fb8a4d7f84e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1655 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6926cde2aeb2e9f9ca1c0df6898ffcc1cb8ea7ab1ac2b9c3f94576bcfd9931"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1672 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fc019922091e57e2957bb5085a514f9b9826eb43fa4d10a0f13394ad98cc0e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1835 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"f498d1f96cdf2fdbe6f34d865e25009d1a3a2f6f1023c29a2d33b72d8e27673a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1844 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"8170ddb0c7b6c20fc97d64b8f369295821f1d065acd67d1410d4fbd77be22813"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1849 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1849}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb0fe979253e40a192580ac9dc000d0b3640c0d6fb4ad69532f8c129f9409ea"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1927 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b97a995ac174236c91447bed10e27048e7c798b02444919907bb45a2cc5212"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1941 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1941}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7b90558ae8f0d38a6f341b85a7c8744bef310b89bc7eb7e667c084ae59f46a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1946 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"588f946ad8938ef2f85e465fc048a8f35db9a0dff30c154929822e6f351f03fe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1972 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e25d05ea450dbbb54c7a8eb7317cb1ce43c6bcffd55bc5a463ee64e16ccf93"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060log\u0060 at line 2089 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.log(logging.INFO, \u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"17382363f4f32eb29e1284969e00aba432eeca91cd4ae206cb3f8ed9409ebe1f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 2130 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flow_engine.py"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd8c04e12a68ee400d36339c41d456b36888ced07d58030adbdac0001d437814"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 696 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"48678f9c4aa4eb35e83ba569e48fa10c2819755e9e2a7cd45af4fe6bbed2fb05"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 735 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ceaf71bf894ab274bd79cee5b704e679d4cf1a69ba71a68fd455c18f7c8835a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1198 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc5de3ece4a625eeddca7e75313247f8c110492f3cf51361bcc29439a97fdfe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2722 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":2722}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebfa85a44982f5a5ddebd3435b1dee9c8f91247f1fd77b6c0fd7095099c275e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3147 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":3147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de9c760bdc9912e1c18dc79a9e316d8f367f53a889092486a9c34b5c2854fa4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3314 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":3314}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff3de1e40bf4d9898bc1f993b31742a425538a60a96cac679e2ea105415b8ba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3318 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":3318}}}],"partialFingerprints":{"codehealthFindingId/v1":"88235b0777439f3dbf416dbef371932e617e23f05ce4430da1056305e88e45b8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3336 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":3336}}}],"partialFingerprints":{"codehealthFindingId/v1":"368cf9c3c5a71c66d14fe571c8d9513f2913e36171b8c92b34d844f2cf3f27f5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3340 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":3340}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aba9f9a7e89f179b7b117915a2ed784ed2f51253527bcb1da6503d3a288b623"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3351 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/flows.py"},"region":{"startLine":3351}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafef6c0aaa593e3e21a6968b031ea7ed0d0a7574bd847d88113302a525c7d82"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 51 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/main.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e327092e90456e65887e1ec049245db9a85a97bc71c150fe6543fd7ed0defa38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 354 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fc84daf3e484de288cd93d9bc20ac1a147b13519ea47edba04b2dfb3af5693"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 465 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfe515734b2e11314e67f15d6d92bef9a11e3b64699660a6494c58831e05059"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 489 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcefc1f4dfd31d7800642fc7e695c4b2ab91a5d18def5cc13a7ea29aa3e7e139"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 520 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f8b37869b1ae83f1acaa665c4cdfa858c97ad6999d75fb6c1be241798933f6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 528 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"79febdfe6f344a618b00b1f088c116861cbc8c8b476661aa2c95b0282d548dd6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 533 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88644d4ed5de4a225179190e6467dfd9b666a21ad572c1f6102546ac779b223"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 753 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa52ec550f45a8c5dc2ba1e0acce6f2430dd95081e71034e1f441f8150fbb14"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 758 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7797a15fde4d1c61ed82d6dffba43efedcdc1d8ea4420d17fd52c88f5b4363"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 798 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f28f7253f5c76dd665b17a4b21b068ba4e41008205069523a4b39d5d70f6ebc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 911 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"871b34199291e6332fd56a0581a152bf374a1ef1d89e0a275b0587204d702a18"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1066 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"053a2dcc9e2b7f0795de2129b690a2a0e6b25534b898d6a87d64c42ad7da548c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1117 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6910be41727de02c5dd592789f9913142de5cfdcb115c8824b43aff02f80ab11"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1138 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b800b50b090aa7ab70536c9aa6ce51a710eaed39123f3142a793aa9573336380"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1169 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"275c36ed7f5bc6a911fb0ddced24a6de6895f28e47b12ccaa4ccd127a26237f4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1177 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b05dfce186f018b1d9344b6b2be7711701b11edf7de570becc79a8c76809b4e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1182 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3abe003bcbf3e3db53c4877c4d0f94993b0e0869afbf00e7f564505ab0b6cf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1418 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"361526341cd3ee6f7b614912a60b3c3e88238779bc16791b9fd8c8d95f7f1865"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1423 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c45b4188a3df8e9a590bd936381222706d87193f2faee46e2e954a4a9634e0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1466 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2001a84a655e220e7de12fd318737550858ef74fcc29e6523b03c1574735c6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1579 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"739ce7ec4207f02e2b39d1ce1fac843c9c642f4713b4b7b0eb8dff27e528ed68"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1719 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_engine.py"},"region":{"startLine":1719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43bc4cd72d8cc39f9c8bfc28d9cf603635a34c6e77ebe1381356c62f793d322"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 388 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a58b9cfbc5e10c6dec404a7172a1099480c7bacdad17736a517d1e5e32fc05"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 409 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1f80689f05508ecf31340c2393a1e296cb3661e42c6803db96074f57127573"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 485 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd885c6ffbf90fcbb9518594f569937190cb5ad5d256d00c2c6fee84abe61897"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1210 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3b4e5d92ddbc57131c1b8d458d8b2b137cff006a485bbcab34b63c350d315e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1225 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8505d6213a34584cc510512a4904b22257822fde134eb5c650276f0338748dc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1421 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runners.py"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b2d640c4871eace4bf5d3d47320c87b32f78c48a1b22a2a2d4e6ceeda8ac44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 129 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runs.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a909db31b0e71978ab1bcd92ae1c99cc7ce15494ca6d499474fad7c1b1d8835"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 162 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_runs.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"997a64b2854ba5b32828912d8d64e149e745db5d1400117d8dbe5835192b6e86"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 196 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a82385f600db890c7817a331bcfe1328794258a7b35280a5fcc2a8a488a3c6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 242 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c8c423f1cea9e4647c5a05aa5a2f6c21af2f8fa25314a6ba1c942a0e6c0cdd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 252 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"042013549c1c9e09f30d27a8d68656f0b22d095757332d381b5f668ceb8e9893"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 267 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"496634b67e0fbd1e91658e024ede5c61e34c6109e1b249f8c783a5324563fd5f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 275 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75c32a98fa964f567596837bc09b8ac1b4607581e21b6393da2b9e175ee7af8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 293 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9bb454271efd7f3006f06a3105d716cae38ce62096b46aa39ce0c7976ade61"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 305 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f6e2aa5f4f02adbb3cf9c2278716c64b181d686457be8556efa467cea57ea0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 313 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2662ccebe3a765ad5effa2d46609cfe50a40c9d19a0cc92fe05b585ec9d000"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 329 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e5e304a873362a9142547b3be36b3d86a04bb32353b48cf3243b0954fc7ca9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 344 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c359068bdbc421ba80969af916396673da269ffa676de3ba540e32fb6483ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 349 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b041f0640dff0b1d81c412f27a34dbe94addb7de4b3a2b52b7895413fe1edd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 370 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5bc5f5c7ed39fabaa63f20b805bb076ed1599b10994b928919175c19e0a4a3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 511 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a984642c3202dae1856ca164c42d03706843148ce994017782a046617fd89f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 529 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/task_worker.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da63e8459b02d56a27d0da82548a1fe28ff0c1e9bf17ca83d1dbd91a1e59ed0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 527 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/tasks.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e39e939720fb7b074df1701c000ee9691da1d3a8d25df186e8d622701dfa072"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1784 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/tasks.py"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd686a7937c1591738a6058c22268fd8ee88d8ddab6689d7803b2722a8ae060d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 305 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c434d7c16fe79dffe69ee2db1444799edf690516b513221aac0e7dbd0a1c4f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 342 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"731a8c7be26c020c4e1ab064d5120cca429659b83f5df1a80076890f99fc9423"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 377 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"901fe9a611d6e8df2108ddf8188604472d71fd6d24ef6fae1fc023bc9965d837"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 382 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f92d90bb3d3bc43532efb882be48550824bd639e0db7fe379b60a79e10e598b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 390 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2f6064510f364dbfea4fb773303c117b954e017d66a22c8a81bb6da847a3d8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 403 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3097cf7cb739f3a2699abd2adf505eb57f83b55a05d8a6d241ba1ecb0da015ba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 412 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d45eeceb8aa261d382be5de9b11881bd50c28391b2fd1521b4ae63a45d4f4a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 418 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba8f7fa5e7d4933840dabf11bb6412d5a40784ed133d037b22d85094803a662"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 441 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"40de41ef1b9d3c964a09bef35e29a53de748c074ca6dde0ac6d7f4932bc406de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 452 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1f58165b408c4656eee8bb60db5fcafec93450279ab874e39a76009952559e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 467 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"5550ac10d8a64a6828c8c64a10ba3e2c2d71df26031ae73500df3b2adbadf4fa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 506 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b2cffa736f86754a021b792a4f2a0016a2482327df472f4f6bcff5cc267a1d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 541 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd9d95b6b83a8f02a328597205e237b5218d6c77b97688b7b2352ea8bea01bc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 546 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"6114a250efb7feafcd8f904a8acc49d28467e7bf17837c9b82201ea7b9e99388"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 554 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e94c28e009d01bf54ea2326ac038959266bb1955adc52fd890ceb972ed51a6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 567 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"00891ce58c926161e0279f7e80aaab121c079c223291f0210564170eb156706c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 576 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5cc6e3a59cd00f67e36f1fa90b070f20b5f54da1f052a1716a9b1767f3d558"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 582 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"015a5dcc4eb20839a1a83493249239a0beee0b16ac156846ab89de78625e39d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 605 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f3115303a21f2056b71170fe11ff69d80e2c1e2d18d9da0e7868bc797128ba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 616 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/transactions.py"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec57986372fe21425fb4559270836ba8f5652dcb883fffaed4590a8ef2c4bac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1074 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"608b2b8f9dd54d375f50e3bd365a7f7e7e08b8ef0ec2afbe594f55ed7fc24d2c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 1223 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c95537ed43f8859a6d36e203f694be35be8c843ce21b3ed53491acab1c8ef7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1325 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f28a77a214aba1e4061da0a672f12bb74b67508afa74971b6975e0c47cf3bd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1357 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa737f54e42a8b8648746f4a184bd386ed03bac5b07b2946a35f209cdb28352"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1502 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0aa3bb8ef4f60a668b92fbff32d9aee909667c371c5f67e75bbc0b536e2232e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1513 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e1e7db13ede2d948c6a3850200ff90d91f9d67980f5d7392a6fe784d3da538"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1533 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7096fa9fd8fa613f62d7fbc7e10651b51b39f7eae897ea3959544eb48ff439d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1541 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e26d70914ec17b706d1ae380beb1184b2973a9e7ab0d5f10b233c300ae2b760"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1549 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ae66d287be6c8003d2a55da49db1ca412faa0aa1bcad9f8a91dcb22b19887f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1556 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"70340740566ad4b0dadee0fdc03890aef7c539f238cfad3288e2d7a5498ebfa4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1567 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"e809729d8cd27edd57c9a98dc69fa5134bb17587f086024ee1ad172b6b8b5974"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1571 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad9d583faa8a1f8d4593387ddc371a33ac612c1a09f1085edb10bc50dc4fa15"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1604 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b808395c66a0cd7ea29fe352aaea0199ac76158574230dd87d4cfd33047146"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 1619 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"69767ffa5968754157e04e4a14e5ad3668dff9efb511abd608d17727002c4e8f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1625 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd75bd463f685139c66328aa5e1d928c7fcc020b275aac93221e8ab48632e44e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 1656 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"01488ddbb91e281fa4fc97038c3871b7f679b91e940024a74b501dd71357ecf9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 1662 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d55700f5b60fb45cf95c20adaca6fb7f3bd09d11e1cdd5c565049d36ca5aa16"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 1676 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"429ecb6f22afc793b436cdcbae89fc852f1e882532c226b72283ac29a26cd69a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 1713 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f2562ba9809929c04ff23c526100e1a6d25c17fb2bc0ac5e0a9d3cb4b806e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 1721 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3ea5a3ed8321a561ba12bbdfc77140bc47d5a706456fb0c3d3881251a75dbf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1731 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1731}}}],"partialFingerprints":{"codehealthFindingId/v1":"4757c893bb1c9f3eb1f006211c107d91ef89863775f30038c6e1c0c0acd03620"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1802 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dacfc0b18f68152c05c95234e70cec11fd63a8c156c72b0f35e4b83ac63479"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 1811 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"a336782eb4fa2e23b787066bb88281148c5f79837500d134f5ceea6b1b439c7a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1817 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c21f64964fa05bb27924f74f0e53c43377a3d5ff22e8d6bb7b6f95344e2e23c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1840 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"574cd1af71796ed6c64212d1651179ed4f8c67e3f521e6324f74f29b0271b557"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1856 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"832022c94a37f3290486d3df6ad3a57b491d10e17593e4ed7089251710e07911"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1876 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef99dfe048c0a1811a23d43e460860a060a43c9ad029527fc8f5537ca257ef3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 1880 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78c29edf7eac855e3a79694fd77a2aa82764fe54ec628edcd85bf322a924897"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1883 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"5effa18d2233db956238acccc30bab4519c451afddf03359646cba06f18c75a9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1906 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c655adc6420f6214ac526bf41858baa38dc94fd80824a427307304598bcf59"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1919 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1919}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9204f012e636ab0672866270e81d4f635dd2d0dcb9d4b5f657ccbb44ba53f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1980 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0baa9c45604222719885e03792c2dccd5bde50c66ce9c9786152db8f7c25b5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1990 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/base.py"},"region":{"startLine":1990}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c9c71ceb42822d3882cd4b86a17a03f8935c29fc9079ba4fbb6090c10d6410"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 57 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/utilities.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a73ce52837248276a6d45dd1905be43a34b0616430a7ad3698b54eacef4e72"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 316 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/_worker_channel/_sync.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d604e0cfc53ffdca278e110d712e6170f38e560efcb2e543b414899493f0871"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 330 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/workers/_worker_channel/_sync.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"21647ab1664f8bd85c28c376426b7e3373d05635e5f7b74687531b60d64dd404"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 394 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/importtools.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"12141e7920848e244efae651acef4f191209f5253ed469fc7f801133b459dcb4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 63 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/services.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd88f9188b19d7a227661843bbf867543b9e8a506107e51085d201275d3c5ff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 83 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/services.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8758d88c9f4ca096be57f3eb39f9012ce0a3e9b1c15ca130048a073b45fba6b6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 93 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/services.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4221c2cd4ac5413c51b10bd65ded6b06871bdffe7869dcddeca75df45a2f28"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 412 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/urls.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c05a4514fb87feba3b61044d2462e41a3752804a0e2a537869d3be32ca9c8a6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 447 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/urls.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4b53758d92d1e69602ea0cbb957d857cb464e5f0f3eaa436b0eefab9ca036f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 198 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/templating/__init__.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"c270321179ef5e913a7a4921104193357d9c53101e0c20078432fb0f5dd5168e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 216 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/templating/__init__.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89973de70ba82cf82e8fe408f27771794b31d0328ec9ca8e024c2ac2fc42315"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 569 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"abafb86020a303de6868bb74f44c33a21210ba12dc3cda5d2f73f598fad28fa5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 664 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/utilities/engine/__init__.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4037ffd9c5e03af8d55441ce136ee0b1a6bd84f9a4d8fe81cde412958f3256"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 75 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/subscriptions.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb17bbac0d2740bbf3ce654b754a78c3f0c1c89eaaa30f2d07aa8840cefed76"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 91 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/utilities/subscriptions.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"977f4406225b1834bb37f3d046ff70422e5fdcf848652d29e7bb485f58dfe18a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 108 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/foreman.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdc13dc8e1e8f4ce99a7e32a5170fb8927e3810d722eff246ebd50580426ada"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 143 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/foreman.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b58a64cecad1aa01b88fd565b6dde7b694924a03322861dcd4976df576b5ae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 124 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/perpetual_services.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b65495efa041264331d71bb80a4d9429da99cdb26071048673c9bd039430530"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 151 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/perpetual_services.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"75965fa1521f656b90191ccf20dfab48d2c785c2d25a886c6b0a1ee65bdb70b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 156 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/perpetual_services.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"331e943faefce2ca5a4032490c43e6f4edba6e8c474f96c158bd874ccdda86d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 162 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/perpetual_services.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddba443241bc918327d3717b2200f40b8ec91dbc96b7fa10c7b0b007a78c8320"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 168 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/perpetual_services.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c002b1c070bb179b53a65a8d27c073d17e2332824e2b4d9fc9e8c66335bdcc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 40 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/repossessor.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ac3d150408c612860bccfdd0347c8371189af74585d1772538199d25b44840"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 46 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/repossessor.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd350d6f7f106298f050439a4ebd260570fb694bdd47b31789c326471d15b86"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 53 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/repossessor.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b368018cbf7408d207ff7d7a9989a12dc10598a4bb8d730ebddfd24350c40a4f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 60 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/repossessor.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e973bf3f32f60ca0029bdaee9642ed7a7a2ccf227022c834e18e907e630e44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 92 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/repossessor.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eef1c5547120b24a115ed267e302a38b03b48aed3dae2fddc8ef75165eec549"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 198 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/scheduler.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1b34a601f1586cd7b2e1b8829eb802d51026c03af42b188a74975e226fa607"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 285 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/scheduler.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7cbb43aaf766019ac7657ac630dece61ff4dbef02624e952c66078c95796b2f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 358 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/scheduler.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"5099cc2acb6c0e2d011be338c9621c21328c70fda4459e05da87ab3c43f1517d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 305 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/task_run_recorder.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b10b6a32306635cf5c09a590b853945d4cafad7e31a14fd05317692e02d15c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 678 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/task_run_recorder.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"da97b24e4b294b85fcb122f37bd460ceca2b0bc5cdda8ec15a023c0f2f25396b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 685 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/task_run_recorder.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e250be18cbdf13cafa3ee1b9bc4fa9b3840ad9831e362e54fc2139007cab0c8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 706 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/task_run_recorder.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bacf574879cd6c4e3b576a804710bbb5195cd8f94cb9548ae0c58a0a33bf168"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 709 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/task_run_recorder.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e617bb384c79f65ea120ffcfca6c7ac817668816d7dd55c2a11b86afae8a854"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 60 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/telemetry.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e649e6827625b2a9fbf8cd45de5a22dbfb2ef50057932d6c6a3f120cca3a7d4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 111 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/services/telemetry.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf306b7a52add8c8feb834b371ed99af119b8b94df8a4a181ee8e2ec852259d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 88 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce500d1f300b52d24405ff9a16319c04885b357e8b61cba39875835a440c611"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 365 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"464b003c814ff37b2c93351557fbc44299cb96cf02e43bf7ee2007453e118b92"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 486 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"925e03529af0dfeaee25bac4208513df64b88b9340ef2483db669089cfac4573"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 543 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/core_policy.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09bc3a23645606c5088156973639ddd4528daa7e499b11b4d1a6e898d396df1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 658 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/orchestration/rules.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"85be8bc30ae059c88579edd6ecb1ae31740d12455e4e4271d1e8d905c255791c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 165 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/block_registration.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"768d38de7bf9b921544e64c67fee1a8cec6a1a2c5b7f0c1354e62f2fe90fcb77"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 206 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/block_registration.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6c214dca4bd04120945376952c08ce53a61d4e58bcaf28245d302cb7ccac0e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1489 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/deployments.py"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef6731afd81346741111727d42f788c1c0309a7943ec1eb1eaf3c4504f9ed3d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 355 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/models/task_runs.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84388311afd5d1e987eb87a02dca0bd3e4b2ac0bf8408a6c409ab7910ac157d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 170 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/logs/stream.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f101d32785968f552e0f26f5cb86e8b9ab3b60b05d6e67bac69aab966e29c0a4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1312 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/triggers.py"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75ca6df5429c1c9ba13f95f52dabcc2a2cd0c4f353eeeb1c1e6cef696b90ad4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1325 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/triggers.py"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"11dc41a3d7a11df3ea9aae34e424b642d06200d6b38a8f23bc8cc975785043f1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1328 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/triggers.py"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee2f9edaa6b4f8bb48aad286e7f0289305d5b723030fd55e64dbfeca11fab66"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1338 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/triggers.py"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d12f1ea0f0a8916f12da73fe316fc4867d0c4f48a62c4f8ff9055682f3aa30"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 38 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/services/triggers.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5c88f8c24f2d5791305ec04a1caffbe034599ceb0e2bad60d50d875d8c4738"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 155 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/models/automations.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3576c41b312488a07809777e81776c650700e0925c2dd5f61c22f2ef28ece3dd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 181 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/models/automations.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbfbf3d1b7c48a2bf02d8d0125d5e3270056ea81d248eb981db42eb517aad22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 185 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/models/automations.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dde455321c37982934584760a2064d4623a39821f0c10b6f4d9493e27bd8b9b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 197 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/events/models/automations.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"36348bc9411c86b08361f0b06b2ee134c65510e3a9e135a3c588c36b200ff703"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 621 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/concurrency_limits.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf2f073d1ab0d7300cdb0fdf5678f4e1907df285bd78f14efa9f0635d7aa259"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 94 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/dependencies.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"1061c4798a8eee366c2cfba9a02502daf387486d77efc2b0bdbbf8297f09e27e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 99 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/dependencies.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85eea8e7075c4263dae56c32e0773c0e9ca028a0582c98424f5463e993dfa9b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 330 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/deployments.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18d82b8144ed9820ade9a00225564e0d640662e89739480af78a898734908fa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 873 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/server.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d612ed44e956a7b08e36fb3bbae11453295c33690d2816c2ccfe10429d0f0b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 891 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/server.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fed281c65dbd5bbd241d08cd732be47ad7f480de88b56d217d76488bca9540"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1023 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/server.py"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f529645ca04ff2ecfce5845bf2a8a81833eddfe87912a679b34592609b0ee93"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1025 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/server.py"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcfeb9b7214a6cb47dc302f22220bf1488328e6aef6cb3dbc3cd2c177732f7b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1270 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/server.py"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc4dd199996056768747f13f60b485d7b0683e0cca9cb2c4613a3dab7272fe0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 387 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/api/task_runs.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5816414e8a48b2a3c67d4b633fa53974f1f5c9dbb798445599e8bf301bde32b3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 515 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/runner.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bb444a7487b288ae6981b1e217ea3aa643cc462aa58edfc20294c644b0723b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 660 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/runner/runner.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc28df2060f4245848f07a48f1efef279793d82311226e48c21875c810d65ecc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 116 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/locking/filesystem.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11d247fc17e849d9134f61fa4b0b43c61f9c9d957936c6e6b8e7fd683972ee9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 165 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/locking/filesystem.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"508f18c885ecf46d3e85a344d5b81c17b84f71c4dc8dcc2cc28e94dc06a36b41"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 115 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/events/utilities.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"08baa02533a3a5748dca934df74a1aa7be261ca88a8ffbac9365b4b2336f2fef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 269 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/deployments/steps/pull.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded4c19b2a8a7b36b8aa1b188971d4af59cda6f2d13de2417fa6c210d6a4b2ce"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 130 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/concurrency/_asyncio.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1446f4e7c24ca31ca4ae0eefab30faeb6ca288c2025af487e1c94f5b2b459a4c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060log\u0060 at line 186 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.log(logging.INFO, \u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/concurrency/_asyncio.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d12a92d8d3a45e736e2d717a0077be3eb09c01d75163d50fb181612bce80b2f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 265 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/base.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"f776047f13c293fe8e3f1a6121955bcc60109ff266ae2ed6849daf8a9c11a975"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 538 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/base.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"f646cad46c4901152cbd38d368e2467cd2e879dbd4e566c1baf2a9ef1de8128f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1191 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"067265b15702114671967d6fb71ed07e0b049c4cef98565f6c2f1083dd5a83fe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1196 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/client/orchestration/__init__.py"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6dd4c69491782a2879d79892a4fd9eaeb820ce89658c7e27dadb22059f033b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 276 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/flow_run.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebc751564ed87955bc57edd366829aff17685a1e26907e96ee7df2211d52811"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 114 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/cli/task.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44016b17a2f9c56526273e76e7c311a4c9eb55aaafdfd0156cb12b50fe13198"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 214 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_file_collector.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff588a084813baafa2ae5b9db5d43f85f7316b9e71c7185ce9e9ec429ab8d9e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 99 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_ignore_filter.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fd604abc96eb96a49b824238688c6e979a38464e702aae559406b069ec6c40"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 102 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_ignore_filter.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb2adffe155eac9ff2a339aba49a6ab80c9270566325b02dcadaf274a5f8c83"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 104 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_ignore_filter.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f998129c353a4f12e57829a853d5ef8f1cb09cc03ced1174644e3a6fa67fe024"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 111 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_ignore_filter.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"21434f917b09de01681f262c043cb0888079f077a99d1d42a032411e2071f5dd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 114 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_ignore_filter.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fcb7337cbac1961408449a290a53f1282200d0d902ec99108fc45a4019b5d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 337 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_ignore_filter.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae592fb910d975bd09d8e167016a036e79cc1abf9d82f00156dd97df985eb3d3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 339 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_ignore_filter.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"79aec6a1efdc39f3e65189b36ce9ee280a434baaa7ede957dfd0e73db69e7b4b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 175 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_zip_builder.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f117d1617af1f2e0d2523cc12811f9daf45507028830e8e4357f6110b40206d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 111 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_zip_extractor.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"49af6af725bafed25f8ff0d4a6bcd50513be7a264b6c92dee558d182259ec271"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 141 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_zip_extractor.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"8851d2950bb7514acab11374c394e5072081345e6d564228a7dcdec873551ca8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 148 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_zip_extractor.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b208e2b083328266590a2da94b52bb859bbf12318075e0849e774ddac17a13f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 150 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/bundles/_zip_extractor.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4838593145e27bfedaad4f9b7a18445af9244aeef9ef0e739fd67743f78c160"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 133 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/waiters.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29ad81ce1a6f9ced21a105756d3e6f3f6f02c10085c544e643dbdd228a1b0cd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 154 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/waiters.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad36255fa9344cb61cd6430a8906b9bbe8250f6752e1d319083129d35af9162"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 230 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/_internal/concurrency/services.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b145af07da73b824980bc54b5d680a8098010ff1e8bc58e9eaa01a14f853ad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 291 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc79544e0bb732f7186c2e504a2c23990af690d7152d677974ecb11e03e34ad"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 303 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbddcd04f9c0b8f3e3be8241bdb4d59d88260c73ae005f5f12a659828bb2bd1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 318 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c3aa89741ee52e2719bdcf982bb1c40ea1270561b19af3b254d92113cf0551"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 366 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"1680e6ef87ebf6b7cca42eb59ccb938bf0730f7863ae337b5643ed31fc91dce2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 499 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8791857499d84784a7a99207b71cb697fcb7819a9f9372bf186c0fc4ab2c58c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 597 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"6127d819b237890c0bf87a90032104ee32d2d9d6aaa16de9e0e68593589d5a0a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 637 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b6cbde6506016807a6442b7620ee1117f80a817dda52c286230919722762d4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 672 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"c681d7d122864f691a1191cf96c3c3327079b40b95b7a33f0c40d0634b10c86b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 716 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-shell/prefect_shell/commands.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"2433154b5c5f6ade20d57847409d16facab0549ac23f6de5f8bdfccc87af3473"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 200 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/lease_storage.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"458be4c9c85a5d7541b3a61c67f354f8352294da0ab440fdac835f584dafb551"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 215 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/lease_storage.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a58048d75c3166b13664cfbfc3f3733dacaa1994a75de16203fbeea65a2d2ff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 279 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/lease_storage.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf58bd4e1d7992d5ae2b0f04095980856df85d3ac9fcc752f6fe4d37f19d67f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 297 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/lease_storage.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"556f9c99b8761f0c8ff6a1e4bcf201b0fd3ba91eecc2a68646ee28136b7cef00"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 314 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/lease_storage.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0563222868035ea65024673abf3c7c00337b21c89b3606015d21297e0e99567"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 328 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/lease_storage.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82f90d946c1db7673eb035964cec49234c926406cc8f0476420059597153887"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 356 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-redis/prefect_redis/lease_storage.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"803405808b263970ee565cdd3e7ba16fb6b3e1ec6314b5adf3198331374181f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 431 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd29210058caa9cfaa3336099127c0202e76f7d200de9bdb5c9c187e649cbfd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 527 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb059d49db4d52435529ad60ceed35fec4f6b10cc927957f600fc7b1e88a9a8e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 536 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"437d3df6dd264c80b808bc40d680458ac8136104bebf0c744ed4b73680f6016f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 554 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6f26baaf5682fab20d2b57e11156d487f9da8a1b62f4f543352cb98f0f3aea"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 561 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9340ee0661319a4dfdebed23bd627b343f3606248074db67b6b14b381aae03a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 568 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"d172da6230efe8d3a920a0cf88bec6373784e3fcb6af56cb9b049c62ca63015b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 575 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"636ad5cea54600429c0df579617d933b3c952d65058ba9a8565995a95aacf73c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 581 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b433e8b1cd468ea2bf3a885992777d66acf03255f986815ae15733f2ae64d94"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 606 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"917087dec03cce05c3f6bcdf4d6f78dc9506f8000c914878fa9eb0e24b96da2b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 740 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd61f60f943d2ccc0b94b2a8db32b59bc616165e07a3bf1e9dc41613038066d8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 871 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88650ba912c58ba06cdd7108c188323eedf3fada0a2944c89fdac67564b0e84"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 940 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"71685c0d66d6bcfbda99eae0574d5fd9bad104d96700fdea8362cd3b3196883f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 992 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb06e3b6231dcb470ecd3020f47f9eb7862e9b75f320ac3bb4fa1d1224cb8303"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1008 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"326161548308cb0a57190e430170f934ac6a0369aaaff627be2f6007533d6841"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1045 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"666131df5024ba19c89750f43071f0ba560adbbe66e2acf0689fc4f58da8ce7b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1060 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"9763ee0fade00f7f33dd9d608920ecd5172857c37d84588aaed6d2e7ede9c7bf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1071 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"7135e846efdab61500dcefa71844ab6fa539a56eba8cc29a2707a47198d640d9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1077 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"527c6ccd5ce9d34d3dd6cde1afc8fe5bd9914fee736d19e91ee5afe94217667b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1085 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"326f92dc3167fbfd9eb108ef5207c1b6db4e9bd46e8441ddb153367507209858"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1094 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"a984ecd7c6c11235307ae4fe836c43fe4f6379616b8bbfce4e481b9035beaad4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1098 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7d729755eac662c972d73b5c4f566280049437fb712370be2c3f5069d578fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1146 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bfba549c47078a1cd40bca60305396b889082091a6213b6edc8e18669c51d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1157 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"68afa9a7a86bbca1162e04714ea2187b32eca7560d8c04e48b9a665d0fbd4e81"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1163 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"369bf5701456cc735652d34e90dd40f7174de448bce842ce76f88303ab4d50b0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1184 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-kubernetes/prefect_kubernetes/observer.py"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"32079c29ca3b9e8df8b94a75ce340b5c6aeeb343010db535dfcd9667610825d8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 69 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/bundles/execute.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b8dda66b6b21d0d2f681a51e33f4a44491523d12e77a128660f281ed190b7c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 78 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-gcp/prefect_gcp/bundles/execute.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba9ff6641665b63d4494bf2a68c322db49df4c095a21806233317a55dad5910"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 572 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-databricks/prefect_databricks/flows.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76c052136862afc67b6d1e902a9c41778d6de919114096694efc8dd1955a211"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 584 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72dd5111ff73ce1b9bb77e112b4b07f1ceaa3cf60e261fe7112138edd988eec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 598 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"3118ea1fe99b72e51382f49da76ab68d494d2a532974a8a615dbfab3904abd3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 611 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee28be70eaca446f365b416259b272032888414478f87c13af3d34982d7b17a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 623 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43c9c051db9677eb6ba6bfeff23c36a249a99eec616be8ea3e9cab2446a1aa2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 630 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf5f84f089e7fd812ae2f36f1a9d5f9ef7a9564c044f79550ff8348b7a3be33"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 735 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbe7c6257ec6cef18aa90d10a6cc315ffb3b377686d6bab93cd9c3a7ede229c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 831 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.exception(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"c379ab115950d0dca5d57803c6aeb3ed462e9f9145265faab349b900e2da6d85"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 874 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"4661f74b3eb1b8f11fab2d2b8d6ad75f09848dd0b58d0dd59268bae0293d3733"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 899 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb76b3b2af10d79f8b8ad93c9e12bcd0715770ceaa10fbc03a25f6635fda74d6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1000 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ad8d72ac0893dc1b4c77df3baac8015ed15129025d59b9f2c4acce66a073fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1049 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9ba1a251334c3229770d953854a2d056a32fb74dcd2e93a1daa890e82bc839"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1148 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a937c2e14cae265d7e49eee104528ff5f5bbf19c3ef5761e5b50938f92661e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1155 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/workers/container_instance.py"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38826dab593c2455478e8e2ba1ccc8ef2713013edc8dc51257dfa2538b0a945"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 67 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/bundles/execute.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"691686308fca06c98db2ee1fc5d40dcad6cf69e796061b31933efb1523333fec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 84 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-azure/prefect_azure/bundles/execute.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"61687a221950923d6c991bd85e5c969f28c0d4ff8436fdb580b59df4a9544e57"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 841 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"72541057ad6d0f6762672cf180c25617ec96f15621c6e293b4e95368b50364ca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 842 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e00373b2c0dd8313633c69c72baae01c425228c6f7ec207c10d0594440c272"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 854 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33679d936b83ba9b7523527e102ed17ea4fff16e421976aaa55fca27ae20107"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 877 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"2359aeacf1623946b38fb1be120d6a58b7e11d966807e14fca9b858a7d090a01"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 977 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"b069a9f51efdd437239ae733c1660194cd71a115b93ed10ff0b02fe3fc3dae8f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 999 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7fc0911d689b4d9d7ccea89e27a12eeeb52d1481b14e2d0ae39b87650b9fe98"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1105 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fa86dcc41248384ded1deb4e4ecfd94487eccbd6c14e3f60ed5aa4da02e4d3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1123 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8b9b12c7331593f6f407625aa0ea91fa73a3e1e63425d0760d3a52cc885395"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1125 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"18aee383317827e7fa56d369119773ecc8d63d43cb5c611b41c65ccd2899c403"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1670 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e18ca5aa4490d83fc1e30cf786109edc0d3c3d68987b8090171522a3dca137e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1674 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"25aba7d87d3555490dc9e3aff6bac7a0fbae4cbb3221ba0922e2743d4e486ea1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1682 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa70f0b76ce31c1fc39d1bb16dadf479b531ae167a79db7eb1c693ee8d76f786"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1683 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1683}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d97bebf123c1a4a877f34e3c1b4ac3b7383b4af7fae820f855c15efb00ba874"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1684 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5b751728fc5af2636501914381c9a03ddc6594e0c72e9fc3703ae4d9ba68f4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1734 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bc09d9c608951d4195655bd14d6e410f2d37abae9412ec8cccc20ae0408001"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 839 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece2dcbc6d2e026a114c6eef0f930680a46358101742d5759aa514244cbe91b9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 850 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/observers/ecs.py"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccd2a7a9b2bbe054d7a7c722cb8503f2ad79e1fe8e70efecbab376c1e83e87f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 115 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/bundles/execute.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcae4613e7a25aa1a874b025000b79af22097ddc3c96c058bd4d02e689b82763"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 128 is handed an f-string as its message, 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 record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/integrations/prefect-aws/prefect_aws/bundles/execute.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d6354f9cac16afc4df6660d55a682dd010489839af6170ecfd22a9905d7758"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: 1/3 of this repository\u0027s type-checking configuration(s) turn on strict null checking (\u0060\u0022strict\u0022: true\u0060, or \u0060\u0022strictNullChecks\u0022: true\u0060). A configuration that states neither is counted as OFF, because off is tsc\u0027s own default; a solution-style one whose \u0060\u0022files\u0022\u0060 is empty and whose \u0060\u0022references\u0022\u0060 point at other projects is in neither number, because it checks no source itself. Where it is off, \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060: passing a value that is null compiles silently and throws on the first property access."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~0.2 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 22 assertion(s) across the 88930 source line(s) of the 979 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: ui-v2/src/graphs/factories/runEvents.ts (5), ui-v2/src/graphs/workers/layouts/nearestParentVertical.ts (5), ui-v2/src/graphs/factories/runArtifacts.ts (4). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060Loading upcoming runs...\u0060 under \u0060! paginatedData || totalCount === undefined\u0060, but \u0060paginatedData\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-upcoming-runs-tab/work-pool-queue-upcoming-runs-tab.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"4482b5f4a7e122931a3f8a9903236c613e4ae83b07a7d2b16a70e76718193738"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060Loading flow runs...\u0060 under \u0060! paginatedData || totalCount === undefined\u0060, but \u0060paginatedData\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-queue-runs-tab/work-pool-queue-runs-tab.tsx"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fb8c2b79d5f890c7e14ee9b2730dcb7cdd403e2b15f9298124bc2b788bc95c"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060Loading flow runs...\u0060 under \u0060! paginatedData || totalCount === undefined\u0060, but \u0060paginatedData\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-flow-runs-tab/work-pool-flow-runs-tab.tsx"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a92fa86895698d23acba14d80643ea448b71a859b766fbf8978ec171e736555"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060Loading work pool details...\u0060 under \u0060isLoading\u0060, but \u0060isLoading\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-details/work-pool-details.tsx"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d77f75c262d0a806b71941b9c663b4f90b8c4b9ee6ab652d4befa94861226e5"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060Loading deployments...\u0060 under \u0060! paginatedData || totalCount === undefined\u0060, but \u0060paginatedData\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui-v2/src/components/work-pools/work-pool-deployments-tab/work-pool-deployments-tab.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4662131cfd0c747d1181dd63b5a65fd5b839eec245085e351add762e6481a17"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060Loading events No events\u0060 under \u0060startDate \u0026\u0026 endDate\u0060, but \u0060startDate\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/pages/Events.vue"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2e0d1649feccfadafdad1daec9e66fa0b06a1b45ec1753f13dab1e79d2da82"}},{"ruleId":"X7","level":"note","message":{"text":"Pending state with no failure state: The view draws \u0060Loading events\u0060 under \u0060loading \u0026\u0026 empty\u0060, but \u0060loading\u0060 is settled by a load that can fail and the component draws no failure state, so a failed load is shown as \u0022not yet\u0022 for ever, or as the loaded state over its initial value. Give the component a failure state and draw it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ui/src/pages/Events.vue"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"752c05df534c85c3bdca16da11baa920ec3953a610523439289251b1e5a69846"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extract_links\u0060 swallows every exception into \u0060return set()\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":"scripts/all_links_should_be_ok.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d7e9c96d4a049c112f74502fd3f11b5d6f43b8b932f439798ee818079f023b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_load_expiration_index\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, KeyError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/prefect/server/concurrency/lease_storage/filesystem.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e41bedfc1dc52950812d501a744a3bd9f128363cd2ec3664a0890c10543527f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_open_file_limit\u0060 swallows every exception into \u0060return 200\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":"src/prefect/utilities/filesystem/__init__.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"909035f028624b9bf061b1149e14fa0cc594e6529f3ca64f5eae507f3084ab51"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getLocalTimezone\u0060 swallows every exception into \u0060return \u0022UTC\u0022\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":"ui-v2/src/utils/date.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7603bb22042ebe87a22af7f201d729977cbce8a1d075698fb5a0f80a915308"}}],"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-116","guid":"c0134ca8-adc7-6959-bd17-5253a265d101","name":"Improper Encoding or Escaping of Output","shortDescription":{"text":"Improper Encoding or Escaping of Output"},"helpUri":"https://cwe.mitre.org/data/definitions/116.html"},{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"Improper Certificate Validation","shortDescription":{"text":"Improper Certificate Validation"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-611","guid":"1afbae66-ea29-2d59-aaa2-134e3ae2e85a","name":"Improper Restriction of XML External Entity Reference","shortDescription":{"text":"Improper Restriction of XML External Entity Reference"},"helpUri":"https://cwe.mitre.org/data/definitions/611.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.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"},{"id":"CWE-942","guid":"a5e9f9ae-e5c1-215b-b5ef-9b85aa6b4828","name":"Permissive Cross-domain Policy with Untrusted Domains","shortDescription":{"text":"Permissive Cross-domain Policy with Untrusted Domains"},"helpUri":"https://cwe.mitre.org/data/definitions/942.html"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-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":128,"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."]}]}