{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"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":"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":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"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":"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":"AddCommand.handle (cyclomatic 63): AddCommand.handle has cyclomatic complexity 63 (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/poetry/console/commands/add.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"718d43dc86873e0f1ddde7daea2a4dde3f0ddddfc7cefe9b71f28017eefc5641"}},{"ruleId":"D1","level":"warning","message":{"text":"Provider.complete_package (cyclomatic 63): Provider.complete_package has cyclomatic complexity 63 (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/poetry/puzzle/provider.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28aba5b7fe733871f44561e6787437944232e056589848a9475d403d0c841de"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigCommand.handle (cyclomatic 52): ConfigCommand.handle has cyclomatic complexity 52 (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/poetry/console/commands/config.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3aa6d10b488cbb8852c43b34136d95ba50fd7aa7c055df219ef52f31e4f91d"}},{"ruleId":"D1","level":"warning","message":{"text":"ShowCommand._display_packages_information (cyclomatic 44): ShowCommand._display_packages_information has cyclomatic complexity 44 (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/poetry/console/commands/show.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"466b77a13f7cadce2b28f4a907003983a4ecbac2955de13ef74db7b9e835bd36"}},{"ruleId":"D1","level":"warning","message":{"text":"InitCommand._init_pyproject (cyclomatic 40): InitCommand._init_pyproject has cyclomatic complexity 40 (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/poetry/console/commands/init.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa09c8e732b5f38a2298d4c295b9f7320a3c1708f030eb0b073dd7479fa5900f"}},{"ruleId":"D1","level":"warning","message":{"text":"Transaction.calculate_operations (cyclomatic 37): Transaction.calculate_operations has cyclomatic complexity 37 (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/poetry/puzzle/transaction.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5b06130cbf9ab984b8c83e73cdba6b15f62b91ca2a2074451d85dbfd04ae0f"}},{"ruleId":"D1","level":"warning","message":{"text":"Locker._dump_package (cyclomatic 35): Locker._dump_package 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/poetry/packages/locker.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a4ef0456d29edf7443e3500e18777453475f192aa32de104cec3c01a683194"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPRepository._get_info_from_links (cyclomatic 35): HTTPRepository._get_info_from_links 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/poetry/repositories/http_repository.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad75f760db4e7003b3f18e8e718636a9eb2326360c2bf6af41207fd3c9e6126c"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoveCommand.handle (cyclomatic 34): RemoveCommand.handle has cyclomatic complexity 34 (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/poetry/console/commands/remove.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbaba4d95f8be457ce8201f581283ade6666962d3778f0347e51fa2de09b8560"}},{"ruleId":"D1","level":"warning","message":{"text":"Installer._do_install (cyclomatic 33): Installer._do_install 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/poetry/installation/installer.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"27644f2bc9556cdf816785ee638ade09e63f0c55c29fba1a53b331e14aa2757f"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor._execute_operation (cyclomatic 26): Executor._execute_operation 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/poetry/installation/executor.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a2f30a42f40870d72f207dc8e0f8c7c5979883302968d5fcc1e2beece05af5"}},{"ruleId":"D1","level":"warning","message":{"text":"Factory.create_legacy_pyproject_from_package (cyclomatic 23): Factory.create_legacy_pyproject_from_package 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/poetry/factory.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6567d77a39506216c2ded5712da031eb922e6d02f4457ec212825026cd32e70"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.execute (cyclomatic 23): Executor.execute 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/poetry/installation/executor.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"11740fa5296e4a32e09164caae12b30a3dce55e197932bfbfcefc4172f79942a"}},{"ruleId":"D1","level":"warning","message":{"text":"_Writer._visit (cyclomatic 23): _Writer._visit 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/poetry/mixology/failure.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf8dff1992863eb4016fa89334ebe0dd00cc9196430e76e124fea2832333bac"}},{"ruleId":"D1","level":"warning","message":{"text":"InstallCommand.handle (cyclomatic 21): InstallCommand.handle 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/poetry/console/commands/install.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"de30b1507e1c5ab6959510f9cb165e027d59c4eca3f1dc29a11506f2e1ee1afc"}},{"ruleId":"D1","level":"warning","message":{"text":"Incompatibility.__str__ (cyclomatic 21): Incompatibility.__str__ 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/poetry/mixology/incompatibility.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c9c58ee76c8e5ff3ce9c9ac60b3cc1b071950b491aa62e83a6fee855850e0b"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectPluginCache.ensure_plugins (cyclomatic 21): ProjectPluginCache.ensure_plugins 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/poetry/plugins/plugin_manager.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a67bab6b8a77b2e26e6a9a93951a8109aaa29474f57c4c62261d6b708030699"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoveCommand._remove_references_to_group (cyclomatic 20): RemoveCommand._remove_references_to_group 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/poetry/console/commands/remove.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1741f035c6c8366a648e8c02dcffd8eb6915f5238d0273b595012525bb87b43"}},{"ruleId":"D1","level":"warning","message":{"text":"PackageInfo.to_package (cyclomatic 20): PackageInfo.to_package 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/poetry/inspection/info.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cec68a5bf4b117dc130ee5fd7c90f6f4c79c60e4bf43d9430f25b1edb9e276c"}},{"ruleId":"D1","level":"warning","message":{"text":"Locker._get_locked_package (cyclomatic 20): Locker._get_locked_package 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/poetry/packages/locker.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"fece8ea2e90a801fa4112dc8c32bbae7fbb4e8a47e940f503f88b6b061298cbf"}},{"ruleId":"D1","level":"warning","message":{"text":"InitCommand._determine_requirements (cyclomatic 19): InitCommand._determine_requirements 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/poetry/console/commands/init.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"2847454a514eb52ab4ab12107fc6257e7c00f756c5d94d5859557aeec0e52fcd"}},{"ruleId":"D1","level":"warning","message":{"text":"VersionSolver._resolve_conflict (cyclomatic 19): VersionSolver._resolve_conflict 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/poetry/mixology/version_solver.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93222013b69e2f91edfc522b75c4ee571b21134080197477403ec27c7b864eb"}},{"ruleId":"D1","level":"warning","message":{"text":"CheckCommand.handle (cyclomatic 18): CheckCommand.handle 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/poetry/console/commands/check.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"201b6c0b6e1bbf0b535959bb4fa6d19048c990015100eca359d9dbc814de2e49"}},{"ruleId":"D1","level":"warning","message":{"text":"VersionSolver._get_comp_key (cyclomatic 18): VersionSolver._get_comp_key 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/poetry/mixology/version_solver.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a16a32b38446aac9b0cd6bcd33090f522f75ba5d9ff8c674099d7d304683ae"}},{"ruleId":"D1","level":"warning","message":{"text":"ShowCommand.handle (cyclomatic 17): ShowCommand.handle 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/poetry/console/commands/show.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"348f1fee82673454490fa3f8ea6b65517e658e310d83f733d13ca88aab053dcd"}},{"ruleId":"D1","level":"warning","message":{"text":"ShowCommand._display_single_package_information (cyclomatic 17): ShowCommand._display_single_package_information 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/poetry/console/commands/show.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d7d737cbbd29e278c61e1e19338ce5d9dfcc2b428612c6f085fb869a42b994"}},{"ruleId":"D1","level":"warning","message":{"text":"Authenticator.request (cyclomatic 17): Authenticator.request 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/poetry/utils/authenticator.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e2f8c4df2b225cd16feb0de02f8533ba474e44f8e06bd4c900874d5bfd131c"}},{"ruleId":"D1","level":"warning","message":{"text":"Layout.generate_project_content (cyclomatic 16): Layout.generate_project_content 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/poetry/layouts/layout.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fe86f34493bed1683775e627f162300bdc8b18b9ab5c9d302145c9bea49cb7"}},{"ruleId":"D1","level":"warning","message":{"text":"Incompatibility._try_requires_through (cyclomatic 16): Incompatibility._try_requires_through 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/poetry/mixology/incompatibility.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"33db10cec9ae771705d5da8de7bee89adac7155a450959b02c8e7a31d9355cd0"}},{"ruleId":"D1","level":"warning","message":{"text":"Term._relation (cyclomatic 16): Term._relation 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/poetry/mixology/term.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce9d70039a31b4dc36055f687e6f891eb22617100d6411515da46a537c16156"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider.complete_package (cognitive 129): Provider.complete_package has cognitive complexity 129 (threshold 15). Drivers by points: if/else 39 (85 pts), loops 13 (25 pts), boolean chains 13, ternaries 2 (6 pts) (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into 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/poetry/puzzle/provider.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"104e41254c6bff31f5be7119a4d25d54c804912a843e7784359f4f4e35ff6a78"}},{"ruleId":"D2","level":"warning","message":{"text":"AddCommand.handle (cognitive 128): AddCommand.handle has cognitive complexity 128 (threshold 15). Drivers by points: if/else 44 (86 pts), loops 6 (18 pts), boolean chains 12, ternaries 4 (9 pts), error handling 1 (3 pts) (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into 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/poetry/console/commands/add.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63242f5455e4c934fe3997b6862fb9dd6f18fa64f83c75eb5654dc025ed4708"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCommand.handle (cognitive 109): ConfigCommand.handle has cognitive complexity 109 (threshold 15). Drivers by points: if/else 48 (93 pts), loops 2 (6 pts), ternaries 1 (4 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into 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/poetry/console/commands/config.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4c3f476a52025923a42e3dd52a5ec806047c933b3463820c150009c0564b3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ShowCommand._display_packages_information (cognitive 98): ShowCommand._display_packages_information has cognitive complexity 98 (threshold 15). Drivers by points: if/else 33 (85 pts), boolean chains 8, loops 3 (4 pts), ternaries 1 (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into 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/poetry/console/commands/show.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb04c9ba513d3d730dae1541f94a5a3c3c9b2990599e248e5ef9c445aabc513e"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction.calculate_operations (cognitive 72): Transaction.calculate_operations has cognitive complexity 72 (threshold 15). Drivers by points: if/else 23 (56 pts), boolean chains 10, loops 3 (6 pts) (nesting depth added 36). 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/poetry/puzzle/transaction.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c623aa3a282b9f1488873a8ab46ddfa7a0ac974086c62c25f155e1060ac51e"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoveCommand.handle (cognitive 63): RemoveCommand.handle has cognitive complexity 63 (threshold 15). Drivers by points: if/else 22 (50 pts), boolean chains 11, loops 1 (2 pts) (nesting depth added 29). 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/poetry/console/commands/remove.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2b3c27f0922b875917a77ab25dea31402398abb267444cf1444278601e44c0"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPRepository._get_info_from_links (cognitive 63): HTTPRepository._get_info_from_links has cognitive complexity 63 (threshold 15). Drivers by points: if/else 17 (39 pts), boolean chains 13, loops 4 (11 pts) (nesting depth added 29). 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/poetry/repositories/http_repository.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f7b9989014fd6534d8dd14272deb3d32087ffaaa48a14123646eb7ccdb9683"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer._do_install (cognitive 62): Installer._do_install has cognitive complexity 62 (threshold 15). Drivers by points: if/else 24 (43 pts), loops 5 (11 pts), boolean chains 8 (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/poetry/installation/installer.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f48773cd5951149dfbf50b86d315d9b827b76cac1c4e338f166ff4b1d70a29"}},{"ruleId":"D2","level":"warning","message":{"text":"Locker._dump_package (cognitive 60): Locker._dump_package has cognitive complexity 60 (threshold 15). Drivers by points: if/else 26 (51 pts), loops 4 (7 pts), boolean chains 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/poetry/packages/locker.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04df22ad449c280d624ad037f732ff489e03889394b11ee2690f7ac1c0c6993"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor._execute_operation (cognitive 57): Executor._execute_operation has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (44 pts), loops 2 (9 pts), error handling 3, boolean chains 1 (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/poetry/installation/executor.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"72aaffd9a706801323ac2b5e0f687f172df0c50de6fe1657dc04aa923d0db855"}},{"ruleId":"D2","level":"warning","message":{"text":"solver.calculate_markers (cognitive 57): solver.calculate_markers has cognitive complexity 57 (threshold 15). Drivers by points: loops 9 (37 pts), if/else 4 (20 pts) (nesting depth added 44). 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/poetry/puzzle/solver.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"2714d64452f2d1f7d954953e59711029ae91ec51ae606db9acb0586a61fba1db"}},{"ruleId":"D2","level":"warning","message":{"text":"InitCommand._init_pyproject (cognitive 49): InitCommand._init_pyproject has cognitive complexity 49 (threshold 15). Drivers by points: if/else 26 (33 pts), boolean chains 10, loops 2 (4 pts), ternaries 2 (nesting depth added 9). 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/poetry/console/commands/init.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2122f3de1aaff26f958dc91aa58b4b56194d251e0af1f8038b6cfa38e397b8f7"}},{"ruleId":"D2","level":"warning","message":{"text":"Locker._get_locked_package (cognitive 45): Locker._get_locked_package has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 4 (13 pts), error handling 1 (5 pts), boolean chains 2 (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/poetry/packages/locker.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5d923d90427e05462617b914f66801dc4ac2dc7e1fa5846d9a4dff09c5aec9"}},{"ruleId":"D2","level":"warning","message":{"text":"InitCommand._determine_requirements (cognitive 43): InitCommand._determine_requirements has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (37 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into 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/poetry/console/commands/init.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbac5c05a768c698c62ccc15485b8433044d83e1d6d1c9297799ec30efc5566d"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoveCommand._remove_references_to_group (cognitive 42): RemoveCommand._remove_references_to_group has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 7 (15 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/poetry/console/commands/remove.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"028ec7555b967d1e43ae2e397cf13397b28aa55dea99482d960ce477672858a7"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionSolver._resolve_conflict (cognitive 42): VersionSolver._resolve_conflict has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 4 (8 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into 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/poetry/mixology/version_solver.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f383d6c7b9a6e99e4d845eb31a8c413428eb6f6b347458d4d4f068bf222ed53"}},{"ruleId":"D2","level":"warning","message":{"text":"_Writer._visit (cognitive 39): _Writer._visit has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 5 (13 pts), boolean chains 7 (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/poetry/mixology/failure.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2f305b74674e87da9610d8f17c0e771ed58d3ff62353effafdf302f7583bba"}},{"ruleId":"D2","level":"warning","message":{"text":"solver.merge_override_packages (cognitive 37): solver.merge_override_packages has cognitive complexity 37 (threshold 15). Drivers by points: loops 12 (30 pts), if/else 3 (7 pts) (nesting depth added 22). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/puzzle/solver.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e8be835d390c890f60826d2c6ed0d88b12db48527b659a8fd742b78fbcaeb0"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.execute (cognitive 36): Executor.execute has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 8 (11 pts), boolean chains 4, error handling 1 (2 pts), 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/poetry/installation/executor.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ed090d667894f1828c2999af9b14d9cb36438e794197a05c45a331685a1fe0"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionSolver._get_comp_key (cognitive 35): VersionSolver._get_comp_key has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (24 pts), error handling 1 (5 pts), loops 1 (4 pts), boolean chains 2 (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/poetry/mixology/version_solver.py"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6e259a643790bcb033265c1be2d1246ba3c61c1981e5f52e0c4ffb2f0bcb68"}},{"ruleId":"D2","level":"warning","message":{"text":"Factory.create_legacy_pyproject_from_package (cognitive 34): Factory.create_legacy_pyproject_from_package has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 5 (9 pts), boolean chains 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/poetry/factory.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d785e2535e613a2d46b389291d097b49ccd8129dfd50e85f3f85eba7e1a0e31"}},{"ruleId":"D2","level":"warning","message":{"text":"InstalledRepository._create_package_from_distribution (cognitive 34): InstalledRepository._create_package_from_distribution has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (28 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 23). 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/poetry/repositories/installed_repository.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cc27f4ff6ad6a562b9a6082d9358f9a50e32e86599a3a661208b3a035dae5d"}},{"ruleId":"D2","level":"warning","message":{"text":"Term._relation (cognitive 32): Term._relation has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 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/poetry/mixology/term.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a37a1811e96753cd3b50085348176548e057f6915dd4cdd39b1f5dcc3c4656"}},{"ruleId":"D2","level":"warning","message":{"text":"ShowCommand._display_single_package_information (cognitive 31): ShowCommand._display_single_package_information has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 3 (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/poetry/console/commands/show.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"381404d5c6d8dc0ef66d6c44c825f85b13e3acf9904ad291b0c28862337f08b7"}},{"ruleId":"D2","level":"warning","message":{"text":"PackageInfo.to_package (cognitive 31): PackageInfo.to_package has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (7 pts), boolean chains 4, error handling 2 (4 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/poetry/inspection/info.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6833f1ce5cebcaa667647a14f8db9c8d8301cb4c65e683e49893cc08ccb88988"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectPluginCache.ensure_plugins (cognitive 31): ProjectPluginCache.ensure_plugins has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (23 pts), loops 3 (4 pts), boolean chains 2, ternaries 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/poetry/plugins/plugin_manager.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d106be5a3ee5fc3ac6933b7b9589cdc8a7037dea6a1ae3da50c283b594231c"}},{"ruleId":"D2","level":"warning","message":{"text":"InstalledRepository.load (cognitive 31): InstalledRepository.load has cognitive complexity 31 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 3 (7 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (3 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/poetry/repositories/installed_repository.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56409bbd647ed61b9a39fff7f97d72e03568f27c1f9e6f2b8d5ba6508b4333c"}},{"ruleId":"D2","level":"warning","message":{"text":"Solver._aggregate_solved_packages (cognitive 30): Solver._aggregate_solved_packages has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 3 (9 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/poetry/puzzle/solver.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ccf6e221765df88a7dca9171ea286aa6addd506d0c1f0854a200eb5aa6d0a8"}},{"ruleId":"D2","level":"warning","message":{"text":"HTMLPage._link_factory_cache (cognitive 29): HTMLPage._link_factory_cache has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (4 pts), ternaries 1 (3 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/poetry/repositories/link_sources/html.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"135f6e54c799f93cbbdc965f5a370489f524310d66cc1be4ba7c2d9f4f2764ef"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider._resolve_overlapping_markers (cognitive 28): Provider._resolve_overlapping_markers has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 3 (5 pts), ternaries 2 (4 pts), boolean chains 3 (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/poetry/puzzle/provider.py"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"354eb2c346ee012ef083a27a9f78b1fad9fb1a795821c047f7d3993962235971"}},{"ruleId":"D2","level":"warning","message":{"text":"DebugResolveCommand.handle (cognitive 27): DebugResolveCommand.handle has cognitive complexity 27 (threshold 15). Drivers by points: loops 6 (13 pts), if/else 7 (12 pts), boolean chains 2 (nesting depth added 12). 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/poetry/console/commands/debug/resolve.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f721fae8b99e94507841564be52551316f4d0d4ba2b2077c85b65847103bbdb3"}},{"ruleId":"D2","level":"warning","message":{"text":"EditableBuilder._add_scripts (cognitive 27): EditableBuilder._add_scripts has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3, ternaries 1 (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/poetry/masonry/builders/editable.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6f7af5b07736e117138beb35786713bc0e1140b0dbfc2b6c79f476d8c55e6f"}},{"ruleId":"D2","level":"warning","message":{"text":"Incompatibility.__str__ (cognitive 27): Incompatibility.__str__ has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 3 (8 pts), boolean chains 1, 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/poetry/mixology/incompatibility.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"46145134b1c75ca1054bb768b7b4de4bd03a3888c764f089292568235b27441e"}},{"ruleId":"D2","level":"warning","message":{"text":"Layout.generate_project_content (cognitive 25): Layout.generate_project_content has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19 (22 pts), loops 2 (3 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/poetry/layouts/layout.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0fff54994ddb766139ab492103239a2d7fecf49f1b4d9d02971ff66089a025"}},{"ruleId":"D2","level":"warning","message":{"text":"Provider.debug (cognitive 24): Provider.debug has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (23 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/poetry/puzzle/provider.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9c53b5d1be3494b01f5e3be611d0e96f7c8d7654eb457ded35c425b1e96595"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.get (cognitive 23): Config.get has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2, loops 2 (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/poetry/config/config.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6eee9d0692605ad28bbc3c1c52257cbde3abbcf278c9186fe24e3b26cc0f3fe"}},{"ruleId":"D2","level":"warning","message":{"text":"Incompatibility.__init__ (cognitive 23): Incompatibility.__init__ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (4 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/poetry/mixology/incompatibility.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cb11c3a8c61ff7f82f9b3e1d50946f879873d4d18092cc3824ffb09df23266"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPRepository._links_to_data (cognitive 23): HTTPRepository._links_to_data has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/repositories/http_repository.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f222ac37c472fceb048f658bb13cc1f4b0ef00628f49bb38edb46274b19b8579"}},{"ruleId":"D2","level":"warning","message":{"text":"Authenticator.request (cognitive 23): Authenticator.request has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, error handling 1 (2 pts), loops 1, 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/poetry/utils/authenticator.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"533c531fa2fc912c9bbe1204d94ebcbe1472772d8e7d8fcd7dc2740071f55342"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallCommand.handle (cognitive 22): InstallCommand.handle has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, boolean chains 7, loops 1 (2 pts), error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/console/commands/install.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e82d5f42d841c966cc939119962a2ea9a5346203506e663ac64fe48253701d"}},{"ruleId":"D2","level":"warning","message":{"text":"_Writer.write (cognitive 22): _Writer.write has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/mixology/failure.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ac6d1dfb961fc67a4e318a7fce31e03cf88462e147e02b23166024508d0cf7"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionSolver._recover_from_marker_conflict (cognitive 21): VersionSolver._recover_from_marker_conflict has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/mixology/version_solver.py"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60aca583a9ce524fdd37c0e6471f7e8ea6edbf6e594a178f1c2bc975e9e4ca4"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckCommand._validate_dependencies_source (cognitive 20): CheckCommand._validate_dependencies_source has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (8 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/poetry/console/commands/check.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4cd36d368ab9e8ec014164a6e000b54cd9958247f14ae7fa9b832ace695035"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckCommand.handle (cognitive 20): CheckCommand.handle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, loops 2 (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/poetry/console/commands/check.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af741067da358e381db5c39c49e6169454db0258526d47505d7098d1831ccad"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonListCommand.handle (cognitive 20): PythonListCommand.handle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (6 pts), boolean chains 3, 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/poetry/console/commands/python/list.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a6adb8fc05917dc1735f762fc887200d8a29f318a33fcc1d8a9e9e50420eaf"}},{"ruleId":"D2","level":"warning","message":{"text":"ShowCommand.handle (cognitive 20): ShowCommand.handle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 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/poetry/console/commands/show.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacab996df93f7eb8dde5d446fa784e82b9683ab67cc5d6e01b1c0f3562de759"}},{"ruleId":"D2","level":"warning","message":{"text":"SelfShowPluginsCommand._system_project_handle (cognitive 19): SelfShowPluginsCommand._system_project_handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (7 pts), ternaries 1 (2 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/poetry/console/commands/self/show/plugins.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3963117174c6554fa58c29098b77daf1795c4f3c0cbed9c2a6204ca5b8cb415b"}},{"ruleId":"D2","level":"warning","message":{"text":"Chooser.choose_for (cognitive 19): Chooser.choose_for has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 5, 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/poetry/installation/chooser.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bd18b332760ed77380dbd776a8ed9766c5775092c2158e04756c2acce1217d"}},{"ruleId":"D2","level":"warning","message":{"text":"Incompatibility._try_requires_through (cognitive 19): Incompatibility._try_requires_through has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 4 (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/poetry/mixology/incompatibility.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"963e71a6e90357437686afebc0a87610a9aa658dfe61a7818d623f234219617e"}},{"ruleId":"D2","level":"warning","message":{"text":"Publisher.publish (cognitive 19): Publisher.publish has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3 (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/poetry/publishing/publisher.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab87d9c92b0da6e4866ffb10c8ec056f5bc21736dc16716ee3f098c2c97c559c"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheClearCommand.handle (cognitive 18): CacheClearCommand.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), 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/poetry/console/commands/cache/clear.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f79a48634ab73323b87fffaa9cff8368e007c50191436ab8be0c1c92c86ef43"}},{"ruleId":"D2","level":"warning","message":{"text":"Factory.create_poetry (cognitive 18): Factory.create_poetry has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 4 (7 pts), ternaries 1 (3 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/poetry/factory.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"16aa15960257904ab87aa58580bff78b2bbe06bba65b9b10173ba444d46fcadb"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.extractall (cognitive 18): helpers.extractall has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (8 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/poetry/utils/helpers.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86f5588c16f5d98a44787a9b8fe60996e0e3c3762f83aa86da0eed329c10e83"}},{"ruleId":"D2","level":"warning","message":{"text":"Git._clone (cognitive 18): Git._clone has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 4 (5 pts), boolean chains 2, 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/poetry/vcs/git/backend.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"35871a4d0d932cdc62316b0272e2e39068f1b1735b98bbf116ab3a41638b34c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Application._run (cognitive 17): Application._run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 1 (3 pts), boolean chains 2, error handling 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/poetry/console/application.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c9696b78f97d46ff0d81c04acb4b335c7ff611785de4b4d4e9b8704351becd"}},{"ruleId":"D2","level":"warning","message":{"text":"Application._configure_run_command (cognitive 17): Application._configure_run_command has cognitive complexity 17 (threshold 15). Drivers by points: error handling 2 (7 pts), boolean chains 3, if/else 2 (3 pts), loops 1 (2 pts), 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/poetry/console/application.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"e088966cf684c7f5f1c6f9dbecebbd359b49edb2477bea9ea8aed84c87df3f69"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishCommand.handle (cognitive 17): PublishCommand.handle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 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/poetry/console/commands/publish.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2268eb720c83ea51c542c600481ca51e6ad88488b0f2d36e09aa0c8c45b737ac"}},{"ruleId":"D2","level":"warning","message":{"text":"GitRefSpec._normalise (cognitive 17): GitRefSpec._normalise has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 6, loops 2 (4 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/poetry/vcs/git/backend.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"195ed946dadebddb188dbac1348ba114370ee628cb297ecefc0148311d673164"}},{"ruleId":"D2","level":"warning","message":{"text":"Incompatibility._try_requires_forbidden (cognitive 16): Incompatibility._try_requires_forbidden has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/mixology/incompatibility.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"831606527d17b7ddd54465215b8f45fd242ab7e21260892a3cb4cdd1f263ce02"}},{"ruleId":"D2","level":"warning","message":{"text":"Uploader._upload_file (cognitive 16): Uploader._upload_file has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/publishing/uploader.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6dc7c3aa173132be47f06b9ff9805c3c4aeefe94c0e0334d9b617e4a1c400f"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtifactCache._get_cached_archive (cognitive 16): ArtifactCache._get_cached_archive has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, 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/poetry/utils/cache.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0a2c8d506e579416b7122000d12bd68b1017fe8d4ad1bb145ce6385f760a67"}},{"ruleId":"D2","level":"warning","message":{"text":"RequirementsParser._parse_simple (cognitive 16): RequirementsParser._parse_simple has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 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/poetry/utils/dependency_specification.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3f5287e391bb88ff54059d9a45204aa6754f551e4e99040f91351ae70fcab7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: installation/executor.py: FileTooLong \u2014 719 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 219 over it, 1.44\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/poetry/installation/executor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7603121a69af1ca6c42febd96abd94102ebfe97ea7b9271173e8e04de0517faa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: puzzle/provider.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/poetry/puzzle/provider.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ac3410aa61781f3c81697ec8b08cd1bb5daeeea7adfb27e2f65bb7548a43b9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Executor: 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/poetry/installation/executor.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5ee262bf94158452ce42c2f0f9bf4aca0f2b8b5f458f3e9c26a55bbe2ea2e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/show.py: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4 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/poetry/console/commands/show.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2737160888c3ec15d24975fe9f70904722a169a135595420405fdc4beb603b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/poetry/inspection/info.py:310-325 | src/poetry/installation/chef.py:101-115 \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/poetry/inspection/info.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3376b6f69f06963178e905d690fefe80747ab62bb592afa1386b29411f94219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/poetry/console/commands/show.py:351-364 | src/poetry/console/commands/show.py:369-381 \u2014 both copies are in the same file, so extract the block 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/poetry/console/commands/show.py:351\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/poetry/console/commands/show.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a66639129f503746c6dfcf8c90a5e578269cacfa6e70b16d7f8ad585eae8d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/poetry/puzzle/provider.py:879-890 | src/poetry/puzzle/provider.py:922-933 \u2014 both copies are in the same file, so extract the block 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/poetry/puzzle/provider.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a65fabda532dda7bc88695e2877327f741838664e880ff19c37dfee84f5d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/poetry/mixology/incompatibility.py:325-333 | src/poetry/mixology/incompatibility.py:390-398 \u2014 both copies are in the same file, so extract the block 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/poetry/mixology/incompatibility.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"f130f1e35f106c14a753c8a1cb2c88ddd0cc641d1824a6ea72af17c90f6add2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/poetry/console/commands/init.py: src/poetry/console/commands/init.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in InitCommand._init_pyproject at line 85. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 07:47:19 \u002B01:00\u0027 --until=\u00272026-11-15 07:47:19 \u002B01:00\u0027 --full-history --no-merges -- src/poetry/console/commands/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/poetry/console/commands/init.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6880c80efe9c27cbc0731f95a152ea8ef2c28224773667a202581be968679397"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 2 significant file(s) lose their only recent owner: src/poetry/puzzle/solver.py, src/poetry/mixology/term.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c181e27248440096eddc4dcbc5cea0d50546a1f9542c54dc232cb25a54c83581"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Asses if Poetry needs to discover real path in these cases as \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/utils/test_python_manager.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2f4e49c133a660edc814b68e35ff554e6d86566f040958c821a74b8ab4553a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: At the time of writing this test case, the markers from self-ref extras are not \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/puzzle/test_solver.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"7011fce6e4c0c0a5d16d4d497e3d7333010ed438df29f8404b619e271dde5ea1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: At the time of writing this test case, the markers from self-ref extras are not \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/installation/test_installer.py"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95b1cf3838cfacacb71ff5c38d668d87c77dba7d95b4dd5d3018010d4d69242"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: root extras \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/puzzle/test_solver_internals.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab930a1d274d82ad56bc54fa4d8db4d2ed9fca23e4da129f37c895ccd5545f97"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Find a better way to do this in Cleo \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/console/conftest.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c69e56c340e773978dca7a43e232f65f5ff9d2a5bba31754b4f07f0b12f8bac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: consider [project.dependencies] and [project.optional-dependencies] \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/poetry/factory.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3860f0749c8a0a7786fafcc75255cc7c30eaa6bdd6efa57182f54a9cc872b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove check as soon as this is handled in poetry-core \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/poetry/utils/cache.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8841a0ef18f401260147317de00413aa0fb8b09e58f2fdc8f4f64b9e28f178"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove check as soon as this is handled in poetry-core \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/poetry/repositories/http_repository.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94487a512bc4bff349220b891dc9a4cd5727c573891b4ed6312840c7af89903"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: cache PEP 517 build environment corresponding to each project venv \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/poetry/utils/env/__init__.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f394f743e44584b2aca0ef5633dc25a15d1bccf2a02e556576c62ac7beaaa853"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Consider replacing (-I) with (-EP) once support for managing Python \u003C3.11 environments dropped. \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/poetry/utils/env/base_env.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"855ffec1e0785c1b5f3cc4a6fcb52c7423348a965b8849223303dcba0ddec5fe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add backup-ignore markers for other platforms too \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/poetry/utils/env/env_manager.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cec674e9ff6894b335704a528d05812b4fd20b5058e4efd2b2efdfc855f5637"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: handle multiple source directories? \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/poetry/repositories/installed_repository.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8741901cc844ddedbd00322ab2194a832f1539422b81215cb9dc9085cbb6f381"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: In the future, it would be better to suggest a more targeted \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/poetry/installation/chooser.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a772ec5e06d95553d03ef3fa14cc28841181bc2e1f1b28b62c96dc63b1a345"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Binary preference \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/poetry/installation/chooser.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"64119c3a213a03a1c886a91b62db5c98c943f95120a31d6ad8e29430fa30cf78"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Revisit once upstream fix is available https://github.com/python-poetry/cleo/issues/454"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/installation/executor.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da1bf02867f57f77c818c9d94928d72e991adb911ad0b7533f1195d65fdd5e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add support for handling non-poetry PEP-517 builds"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/inspection/info.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"002f051433f28055f6c8ad3e04b918bdcc5bd56d349a3729b80c5a408f0a3883"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this should move into poetry-core \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/poetry/console/commands/group_command.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"439c81464ef4ce39120441b2a9ad0e2650c8dc44d21c93f1035cb97b5c91e656"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: find similar \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/poetry/console/commands/init.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea870c2c9ca30a9b6d7be6ba1f2c96c61d09ed8015c45b1965211394a312e3f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: refactor env.py to allow removal with one 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/poetry/console/commands/env/remove.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0030a67eb9b2a5b31cc9b83c7d517e7dd293a2d8608175b59f277f5b4c151fa2"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060pyproject.toml\u0060 makes this repository a deployable product (line 56)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f93f7a2c78f190233679ac8202a9f8e691d2305d697b777ee579589e9c4bff1"}},{"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":"bd3b61d9662359e998f4d79ececae928d3456de77557b95e625d7c6db9473842"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"71b639f71bc0ab7d98a1f7ce8e99920ca79932bd9e356ddcbd44b77b62db35ba"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7474c72a538b21a42abd5f629cb69f2636cbea5608b15ced16d35cdca776eb7a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"93278a93d7836887f86bcb7504c2545e3ee78c0d377e613b50d349bfc7fd18d5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15c508dcdd25f4f6b10abf35c371b11fdc93385da4df50117ce280069c32a535"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7747b937eb56376448cd66a5a86a1323b25478ad85734767f1fc153a578e5b8c"},"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":"1d07c7b25f246ca5146db3235adc9c18c295688d44b0db3a48617039051a91b5"},"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":"780b5dcf99d3461d27427a524a7c2c9f1b6f122fa74e92b2e72d36f6f67efb74"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0731d7197a365fc7dd053cf4c2234596f247e93e7af2ed8bddfd389f3961924f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"575716a44e489b0ff5d5bcbb193fef37e9c3a78f234c00383221c9d2a9cdde55"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"00cf88ffe541d64028732a76312e2cc10789bda406e1ff83c45066fff571895b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5f8567120bc99bc55b402b2317b141bc30795831c097e3156307857d9795acae"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e9690e62ead336cbb88b11974407df2fac1e0704d662bf7a92bf86a6b4921ce"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"469c86ca00cfff957c0198fcd5f64aa39801985828f6cc8b430c4838978e1545"},"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":"7e55f585229f8189ff7e9ce87b8510c4dcd03647866c5e78017918707131a1c0"},"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":"9c67920b2d2e5f791b1946a4fd4323f17ef505435bab1d2460f2a26ab02f765e"},"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":"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":"6818d20c36e433e373716b7528086b176ff12a18effcb78f727430e02d73954e"},"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 25 of 86 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (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; 86 of the 193 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: src/poetry/mixology/incompatibility.py, src/poetry/mixology/failure.py, src/poetry/utils/cache.py, src/poetry/utils/password_manager.py, src/poetry/utils/isolated_build.py, src/poetry/console/commands/build.py, src/poetry/console/commands/check.py, src/poetry/console/exceptions.py (and 17 more). 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/poetry/mixology/incompatibility.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de5aa386d4c9f5ab8228b2898ab95ad86dae2ecb36f375c11a84603aeebbeea"}},{"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/poetry/mixology/failure.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4439a86eb2c6bcd6a4d5a597294ba2115f9864662df7dfd737d176eb62ce0a7d"}},{"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/poetry/utils/cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"428ea5e63573d5d54404dd97fd6938552a759734c2a27a32784dad2c354fc10b"}},{"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/poetry/utils/password_manager.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"212e3e447ed25dd4cad74ce5aeb70637002f357448ebaa91073291b64b5b11bf"}},{"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/poetry/repositories/pypi_repository.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae640a01e4a2c7ee4eab2211adb8cd7c091159330759fa35cb6bb17e276a068"}},{"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/poetry/utils/isolated_build.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"210cd351a5f40d13ebb577104fa7a327998a56f91669266bfe4b71e1fc1175d5"}},{"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/poetry/console/commands/build.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6beb6cc774de99364cec8594bb3434b2ff1fce0fbef010c961e3e07299e7ee2c"}},{"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/poetry/console/commands/check.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b101c404d24f5e53b7c5b9e6dfff33ea27b6b8b0dca336bca4eb7f32dd65a41b"}},{"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/poetry/console/exceptions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38ae84d9fa4d4c56c442a3f02a337bcc7b30d595142c05cdadef7ba3a47a752"}},{"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/poetry/mixology/partial_solution.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7885b479925e66b0abfb09fb2b1650747aa360b0db79f53376d3f39251c4cb"}},{"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/poetry/console/commands/self/self_command.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b6c7b966bc3896e599094597ded6ae0801a281f4476e216e5e7a75c72ed7f5"}},{"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/poetry/console/commands/debug/resolve.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28121cecea04277b9810b033c2990d7e16b6c4e4d871bbf5f5accdd122d81c2f"}},{"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/poetry/console/commands/python/install.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15537161c61a033e51846a30713b421d9f727762fb8dd9235c2a5c6ba877bf7f"}},{"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/poetry/utils/download.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0bd938c38eeb3ba3eb58dbad4e4ca2142d9fa79f539ebaa0e334257c749407"}},{"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/poetry/console/commands/group_command.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1802ba08abd34a9e4cc644ee230aa346e5596106fb3151ec6aca66bbfdca99e"}},{"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/poetry/console/commands/python/list.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac13e215ddb6e6a90075fec955ef777c848ca002d0233ea52fcabfc33fd5dca"}},{"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/poetry/console/commands/self/show/plugins.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfe85bbfebb1d409afa4001dcc9c561b4940c08b4cb39503311c78f27fa7990"}},{"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/poetry/utils/env/python/installer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ebddf8585dcf950ab724da4cca514bf0a99769668f674592c814d49607f7b5"}},{"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/poetry/console/commands/python/remove.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35699b02e7c90fff44375e09cd55a2cc91b3de2fd91271207bc2409904a41a2"}},{"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/poetry/console/commands/run.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59dfd38754e198658d7720b91c01e5b2835335b8edacc27a9704fc1009d1aff"}},{"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/poetry/utils/env/python/providers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba7713ead6528bd6a98932fd1fad282810d46931f0b230fea63302ec6661db2"}},{"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/poetry/console/commands/new.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"453328dee1aecff4143dd4ed0eb6df9e1dc4ad5631599b6b1971833afadc2019"}},{"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/poetry/console/commands/cache/clear.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b2d449f8f501c2a8d198b7f3fdca459f61243bce610369e6a6ba46c200a5a1"}},{"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/poetry/console/commands/env/info.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8699f005ecc618a8e320ab0f5b4a562458bfd231562f2b33e127c12098725f0"}},{"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/poetry/utils/threading.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b7527c0fd75d2785e8d86cf44dc3f2dfb07ec9205f4a340b66f1d9caa10cef"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: file_config_source.py \u2194 factory.py: \u0060src/poetry/config/file_config_source.py\u0060 and \u0060src/poetry/factory.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 \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 \u0060b95f28ae\u0060 update locked tomlkit to 0.15.0 and improve typing (#10901); \u0060925424a4\u0060 Remove dead code (#6097); \u00608f571352\u0060 poetry-core update and cleanup (#7922) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/config/file_config_source.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39aa76e745545dc79b52f4dd9d75d1ed3debfa920146c29f5c3df28fb6ff16ed"}},{"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":"cc682cd7167c2c692b624e54d299d32b2ea2b5b3eb72f5516f0dfab9c0ce991d"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/dependency-specification.md names Python 3.6, but pyproject.toml:5 requires \u0060requires-python = \u0022\u003E=3.11\u0022\u0060: the package does not install on Python 3.6. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/dependency-specification.md"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c07792bc049f5ca5d66648a14cdb9140a3029af8c85eb08da4c0bc0e4fabd3"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: docs/dependency-specification.md names Python 3.8 or later, but pyproject.toml:5 requires \u0060requires-python = \u0022\u003E=3.11\u0022\u0060: the package does not install on Python 3.8. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/dependency-specification.md"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3150e070341ed073c35d5b692bb7819f0a5dc9dcb35ba40181e33a589545a3"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 6 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/backport.yaml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022/\u0022 in link.filename or \u0022\\\\\u0022 in link.filename\u0060 appears character-identically in 2 files \u2014 src/poetry/repositories/http_repository.py, src/poetry/utils/cache.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/poetry/repositories/http_repository.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a265d3807e96eab9c839a326ae96619c04ad2feffdc5ada5f78067840514b84"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(constraint) == 1 and \u0022version\u0022 in constraint\u0060 appears character-identically in 3 files \u2014 src/poetry/console/commands/add.py, src/poetry/factory.py, src/poetry/packages/locker.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/poetry/console/commands/add.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94aba4d284eaaadd44c371d82b2f93e467b89f71a6b27428fb9e50dd1c766d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(elements) == 1 and elements[0].is_dir()\u0060 appears character-identically in 2 files \u2014 src/poetry/inspection/info.py, src/poetry/installation/chef.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/poetry/inspection/info.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a20af00bc393cf5ee9e8aedfadcdab1a6aeef8aeb605ad8c92c0b9cb98a7239"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060merge_dicts\u0060 is public and takes \u0060d1: dict[str, Any]\u0060 from its caller, and it calls itself at line 113 (\u0060merge_dicts\u0060) with a piece of \u0060d1\u0060 \u2014 and nowhere in \u0060merge_dicts\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 \u0060merge_dicts\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/poetry/utils/helpers.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c2cfa2a10f0bddc5dfa79f4992bdec8f204d79c7dd5c829716ea9bdec44719"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 474 is called with an argument built by \u0060\u0022\u2026\u0022.join(c.name for c in candidates)\u0060 (line 477), 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/poetry/utils/authenticator.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c85a9bef026e3ba60ab474b139321ba75c184b08cbd8b7bca5851d9baccfaaf"}},{"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/poetry/mixology/version_solver.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a41a1bf412200ede0394dbb42f008dfabaf8c82f1898855dc7cd4d59a6f38c9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 271 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as 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/poetry/utils/helpers.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a6ea2902135b12d62563022f1603937ce8142db207b1bba584863918794f63"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 158 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as 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/poetry/utils/password_manager.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef8f83c7db940bf8b4f0d8387bf50bd5d5d9a3b711512c34ddc028c875d5796"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 161 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as 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/poetry/utils/password_manager.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ef887af23edccaaedc1e0a5b76910d85d3d27edf598d6a31f4e9eca5996333"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 177 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as 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/poetry/utils/password_manager.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0feed7d95f1274e1c8ad1634f737ee73e539e74158b39638e4c16c711884b761"}},{"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/poetry/installation/wheel_installer.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"5179b592ac0194f69cc63e091fc409a7dfefdb26532188ed1f0c87313794c1ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 742 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as 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/poetry/inspection/lazy_wheel.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0098216af47db7a117735c1c63d8c4b198bd3be5eb2812ea35ee64c4921176d"}}],"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-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-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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"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":"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-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":19,"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."]}]}