{"$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":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"_commands.extension_update (cyclomatic 165): _commands.extension_update has cyclomatic complexity 165 (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/specify_cli/extensions/_commands.py"},"region":{"startLine":1508}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd88ceae611ae143084ca84f3215177d7ffae541fceea3402eff981c89217e6"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager.register_enabled_presets_for_agent (cyclomatic 75): PresetManager.register_enabled_presets_for_agent has cyclomatic complexity 75 (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/specify_cli/presets/__init__.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a13104a3b5d91132e43a50d1ae9833c52ccb760ca64cbdbd16e8e6cccdc7624"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionManifest._validate (cyclomatic 67): ExtensionManifest._validate has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee556bd844404e649631d4d47d56116a6020b3ee2bc43ece44167e8df5c2210"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionManager.install_from_directory (cyclomatic 64): ExtensionManager.install_from_directory has cyclomatic complexity 64 (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/specify_cli/extensions/__init__.py"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"e111306e894e70285092061d7d8373202705911a5a738b1ae4c57ce86a957bfa"}},{"ruleId":"D1","level":"warning","message":{"text":"shared_infra.install_shared_infra (cyclomatic 56): shared_infra.install_shared_infra has cyclomatic complexity 56 (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/specify_cli/shared_infra.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"70090c6565484414a1baf8fb321095d45db8ef2661aa90ce9f04f875924020cc"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.workflow_step_add (cyclomatic 53): _commands.workflow_step_add has cyclomatic complexity 53 (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/specify_cli/workflows/_commands.py"},"region":{"startLine":3153}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a2721f8d82b0f7519942332e91ccd481e192d266bd205348a978f7c85252ee"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager._reconcile_composed_commands (cyclomatic 50): PresetManager._reconcile_composed_commands has cyclomatic complexity 50 (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/specify_cli/presets/__init__.py"},"region":{"startLine":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a18adc34433b9c96b23dcfce720761e6714fb8699bf5a662fc072dc8d662640"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager.remove (cyclomatic 48): PresetManager.remove has cyclomatic complexity 48 (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/specify_cli/presets/__init__.py"},"region":{"startLine":3722}}}],"partialFingerprints":{"codehealthFindingId/v1":"731e2b8e44f46edee6558eeb4e2af428eb004252de18e48cabbeddfa33527212"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionManager.register_enabled_extensions_for_agent (cyclomatic 47): ExtensionManager.register_enabled_extensions_for_agent has cyclomatic complexity 47 (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/specify_cli/extensions/__init__.py"},"region":{"startLine":2954}}}],"partialFingerprints":{"codehealthFindingId/v1":"804940fe1d1ae7afab7cafbf178c765c1716cb2fddd5529e8346297a8b4646d0"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetResolver.collect_all_layers (cyclomatic 47): PresetResolver.collect_all_layers has cyclomatic complexity 47 (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/specify_cli/presets/__init__.py"},"region":{"startLine":5311}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6a3c89ee8a6ed1459b1dcbe6069d6eee7bc837a334d1be97ed7f022dbaec75"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.workflow_add (cyclomatic 46): _commands.workflow_add has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7d5721edf20d4a4b23d38935e94d1ca1a0c3b3547510a60aa5de79fec15fc4"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandRegistrar.register_commands (cyclomatic 44): CommandRegistrar.register_commands 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/specify_cli/agents.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"73396e45bebf58b7b1b170b295f639cb5e9aac7850e326fffb1cb46dc3a7eca1"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.extension_add (cyclomatic 43): _commands.extension_add has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"211f72f325c54b7b8d7b67f15f77a1facf10b20773ab7ec0b4da45974b6b8ac1"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationDescriptor._validate (cyclomatic 43): IntegrationDescriptor._validate has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/catalog.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5e078dd35de048fe605d55db107021205ad81d0bf689902f8f3b608786abe7"}},{"ruleId":"D1","level":"warning","message":{"text":"create_new_feature_branch.main (cyclomatic 42): create_new_feature_branch.main has cyclomatic complexity 42 (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":"extensions/git/scripts/python/create_new_feature_branch.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cac37cb5da3c682f924f3f765f78fe69bde2be1b363482240dac1528e4cf25"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetResolver.resolve (cyclomatic 41): PresetResolver.resolve has cyclomatic complexity 41 (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/specify_cli/presets/__init__.py"},"region":{"startLine":5037}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf380f4b14feb1732bfac3b9756e45935fd4651d94920bdfb69a0585de8508b"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands._install_workflow_from_catalog (cyclomatic 41): _commands._install_workflow_from_catalog has cyclomatic complexity 41 (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/specify_cli/workflows/_commands.py"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e53be7aee38473e4b4adc38277ed30fc509f14d67fb3898922a99f3d8f3b49"}},{"ruleId":"D1","level":"warning","message":{"text":"config.load_auth_config (cyclomatic 36): config.load_auth_config has cyclomatic complexity 36 (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/specify_cli/authentication/config.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"941dff6b723114afc4345199ee3167583328a038f49200c1c05b68057e670e0b"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager._register_skills (cyclomatic 36): PresetManager._register_skills has cyclomatic complexity 36 (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/specify_cli/presets/__init__.py"},"region":{"startLine":2614}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8534daab533f302d134939eadc801ecf537777daf508a648987c75f4caeabc"}},{"ruleId":"D1","level":"warning","message":{"text":"events.install_integration_events (cyclomatic 35): events.install_integration_events 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/specify_cli/events.py"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c62bd6cdde27e95b01ef78309b75ff86b659b0541e90958921986cf334129fd"}},{"ruleId":"D1","level":"warning","message":{"text":"engine.validate_workflow (cyclomatic 35): engine.validate_workflow 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/specify_cli/workflows/engine.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e752b38b0fd740771196d01476b97408f02cb0a7830133e40df2f2013b1fd0"}},{"ruleId":"D1","level":"warning","message":{"text":"engine._validate_steps (cyclomatic 35): engine._validate_steps 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/specify_cli/workflows/engine.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55ff4f1c6b0ea62edbaadc96ed0c654a92ef3129c4efbc23c1d2eb1d7e8725a"}},{"ruleId":"D1","level":"warning","message":{"text":"integration_status.build_integration_status_report (cyclomatic 34): integration_status.build_integration_status_report has cyclomatic complexity 34 (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/specify_cli/integration_status.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a728efa110979fd0c55a35bfbd4e7e3a7998befb64446921cc161df2604d06"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManifest._validate (cyclomatic 34): PresetManifest._validate 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/specify_cli/presets/__init__.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"800cbd0e01a93889e6656f38405093fa213c19c6069137284a2d53f8fe18cc06"}},{"ruleId":"D1","level":"warning","message":{"text":"_version.self_upgrade (cyclomatic 32): _version.self_upgrade has cyclomatic complexity 32 (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/specify_cli/_version.py"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4691405c873441b7eb3e25a74d8a0d37081e5f6059627ce6aee40965a5aae7"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandRegistrar.register_commands_for_all_agents (cyclomatic 32): CommandRegistrar.register_commands_for_all_agents has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/agents.py"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb737580661992c986dcfc1709a7e7504b359000548b5187399ad0421900c74d"}},{"ruleId":"D1","level":"warning","message":{"text":"_migrate_commands.integration_upgrade (cyclomatic 32): _migrate_commands.integration_upgrade has cyclomatic complexity 32 (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/specify_cli/integrations/_migrate_commands.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"3832fc23713bb6799aceba4700c2d7301d62b6395f688b1afce1240cac38d89e"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager.unregister_agent_artifacts (cyclomatic 31): PresetManager.unregister_agent_artifacts has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfbce2c19c50b0c2bfd6b19822fa331fe4e01deb990242ec96544dfe9fe5b5e"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands._install_workflow_package (cyclomatic 31): _commands._install_workflow_package has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"878863638a99a9bca22430b12a61f5d541d8bdbf08cc940e7b32b9f81e6ac9dd"}},{"ruleId":"D1","level":"warning","message":{"text":"create_new_feature.main (cyclomatic 30): create_new_feature.main has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/python/create_new_feature.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"100a1ab168b951083310b93cd236476de0f47b7c74a4f9a3012d048c967b7d98"}},{"ruleId":"D1","level":"warning","message":{"text":"_download_security.safe_extract_tar (cyclomatic 30): _download_security.safe_extract_tar has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_download_security.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc03ff38387600410e9d2bbc5f6b876ffc15599cb69f8ec796f052e1b9fcf37"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionManager._register_extension_skills (cyclomatic 30): ExtensionManager._register_extension_skills has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4cf1d8edc0d701035443ac11119c649a43e7645e5e392c52969a7787a62fd4"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager._unregister_skills_in_dir (cyclomatic 30): PresetManager._unregister_skills_in_dir has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":3254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e71b8307e8d0679355c919e4d6278c040bd8ab49ae55ef85dd9c09cb3a904a"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowEngine._execute_steps (cyclomatic 30): WorkflowEngine._execute_steps has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/engine.py"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3297b2e8a340db0a6137b2c33b8c8d74bafb6ae049b17aea37d282993eaf330"}},{"ruleId":"D1","level":"warning","message":{"text":"expressions._evaluate_simple_expression (cyclomatic 29): expressions._evaluate_simple_expression has cyclomatic complexity 29 (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/specify_cli/workflows/expressions.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e60e7d98f896ec7bc52a895f90cacdd669741fc2bb1122d1be7e4885788715"}},{"ruleId":"D1","level":"warning","message":{"text":"_migrate_commands.integration_switch (cyclomatic 28): _migrate_commands.integration_switch has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_migrate_commands.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"71010aed6a3721f3665fd25c5e6f8cf86e22596184bb1815f79379dd993bc8be"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands._print_extension_info (cyclomatic 27): _commands._print_extension_info has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"672dd155d5b67f2aa2503d896750c4b3783494c9e28a54b96a8b69f04bb465ca"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager._reconcile_skills (cyclomatic 27): PresetManager._reconcile_skills has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":2093}}}],"partialFingerprints":{"codehealthFindingId/v1":"11063f1f96e0ec3dd002c381425841080c32b9f6b7b901ea1e3e385c2ab53987"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetResolver.resolve_content (cyclomatic 27): PresetResolver.resolve_content has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":5552}}}],"partialFingerprints":{"codehealthFindingId/v1":"7846098ccf33b1d40bf04ce8102ad6c48618b593254bb38b9bd84597e93e7205"}},{"ruleId":"D1","level":"warning","message":{"text":"_download_security._preflight_zip_central_directory (cyclomatic 26): _download_security._preflight_zip_central_directory 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/specify_cli/_download_security.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab261e28e031418be19dd15cc31a95806667319917e65a01cc077f5792d6ecb1"}},{"ruleId":"D1","level":"warning","message":{"text":"HookExecutor.register_hooks (cyclomatic 26): HookExecutor.register_hooks 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/specify_cli/extensions/__init__.py"},"region":{"startLine":4745}}}],"partialFingerprints":{"codehealthFindingId/v1":"351ce7f1e81ca17bc296c88977c6b89fe825b2512c7c3ef04e4d5324dcb5b86e"}},{"ruleId":"D1","level":"warning","message":{"text":"_install_commands.integration_uninstall (cyclomatic 26): _install_commands.integration_uninstall 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/specify_cli/integrations/_install_commands.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"a738fdbeb787fc245b5c47fefab434ae8f7d497618e0d06bc7cea77b838adafa"}},{"ruleId":"D1","level":"warning","message":{"text":"GateStep.execute (cyclomatic 26): GateStep.execute 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/specify_cli/workflows/steps/gate/__init__.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fc8b1812c4bc3f2b597e76f75b56d729750605e48e3813b5b96bd10be6e882"}},{"ruleId":"D1","level":"warning","message":{"text":"_download_security.safe_extract_zip (cyclomatic 25): _download_security.safe_extract_zip has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_download_security.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"23191fafd12c8f2cddd8a9061010ed513312f1954f5707f64e9804599128f948"}},{"ruleId":"D1","level":"warning","message":{"text":"_version._detect_install_method (cyclomatic 25): _version._detect_install_method has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_version.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1c81a05a9dbcbdade210195ecb774c5a3f65c17c3c10a6023cf59d1c30106b"}},{"ruleId":"D1","level":"warning","message":{"text":"_version._emit_failure (cyclomatic 25): _version._emit_failure has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_version.py"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a46a05ad9c6eee6c053783bd7636117ed1d1b8c8b80fd56d522a5b4abb57a9c"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.load_custom_steps (cyclomatic 25): workflows.load_custom_steps has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/__init__.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"654aeec665154aaa5e6c71697ad02609513a54b535b50adda0e5b2420e854632"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.preset_add (cyclomatic 24): _commands.preset_add has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/_commands.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"920f145b91b1500d553ccefebbab3a1b59caeb4cbb3090600d731ca712e256c4"}},{"ruleId":"D1","level":"warning","message":{"text":"InitStep.execute (cyclomatic 24): InitStep.execute has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/steps/init/__init__.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c91507fe3cb10f4363daa6225c94ec767b0d19bfe007803277561044059be8c"}},{"ruleId":"D1","level":"warning","message":{"text":"events._find_command_template (cyclomatic 23): events._find_command_template 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/specify_cli/events.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"58769cd85d022a8d694e9ed2e6fb40b241849ff8c842e99032978e1b8c7a4eb3"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.workflow_run (cyclomatic 23): _commands.workflow_run has cyclomatic complexity 23 (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/specify_cli/workflows/_commands.py"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"a991d818bc6c64c5b2fa0f144feae55cf969f18d5ff81a25fd1a11691131f845"}},{"ruleId":"D1","level":"warning","message":{"text":"_install_commands.integration_install (cyclomatic 22): _install_commands.integration_install has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_install_commands.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b96ddee34324739305556095907d555c4132cb5e0883599b683092457ad2bb"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.workflow_update (cyclomatic 22): _commands.workflow_update has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":2636}}}],"partialFingerprints":{"codehealthFindingId/v1":"7957bbd76dac50f139b3d7d64992901de028e5532a1fd6368891e20dbcc459fb"}},{"ruleId":"D1","level":"warning","message":{"text":"merge._traverse_and_apply (cyclomatic 22): merge._traverse_and_apply has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6f062ca828cf744f19bfb139e50ad667b5d2c52e4c954a81a08f10e0bc0c3e"}},{"ruleId":"D1","level":"warning","message":{"text":"auto_commit._parse_auto_commit_config (cyclomatic 21): auto_commit._parse_auto_commit_config 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":"extensions/git/scripts/python/auto_commit.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"27509a12d5407ed67a05f8bd964819804337df94eb4df10a1749cfbcd98df20a"}},{"ruleId":"D1","level":"warning","message":{"text":"specify_cli.ensure_executable_scripts (cyclomatic 21): specify_cli.ensure_executable_scripts 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/specify_cli/__init__.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bb588081bccb5eff1ec16193f3977695b21487dda6661b34c45aadb0d31527"}},{"ruleId":"D1","level":"warning","message":{"text":"_github_http.resolve_github_release_asset_api_url (cyclomatic 21): _github_http.resolve_github_release_asset_api_url 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/specify_cli/_github_http.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"74312cba0055ab2c5b360e41695a4ddba3b6fbb95fbb6a0c272056f29cd974ac"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationCatalog.remove_catalog (cyclomatic 21): IntegrationCatalog.remove_catalog 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/specify_cli/integrations/catalog.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10c2bbad70cb0f953ec518b2abb3b5ba649e2761cf765e6f2c4a6f572fd93b0"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationManifest.uninstall (cyclomatic 21): IntegrationManifest.uninstall has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/manifest.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"335a6aba7f6d57a72c9eca0a88780ffb244385f3a7bb0993c846a6a5df664844"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager._unregister_skills (cyclomatic 21): PresetManager._unregister_skills 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/specify_cli/presets/__init__.py"},"region":{"startLine":3057}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58fe4867bc114c4eb4a86a5eea36337caef1059bce47ab7142e9aef7ec48166"}},{"ruleId":"D1","level":"warning","message":{"text":"_version._run_installer (cyclomatic 20): _version._run_installer 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/specify_cli/_version.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"de485c9075b4d08dcbe0b9fe7c5ea0807710da8ac6f44b09c480a2b5e265fdf2"}},{"ruleId":"D1","level":"warning","message":{"text":"BundleManifest.structural_errors (cyclomatic 20): BundleManifest.structural_errors 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/specify_cli/bundler/models/manifest.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f26ed232b86686ad564d92107821aaf5066fc4b28958c38947a668fb9885a8d"}},{"ruleId":"D1","level":"warning","message":{"text":"installer.install_bundle (cyclomatic 20): installer.install_bundle 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/specify_cli/bundler/services/installer.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"07921060660d49d4688301df052664757fa7308aa54021b572b453d170b92c4c"}},{"ruleId":"D1","level":"warning","message":{"text":"events.resolve_events (cyclomatic 20): events.resolve_events 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/specify_cli/events.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"8352afe3c3433c780e2a97a68a7aa727abeeda93f341d2ff454fb15dddfb1f56"}},{"ruleId":"D1","level":"warning","message":{"text":"events.collect_extension_events (cyclomatic 20): events.collect_extension_events 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/specify_cli/events.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0b9dfd8b1ec4a3c3adc3c672ec1728453c3dbd8c8865ad6a89ca3acf5fbec2"}},{"ruleId":"D1","level":"warning","message":{"text":"_query_commands.integration_list (cyclomatic 20): _query_commands.integration_list 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/specify_cli/integrations/_query_commands.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"418185643c2b827858e3c43ea8629009a09057b417e3e485e60620e309a4f994"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationBase.process_template (cyclomatic 20): IntegrationBase.process_template 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/specify_cli/integrations/base.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"0134c063a3160adaf68a307b1124a8acef274d0c969f9249876cf9bf67f2bcf5"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandStep.execute (cyclomatic 20): CommandStep.execute has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/steps/command/__init__.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d2a9d1fe5f13213f13aaa90ea9529bb4dabbd887b08e0419d610b237958b54"}},{"ruleId":"D1","level":"warning","message":{"text":"update_agent_context._upsert_section (cyclomatic 19): update_agent_context._upsert_section 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":"extensions/agent-context/scripts/python/update_agent_context.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"be197b8a3e7647527d5dbbf0cdc16d2533a859291efa1c1f9ca85cc7b97db0f8"}},{"ruleId":"D1","level":"warning","message":{"text":"_download_security.detect_archive_format (cyclomatic 19): _download_security.detect_archive_format has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_download_security.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a02c94e31ebe391986098d3cc8c3389edd5e5b7950a1e09774e88bfe1b5319"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandRegistrar.unregister_commands (cyclomatic 19): CommandRegistrar.unregister_commands 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/specify_cli/agents.py"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58b34c8ec3105bf59c4b3d647d59e463fec1048260b97f8a81ae06cbcb2025c"}},{"ruleId":"D1","level":"warning","message":{"text":"bundle.bundle_info (cyclomatic 19): bundle.bundle_info 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/specify_cli/commands/bundle/__init__.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aed52b1f0f2cf3405a32954243ce1c2d113a112e47ca211b105c507827205ee"}},{"ruleId":"D1","level":"warning","message":{"text":"events._resolve_event_command_argv (cyclomatic 19): events._resolve_event_command_argv has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/events.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"973849374c982cb73b301c86a08019b971ed0eaafa3a4d531d8c0a1132386d7a"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionManager._find_extension_skill_dirs (cyclomatic 19): ExtensionManager._find_extension_skill_dirs 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/specify_cli/extensions/__init__.py"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fd7658791da20c7e1aba05117fdebdf8cf98c17b71e9292e2db0669ba9f06e"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionManager.scaffold_config (cyclomatic 19): ExtensionManager.scaffold_config 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/specify_cli/extensions/__init__.py"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"23834c362623304b96f02b6792f68a4efcaaad56da18c03400c07375156a0765"}},{"ruleId":"D1","level":"warning","message":{"text":"_query_commands.integration_info (cyclomatic 19): _query_commands.integration_info 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/specify_cli/integrations/_query_commands.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cff2b5360eaa82ea7f06bd63f0ce4adabeb8af46f86afad258f750c298ff72"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetCatalog.download_pack (cyclomatic 19): PresetCatalog.download_pack has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":4744}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02e61be60b9b0abf441143a4e377d8924dcf56edabddce2e6555bde8bb551a1"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.workflow_info (cyclomatic 19): _commands.workflow_info 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/specify_cli/workflows/_commands.py"},"region":{"startLine":2864}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9917350792ed5ecfc938d6adba57236cb353f1a7536ec74a35b3f4762c59a1"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionCatalog.search (cyclomatic 18): ExtensionCatalog.search 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/specify_cli/extensions/__init__.py"},"region":{"startLine":3974}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3cca2c86a7dd309beddfc4d37eb9d3dab7e1610e375dcc22dd29b39f3de2fb"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionCatalog.download_extension (cyclomatic 18): ExtensionCatalog.download_extension 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/specify_cli/extensions/__init__.py"},"region":{"startLine":4060}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05109ad90f297294381c396d6530673c949d2ef2661ae65133a658e0db161f4"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.extension_info (cyclomatic 18): _commands.extension_info 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/specify_cli/extensions/_commands.py"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16fd272e39129585d78b23ff2409e869099574c03ba9d11dab08aa93f6a4f42"}},{"ruleId":"D1","level":"warning","message":{"text":"kimi._migrate_legacy_kimi_skills_dir (cyclomatic 18): kimi._migrate_legacy_kimi_skills_dir 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/specify_cli/integrations/kimi/__init__.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7cca05f31fbe2711dda41512b5cc1c2b9b79266c5dd239da9b3317907d9844"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager._infer_legacy_skill_provenance (cyclomatic 18): PresetManager._infer_legacy_skill_provenance 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/specify_cli/presets/__init__.py"},"region":{"startLine":2806}}}],"partialFingerprints":{"codehealthFindingId/v1":"950cdfd1b0b9734594f550a20c1f5a214415f3a5241b03ea162fd28cd02ce770"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands._commit_workflow_file (cyclomatic 18): _commands._commit_workflow_file has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8327456a5e0abf4b8a396af0c3153eeeb5b9d4936dbef06fbb6975c6f2d615f"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptStep.execute (cyclomatic 18): PromptStep.execute 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/specify_cli/workflows/steps/prompt/__init__.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a24b69440b4af47b22c8931a38c1b8cd254f554ac8f5010ed91f9f87bba8c6"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogStackBase._load_catalog_config (cyclomatic 17): CatalogStackBase._load_catalog_config 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/specify_cli/catalogs.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"63532b2059524889628c2b85b8bd052517e622e35f67a9e80a2ee2b0b26cf59c"}},{"ruleId":"D1","level":"warning","message":{"text":"init._install_extension_during_init (cyclomatic 17): init._install_extension_during_init 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/specify_cli/commands/init.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7983f9c9f8378b2479a5ac25cb2eb1becc38f11798ec43f9c58c7a2d5f5e5dcf"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionManager._extension_owned_skill_names (cyclomatic 17): ExtensionManager._extension_owned_skill_names 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/specify_cli/extensions/__init__.py"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"186483836f96cdc74b534eaa9c30a204610b147a632d450d67de0d269a2bd67e"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionManager.remove (cyclomatic 17): ExtensionManager.remove 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/specify_cli/extensions/__init__.py"},"region":{"startLine":2746}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a186c7a5ac288b66efd954ba1b67de0bdddbc7227a0ccf41a6f2ea47e83082"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.extension_search (cyclomatic 17): _commands.extension_search 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/specify_cli/extensions/_commands.py"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"74acf42d68677c62ef3cf0005788b41ed7bf8b71c7092638e758e81f1e35480c"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationCatalog.search (cyclomatic 17): IntegrationCatalog.search 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/specify_cli/integrations/catalog.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"387e24d0a41dae04326a0686a07a659475ccf6eebc67daf0d63f56c969528167"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationCatalog.add_catalog (cyclomatic 17): IntegrationCatalog.add_catalog 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/specify_cli/integrations/catalog.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54c5730acda02b98c4d62d44f9ef6430cf7740046a85e527ed16773b867ea3e"}},{"ruleId":"D1","level":"warning","message":{"text":"yamlio.dump_json (cyclomatic 16): yamlio.dump_json has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/bundler/lib/yamlio.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc757c0e819425683ed6e8496eac4aebb4143eb194f6577372594b75b6ebcd9"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionManager._get_skills_dir (cyclomatic 16): ExtensionManager._get_skills_dir 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/specify_cli/extensions/__init__.py"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"769512af299db2c475267dfaa1b590cd8a134edf6753bd8507cdfebd54fa5f0d"}},{"ruleId":"D1","level":"warning","message":{"text":"_migrate_commands._installed_presets_affecting_agent (cyclomatic 16): _migrate_commands._installed_presets_affecting_agent 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/specify_cli/integrations/_migrate_commands.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"80cf75184946316f44b2184f63511fc45dde9723c8a22c568cfa5a2cf69a4965"}},{"ruleId":"D1","level":"warning","message":{"text":"_query_commands.integration_search (cyclomatic 16): _query_commands.integration_search 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/specify_cli/integrations/_query_commands.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"662eddec131c513afe3e16af7ef099b350ae5bfdeef97cbd059ef40ddc788d98"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotIntegration.is_skills_mode (cyclomatic 16): CopilotIntegration.is_skills_mode 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/specify_cli/integrations/copilot/__init__.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c1c3c63663bd08d290b40236471bb33d7bfe464faae27b93d1dc2c60aaf7be"}},{"ruleId":"D1","level":"warning","message":{"text":"PresetManager._register_commands (cyclomatic 16): PresetManager._register_commands 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/specify_cli/presets/__init__.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ca4ed82722424c4bb9b9828ec7b79d8cd2dd34c08bd7400a84487c6f692714"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.preset_info (cyclomatic 16): _commands.preset_info 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/specify_cli/presets/_commands.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"a821a211cce14250b02a5db3463565ff13ce9d62c46f7e4d9f3030a25243757a"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.workflow_resume (cyclomatic 16): _commands.workflow_resume has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c366a8cc31dc4775e80b3d80850ea5cb494b217f0a25954600c81fa81d61a6"}},{"ruleId":"D1","level":"warning","message":{"text":"_commands.workflow_step_remove (cyclomatic 16): _commands.workflow_step_remove has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":3490}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fb74369bb64cbb1eb46d371adc9d610efc9da65629b9393ba3d540e0bc9af8"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowRegistry.save (cyclomatic 16): WorkflowRegistry.save has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c74b42744ded2dc4b1f21013eb1be511773c14c7131ec78e9ba4bb797d9541"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowEngine._run_fan_out (cyclomatic 16): WorkflowEngine._run_fan_out has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/engine.py"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e58734b2d2c797bc652ad6156badeb0ae944623960b3cc42f588a1e18a6ed5"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowEngine._coerce_input (cyclomatic 16): WorkflowEngine._coerce_input 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/specify_cli/workflows/engine.py"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ceee85eb375c45a2697143e966215a1424eb777026a4d07fbc347399f33969"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectOverlaySource.collect (cyclomatic 16): ProjectOverlaySource.collect 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/specify_cli/workflows/overlays/layer_sources.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3817b04da08bb81cba6f201f3aafc885d225864280369c3e210a846b40a9d252"}},{"ruleId":"D1","level":"warning","message":{"text":"schema._parse_edit (cyclomatic 16): schema._parse_edit 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/specify_cli/workflows/overlays/schema.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06e0e09cb9edb58aafafb4fed924046934acd7258c1f730b5d8c32472838591"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.extension_update (cognitive 455): _commands.extension_update has cognitive complexity 455 (threshold 15). Drivers by points: if/else 296, loops 78, error handling 49, boolean chains 26, ternaries 6 (nesting depth added 288). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":1508}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fab88c0ae098f673177c50c12378247636acc6c260b08b2281ee3ef0327187f"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._reconcile_composed_commands (cognitive 162): PresetManager._reconcile_composed_commands has cognitive complexity 162 (threshold 15). Drivers by points: if/else 110, loops 35, boolean chains 10, error handling 7 (nesting depth added 111). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96af1965b515321f338a8d816c42616a1f0197ef5db615e75cce9da52c041cc"}},{"ruleId":"D2","level":"warning","message":{"text":"shared_infra.install_shared_infra (cognitive 159): shared_infra.install_shared_infra has cognitive complexity 159 (threshold 15). Drivers by points: if/else 105, loops 23, error handling 21, boolean chains 7, ternaries 3 (nesting depth added 101). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/shared_infra.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bb6bc1c2a6fe14d18290bed6b66b1ef68946c0aae3ea75e0129d29754cba55"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager.register_enabled_presets_for_agent (cognitive 148): PresetManager.register_enabled_presets_for_agent has cognitive complexity 148 (threshold 15). Drivers by points: if/else 102, loops 22, boolean chains 19, error handling 5 (nesting depth added 73). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"367bf98500aad4a086c57d343fb105d7b9a58cce018be4560056eb4c90ce78d4"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetResolver.collect_all_layers (cognitive 133): PresetResolver.collect_all_layers has cognitive complexity 133 (threshold 15). Drivers by points: if/else 103, loops 13, error handling 9, boolean chains 4, ternaries 4 (nesting depth added 87). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":5311}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5b4ae43e6b11bde8aaed6aecfc00cb08b6c9cc8f3e8f874407321b1a644edb"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManifest._validate (cognitive 130): ExtensionManifest._validate has cognitive complexity 130 (threshold 15). Drivers by points: if/else 100, loops 15, boolean chains 11, ternaries 3, error handling 1 (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/specify_cli/extensions/__init__.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"3019260b0a36a5350395861a0e48632b796e8e7936fc763abff878376b487f52"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager.register_enabled_extensions_for_agent (cognitive 129): ExtensionManager.register_enabled_extensions_for_agent has cognitive complexity 129 (threshold 15). Drivers by points: if/else 99, loops 14, boolean chains 11, error handling 5 (nesting depth added 81). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":2954}}}],"partialFingerprints":{"codehealthFindingId/v1":"874e0e6da7979345d7940f9a065edacdbfc2a10fd77c6065f95c891a1ccac272"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager.install_from_directory (cognitive 103): ExtensionManager.install_from_directory has cognitive complexity 103 (threshold 15). Drivers by points: if/else 52, error handling 20, loops 18, boolean chains 13 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"347bf1c858505f76d89e614f213ff13952afd7df72a00eb87ed2365ce2555d69"}},{"ruleId":"D2","level":"warning","message":{"text":"create_new_feature_branch.main (cognitive 99): create_new_feature_branch.main has cognitive complexity 99 (threshold 15). Drivers by points: if/else 84, boolean chains 7, ternaries 4, error handling 2, loops 2 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extensions/git/scripts/python/create_new_feature_branch.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abfc5beaa5a4a02aa8b93c00e7ec56c33398cbd79bc0725637ac12ff23a95aa"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager.remove (cognitive 98): PresetManager.remove has cognitive complexity 98 (threshold 15). Drivers by points: if/else 58, ternaries 14, loops 10, error handling 9, boolean chains 7 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":3722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f5ec5bf5cb20c71f16eef0173ccbce6f73035744c291666627d55d24316ea7"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.workflow_add (cognitive 90): _commands.workflow_add has cognitive complexity 90 (threshold 15). Drivers by points: if/else 49, error handling 21, ternaries 14, boolean chains 6 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"f030549f4ad4cd816079b41c612068bedd0f046f21bec6ffa0247d9a626b351c"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandRegistrar.register_commands (cognitive 84): CommandRegistrar.register_commands has cognitive complexity 84 (threshold 15). Drivers by points: if/else 57, loops 10, ternaries 7, boolean chains 5, error handling 5 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/agents.py"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"afccdc210506697e1104d4a4544ccb75d3bd1b00e77dc6039be007c6ec44c492"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetResolver.resolve (cognitive 78): PresetResolver.resolve has cognitive complexity 78 (threshold 15). Drivers by points: if/else 69, loops 8, boolean chains 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":5037}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e489fe9bca1ea9b8d82f18117f7f16ba194a79b05b0d5fec999cad83c6dab4"}},{"ruleId":"D2","level":"warning","message":{"text":"engine._validate_steps (cognitive 75): engine._validate_steps has cognitive complexity 75 (threshold 15). Drivers by points: if/else 56, loops 10, ternaries 5, boolean chains 4 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/engine.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ffcac329ffa60deb52acc073309f95c3c4bfe13a82c879ddcc3b4d037e4d51"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowEngine._execute_steps (cognitive 74): WorkflowEngine._execute_steps has cognitive complexity 74 (threshold 15). Drivers by points: if/else 55, loops 10, boolean chains 9 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/engine.py"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b941e93512ed358ab8a6a2357d6919deef1fc4c6b7bad9ffec5602425f4fdf54"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.extension_add (cognitive 72): _commands.extension_add has cognitive complexity 72 (threshold 15). Drivers by points: if/else 58, error handling 5, boolean chains 4, loops 4, ternaries 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c37505b40937b6074279f21fa03fc4075b4d47bdd76fc8ea8ec464d5ef1291"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager.unregister_agent_artifacts (cognitive 70): PresetManager.unregister_agent_artifacts has cognitive complexity 70 (threshold 15). Drivers by points: if/else 57, boolean chains 7, loops 5, error handling 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3a9906e1912df5bda87fa8b1a48559e10387eeb721f73abd8ace8fd4b028e3"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandRegistrar.register_commands_for_all_agents (cognitive 67): CommandRegistrar.register_commands_for_all_agents has cognitive complexity 67 (threshold 15). Drivers by points: if/else 41, error handling 14, boolean chains 10, loops 1, ternaries 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/agents.py"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"faeb7de195f8e345483c7efb9942f471a037a9610fbf7b96ee9d398c7a6d59e7"}},{"ruleId":"D2","level":"warning","message":{"text":"create_new_feature.main (cognitive 65): create_new_feature.main has cognitive complexity 65 (threshold 15). Drivers by points: if/else 53, boolean chains 4, loops 4, ternaries 4 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/python/create_new_feature.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ba3b8231a5abd4e48369517e6813330fe3df877a0c1fcd783b89ecbc34078d"}},{"ruleId":"D2","level":"warning","message":{"text":"events.install_integration_events (cognitive 65): events.install_integration_events has cognitive complexity 65 (threshold 15). Drivers by points: if/else 39, loops 26 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/events.py"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1641d275e669e9a5841c9e87422f228660f107af97ce278b726298267a4579"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._unregister_skills_in_dir (cognitive 65): PresetManager._unregister_skills_in_dir has cognitive complexity 65 (threshold 15). Drivers by points: if/else 47, ternaries 10, boolean chains 4, error handling 3, loops 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":3254}}}],"partialFingerprints":{"codehealthFindingId/v1":"7785ef5f85db9c7be1282fc84444b4a8402053fc8ce723704bca07da46a1b16d"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.workflow_step_add (cognitive 62): _commands.workflow_step_add has cognitive complexity 62 (threshold 15). Drivers by points: if/else 32, boolean chains 15, error handling 14, loops 1 (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/specify_cli/workflows/_commands.py"},"region":{"startLine":3153}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e660224ba9793d40df878a6b6487a6e3482c41cfc070de24e13355bfd497844"}},{"ruleId":"D2","level":"warning","message":{"text":"config.load_auth_config (cognitive 58): config.load_auth_config has cognitive complexity 58 (threshold 15). Drivers by points: if/else 39, boolean chains 11, loops 6, error handling 2 (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/specify_cli/authentication/config.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b60380f2bc9b3211ecaeaa9446f697068556801a80333157bc10e99bef94d1"}},{"ruleId":"D2","level":"warning","message":{"text":"_migrate_commands.integration_switch (cognitive 58): _migrate_commands.integration_switch has cognitive complexity 58 (threshold 15). Drivers by points: if/else 42, error handling 13, boolean chains 3 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_migrate_commands.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"938483108240ca3a34b544ccfec589d17e59a9da98d2256048c78385b45e5c1d"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationDescriptor._validate (cognitive 58): IntegrationDescriptor._validate has cognitive complexity 58 (threshold 15). Drivers by points: if/else 40, boolean chains 11, loops 6, error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/catalog.py"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3063670dfe42766b80d438a72538070ff2873e585afb1676bf8abc42cb77bd8"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._register_skills (cognitive 57): PresetManager._register_skills has cognitive complexity 57 (threshold 15). Drivers by points: if/else 39, boolean chains 9, loops 6, ternaries 3 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":2614}}}],"partialFingerprints":{"codehealthFindingId/v1":"249537b6396de7d8c2c4d6d733fdde229d426df727f6fa59035a8080591f70e8"}},{"ruleId":"D2","level":"warning","message":{"text":"_download_security.safe_extract_tar (cognitive 54): _download_security.safe_extract_tar has cognitive complexity 54 (threshold 15). Drivers by points: if/else 36, error handling 10, loops 5, boolean chains 2, ternaries 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_download_security.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"26377a208e70c64e4efae780609d369e72deec783905f0a3cf3288107a2f92e9"}},{"ruleId":"D2","level":"warning","message":{"text":"_version._detect_install_method (cognitive 54): _version._detect_install_method has cognitive complexity 54 (threshold 15). Drivers by points: if/else 34, ternaries 7, error handling 6, boolean chains 4, loops 3 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_version.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"94eb53d5f760eb231bc0e4b78b146f2c9b7c1e6c36f35aaca2a230f7f32846a6"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandRegistrar.unregister_commands (cognitive 54): CommandRegistrar.unregister_commands has cognitive complexity 54 (threshold 15). Drivers by points: if/else 28, error handling 12, loops 10, boolean chains 4 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/agents.py"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04b17ae1c9765a524b1a007f94667d3d20797790c281b8834c786c92a3e00c4"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager._register_extension_skills (cognitive 53): ExtensionManager._register_extension_skills has cognitive complexity 53 (threshold 15). Drivers by points: if/else 32, error handling 11, boolean chains 9, loops 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/specify_cli/extensions/__init__.py"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7b18611c52a193293d932549d84698a10a5566c7ae922f802bb22f76efdea8"}},{"ruleId":"D2","level":"warning","message":{"text":"merge._traverse_and_apply (cognitive 53): merge._traverse_and_apply has cognitive complexity 53 (threshold 15). Drivers by points: if/else 29, loops 17, ternaries 4, boolean chains 3 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1391ca80611aac4549d889a97ba8fe092aaf27ac8e354ea32818693871c1829"}},{"ruleId":"D2","level":"warning","message":{"text":"engine.validate_workflow (cognitive 52): engine.validate_workflow has cognitive complexity 52 (threshold 15). Drivers by points: if/else 34, boolean chains 9, error handling 4, loops 4, ternaries 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/engine.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4904a1b4c6663ad136f686264e0c9bc4ed3f05755db9a38efda2e07d177b37e"}},{"ruleId":"D2","level":"warning","message":{"text":"events.resolve_events (cognitive 51): events.resolve_events has cognitive complexity 51 (threshold 15). Drivers by points: if/else 30, error handling 8, loops 8, boolean chains 3, ternaries 2 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/events.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a951837a5b664b371e3bbb39f6161740013079ba3b92c7fa1111be86b16b69"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManifest._validate (cognitive 50): PresetManifest._validate has cognitive complexity 50 (threshold 15). Drivers by points: if/else 39, loops 6, boolean chains 4, error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3176f6ebfd24a374ca05d8fc8b85386569262405b887390474c31c14a2e88dc3"}},{"ruleId":"D2","level":"warning","message":{"text":"HookExecutor.register_hooks (cognitive 49): HookExecutor.register_hooks has cognitive complexity 49 (threshold 15). Drivers by points: if/else 39, loops 6, boolean chains 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":4745}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe85856e7255a99803f03246f3270630a1be6e3515086f8f4456cdb008ece806"}},{"ruleId":"D2","level":"warning","message":{"text":"expressions._evaluate_simple_expression (cognitive 48): expressions._evaluate_simple_expression has cognitive complexity 48 (threshold 15). Drivers by points: if/else 40, boolean chains 4, loops 3, error handling 1 (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/specify_cli/workflows/expressions.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3450e0d3fa56da2f5b62f9cd91a4f3c7550d1e0ed665c619b582958b11a197b4"}},{"ruleId":"D2","level":"warning","message":{"text":"specify_cli.ensure_executable_scripts (cognitive 47): specify_cli.ensure_executable_scripts has cognitive complexity 47 (threshold 15). Drivers by points: if/else 30, error handling 6, loops 6, ternaries 4, boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/__init__.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"20040b82db4f3e3852fb816b734c5de78d16a1620455fbcec0ea74072b34faf6"}},{"ruleId":"D2","level":"warning","message":{"text":"events._find_command_template (cognitive 47): events._find_command_template has cognitive complexity 47 (threshold 15). Drivers by points: if/else 33, loops 10, boolean chains 2, error handling 1, ternaries 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/events.py"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"389aca94f5eaae50f2c821843e562d4aadfd89289e60554b473460bef7f56591"}},{"ruleId":"D2","level":"warning","message":{"text":"_download_security.safe_extract_zip (cognitive 46): _download_security.safe_extract_zip has cognitive complexity 46 (threshold 15). Drivers by points: if/else 28, error handling 11, loops 5, boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_download_security.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef47022b59f8c51701771d12394427fcc6c43d52c2a4c703fc4ae80d32b3a26a"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands._install_workflow_from_catalog (cognitive 46): _commands._install_workflow_from_catalog has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21, error handling 14, boolean chains 8, loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21da63f133e87715e87cb0b33107760f901d72bee8d85df2fa0fd9c96b4e69f"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._reconcile_skills (cognitive 45): PresetManager._reconcile_skills has cognitive complexity 45 (threshold 15). Drivers by points: if/else 32, loops 6, ternaries 4, boolean chains 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":2093}}}],"partialFingerprints":{"codehealthFindingId/v1":"716e056a56675d3c344d15dd4e897904c587514fa97b31b208f4638233dcf9a4"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionCatalog.search (cognitive 44): ExtensionCatalog.search has cognitive complexity 44 (threshold 15). Drivers by points: if/else 26, ternaries 16, boolean chains 1, loops 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":3974}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a7f0e44fb34385a6f5c80477400d592bc6e0d73b576237c88d57769560be47"}},{"ruleId":"D2","level":"warning","message":{"text":"integration_status.build_integration_status_report (cognitive 44): integration_status.build_integration_status_report has cognitive complexity 44 (threshold 15). Drivers by points: if/else 27, boolean chains 7, loops 5, error handling 4, ternaries 1 (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/specify_cli/integration_status.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a1493003fb38094c989de4621d08d5374077a994a8f774032f997257254f10"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.load_custom_steps (cognitive 44): workflows.load_custom_steps has cognitive complexity 44 (threshold 15). Drivers by points: if/else 27, loops 7, boolean chains 5, error handling 5 (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/specify_cli/workflows/__init__.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a781daf021a5211f8b2e864034a47656f32c3ddd8801a70eda937063e13280e"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.extension_info (cognitive 42): _commands.extension_info has cognitive complexity 42 (threshold 15). Drivers by points: if/else 33, ternaries 5, loops 4 (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/specify_cli/extensions/_commands.py"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f8c231a1e9bb236c67073a15d1bc71663c18cf83dbce6eb13b589d42ec33e9"}},{"ruleId":"D2","level":"warning","message":{"text":"_migrate_commands.integration_upgrade (cognitive 42): _migrate_commands.integration_upgrade has cognitive complexity 42 (threshold 15). Drivers by points: if/else 27, error handling 8, boolean chains 5, loops 2 (nesting depth added 10). 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/specify_cli/integrations/_migrate_commands.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46462c4866b1e6ef7ec7bb106dd1677465eb4cd8bbd07d01624bd952b5051cb"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetResolver.resolve_content (cognitive 42): PresetResolver.resolve_content has cognitive complexity 42 (threshold 15). Drivers by points: if/else 34, loops 5, boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":5552}}}],"partialFingerprints":{"codehealthFindingId/v1":"72674e9d4d5776d9b4c86e50ef6df766f2fcc4d56e4598b10808c145a440d1fe"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationBase.process_template (cognitive 41): IntegrationBase.process_template has cognitive complexity 41 (threshold 15). Drivers by points: if/else 37, loops 2, boolean chains 1, ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/base.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"839727c2cb05a76455b3494c135cb8e1d1e98cc30303a2a4de54c59bae484441"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.preset_add (cognitive 41): _commands.preset_add has cognitive complexity 41 (threshold 15). Drivers by points: if/else 26, error handling 7, ternaries 6, boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/_commands.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea79d7c9b8fd4d3a69c58c7b0cbbcd54ae362ed9a0507df99f959556a1386b4b"}},{"ruleId":"D2","level":"warning","message":{"text":"_version.self_upgrade (cognitive 40): _version.self_upgrade has cognitive complexity 40 (threshold 15). Drivers by points: if/else 27, boolean chains 5, ternaries 4, error handling 2, loops 2 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_version.py"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9693f48a6ae1fe6ff81a371d5edde82b6cc3e1db4472604564d86888583000"}},{"ruleId":"D2","level":"warning","message":{"text":"_install_commands.integration_uninstall (cognitive 40): _install_commands.integration_uninstall has cognitive complexity 40 (threshold 15). Drivers by points: if/else 27, ternaries 7, boolean chains 3, loops 2, error handling 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/specify_cli/integrations/_install_commands.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"2929dbc3d5c7304da3c5edcb88267b2ec1a5ba77bbe0ec19815a7531f2b4b8c7"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationCatalog.search (cognitive 40): IntegrationCatalog.search has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20, ternaries 18, boolean chains 1, loops 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/specify_cli/integrations/catalog.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fe3936bf124e57e2d7ed2614d4c8f60a6e1cffab792dbefc2eb920e6945989"}},{"ruleId":"D2","level":"warning","message":{"text":"auto_commit._parse_auto_commit_config (cognitive 38): auto_commit._parse_auto_commit_config has cognitive complexity 38 (threshold 15). Drivers by points: if/else 33, boolean chains 3, error handling 1, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extensions/git/scripts/python/auto_commit.py"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"403de3c18b579a6f457e202b653e980d8b407a7bdc7fc91f62bb4e01b1faffa4"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands._print_extension_info (cognitive 38): _commands._print_extension_info has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23, ternaries 11, loops 3, boolean chains 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/specify_cli/extensions/_commands.py"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98ce9bbb84e18912593d403bed88c2716cecf5a902c30b82a1e41e53126a6c9"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands._install_workflow_package (cognitive 38): _commands._install_workflow_package has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16, error handling 13, boolean chains 7, loops 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/specify_cli/workflows/_commands.py"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f32dce306bc7c2f804eb6f30bccec2c5cb308ec1acf975be14614618d6d991"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.workflow_info (cognitive 38): _commands.workflow_info has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23, loops 6, ternaries 5, error handling 3, boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":2864}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a0d6a66c965cddbe3348cab328dd2fa63330715ed99a14b63dc93ff34adab0"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationManifest.uninstall (cognitive 37): IntegrationManifest.uninstall has cognitive complexity 37 (threshold 15). Drivers by points: error handling 15, if/else 13, loops 5, boolean chains 4 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/manifest.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d0b6e89c2ceca2d6c15b847f90064d5c5bccb977d544eab1fa25f421338c62"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._unregister_skills (cognitive 37): PresetManager._unregister_skills has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20, ternaries 8, loops 7, 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/specify_cli/presets/__init__.py"},"region":{"startLine":3057}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7c8b58d246bd992a6f215c4f63890299873b468e87122e6a8b3a4e55601189"}},{"ruleId":"D2","level":"warning","message":{"text":"GateStep.execute (cognitive 37): GateStep.execute has cognitive complexity 37 (threshold 15). Drivers by points: if/else 30, boolean chains 7 (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/specify_cli/workflows/steps/gate/__init__.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0ee9cde29645dfe15e5ee345c322097cbbd5a2bfddad76d793e8c87df42ca6"}},{"ruleId":"D2","level":"warning","message":{"text":"events.collect_extension_events (cognitive 36): events.collect_extension_events has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22, error handling 7, boolean chains 4, loops 3 (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/specify_cli/events.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"7942ebb55337980cffe08f668e1c299b2bedd3082587c6cb55d39d462c810d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager._find_extension_skill_dirs (cognitive 36): ExtensionManager._find_extension_skill_dirs has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18, error handling 8, ternaries 5, loops 3, boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"2401b30de95d369278936ead65f0328d27ff42f80a8cf36cb49fa742f1760654"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager._extension_owned_skill_names (cognitive 36): ExtensionManager._extension_owned_skill_names has cognitive complexity 36 (threshold 15). Drivers by points: if/else 21, error handling 8, loops 3, ternaries 3, boolean chains 1 (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/specify_cli/extensions/__init__.py"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9d32cd037f19210c530d04afba47a909e4dd3c39a3a56fa3a6cb478c27f34a"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._register_command_from_path (cognitive 36): PresetManager._register_command_from_path has cognitive complexity 36 (threshold 15). Drivers by points: if/else 25, loops 7, boolean chains 2, error handling 2 (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/specify_cli/presets/__init__.py"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f19ca36ae9bb4954681cbfd50bc1529f549ca942234c51e849714918ba20d3c"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetCatalog.search (cognitive 36): PresetCatalog.search has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18, ternaries 16, error handling 1, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":4658}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2413d4a02d5c1f1c76043ec34292b57e273a432b4cc5cc59dabddb30f969a5"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.workflow_update (cognitive 36): _commands.workflow_update has cognitive complexity 36 (threshold 15). Drivers by points: if/else 25, error handling 8, loops 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":2636}}}],"partialFingerprints":{"codehealthFindingId/v1":"556721b06542adbf999988e8bdc73c09f7ab38886694df4c0b7681685c1ef41f"}},{"ruleId":"D2","level":"warning","message":{"text":"_version._emit_failure (cognitive 34): _version._emit_failure has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21, boolean chains 9, ternaries 4 (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/specify_cli/_version.py"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd23022e40540bc76197b6bea07c5721096a2567a4137cd517e7e50291aac412"}},{"ruleId":"D2","level":"warning","message":{"text":"_install_commands.integration_install (cognitive 34): _install_commands.integration_install has cognitive complexity 34 (threshold 15). Drivers by points: if/else 24, boolean chains 5, error handling 3, loops 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/specify_cli/integrations/_install_commands.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"088c5518d32d935a00862cdb3196b247e2bb4a7772aa8c2be637d6fe22ad12fc"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._infer_legacy_skill_provenance (cognitive 34): PresetManager._infer_legacy_skill_provenance has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19, loops 6, ternaries 5, error handling 3, 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/specify_cli/presets/__init__.py"},"region":{"startLine":2806}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67a078cc6db0bc4af0e525b5caf62d1473858c22506fa932d1277af2e880b26"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.preset_resolve (cognitive 34): _commands.preset_resolve has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23, loops 6, error handling 3, boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/_commands.py"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cf306b6b403ec9dab0935efe10a334a858decc2822d4bc130f451edd2cefb4"}},{"ruleId":"D2","level":"warning","message":{"text":"_download_security._preflight_zip_central_directory (cognitive 33): _download_security._preflight_zip_central_directory has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25, boolean chains 6, loops 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/specify_cli/_download_security.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"078e358122d0ce09061252a8634043bf213967640188ef95e27ba014c37aaa6e"}},{"ruleId":"D2","level":"warning","message":{"text":"installer.install_bundle (cognitive 33): installer.install_bundle has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23, boolean chains 3, loops 3, error handling 2, ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/bundler/services/installer.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19aaff6ebf6ab26bad7498e868608906741df2d36712c2330ac10342a42059e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager.remove (cognitive 33): ExtensionManager.remove has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23, loops 6, boolean chains 2, ternaries 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":2746}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e30daa79fdd89a3ce4163a300233b4351dee053b1186470a1fd3d79d650d93"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationCatalog.remove_catalog (cognitive 33): IntegrationCatalog.remove_catalog has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25, error handling 6, 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/specify_cli/integrations/catalog.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd099fb5655734ea440129102be50a2fefbb2162213c6fafa7771e9980cd7f9"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands._commit_workflow_file (cognitive 33): _commands._commit_workflow_file has cognitive complexity 33 (threshold 15). Drivers by points: error handling 18, if/else 11, boolean chains 3, ternaries 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/specify_cli/workflows/_commands.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1b567916db30218cfbdb2765373ba744ddb9e18c957116588268941ad8c64b"}},{"ruleId":"D2","level":"warning","message":{"text":"update_agent_context._upsert_section (cognitive 32): update_agent_context._upsert_section has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, boolean chains 6, ternaries 5 (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":"extensions/agent-context/scripts/python/update_agent_context.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa8538d84a976606e5b7496970d8b959798b7eec86da2671561ca6525ec55d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager._collect_manifest_command_names (cognitive 32): ExtensionManager._collect_manifest_command_names has cognitive complexity 32 (threshold 15). Drivers by points: if/else 29, loops 3 (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/specify_cli/extensions/__init__.py"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0985df758689f4fb2d04a6cc7c2005dc84dedbb8df59ac64c81484fe79f524"}},{"ruleId":"D2","level":"warning","message":{"text":"bundle.bundle_info (cognitive 31): bundle.bundle_info has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16, loops 9, boolean chains 3, ternaries 2, error handling 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/specify_cli/commands/bundle/__init__.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2c2d90c20477c46878c8cbbdb0a4f280f39ea3cd604a03640e1789bbcf0669"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.extension_search (cognitive 31): _commands.extension_search has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22, ternaries 5, boolean chains 2, error handling 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"389a8a4ef2058339a7e0c8d498c8b351725dd4cbafcf9319ae2c8d4b327100e3"}},{"ruleId":"D2","level":"warning","message":{"text":"_query_commands.integration_list (cognitive 31): _query_commands.integration_list has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16, ternaries 8, loops 3, boolean chains 2, error handling 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_query_commands.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"52df89467565cf5b875174b087497d96e93eddc875a0f46166265f6f5466efa4"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsIntegration.setup (cognitive 31): SkillsIntegration.setup has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, error handling 5, loops 1, ternaries 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/specify_cli/integrations/base.py"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"940a9aa1753a3e64e0e72e5aca9d74a1c35ca0cb547f6e76f8cbf04389023005"}},{"ruleId":"D2","level":"warning","message":{"text":"_query_commands.integration_info (cognitive 29): _query_commands.integration_info has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, ternaries 3, boolean chains 2, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_query_commands.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca96570c7a9f4894e48a96d530149cb495e1e2fa92425e8f4daaeecfec5d606f"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationCatalog.add_catalog (cognitive 29): IntegrationCatalog.add_catalog has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19, error handling 7, boolean chains 1, loops 1, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/catalog.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"15814510b45c83b184a1c261acb629174636c5274c872127a292572e1ac480e9"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._register_commands (cognitive 29): PresetManager._register_commands has cognitive complexity 29 (threshold 15). Drivers by points: if/else 25, boolean chains 2, error handling 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/specify_cli/presets/__init__.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20d63aa1673f42befbda5cb316d04502bbe9cbddda2bf0388ec6e0accd1e374"}},{"ruleId":"D2","level":"warning","message":{"text":"StepCatalog._get_merged_steps (cognitive 29): StepCatalog._get_merged_steps has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19, loops 7, error handling 2, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0d94f7322951cc7c8313d4b3a81cf712c2b289a6bd67fb5afb1f52b68f7d41"}},{"ruleId":"D2","level":"warning","message":{"text":"update_agent_context._collect_context_files (cognitive 28): update_agent_context._collect_context_files has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10, ternaries 9, error handling 5, boolean chains 2, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extensions/agent-context/scripts/python/update_agent_context.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84093854599a267c9b01390fdce2add0bc832d6c8106be4fbb12bcd7e060edd"}},{"ruleId":"D2","level":"warning","message":{"text":"kimi._migrate_legacy_kimi_skills_dir (cognitive 28): kimi._migrate_legacy_kimi_skills_dir has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, boolean chains 4, error handling 3, 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/specify_cli/integrations/kimi/__init__.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b8541922a86d478cd6a8ffe20ab4d2844011a10039d1032f5f1049315b35fc"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.workflow_run (cognitive 28): _commands.workflow_run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, error handling 4, ternaries 4, boolean chains 3, loops 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2c30a7bd616db7f74ebb5565de21585d2bc3c2c24b26a5b70891e839c48d96"}},{"ruleId":"D2","level":"warning","message":{"text":"merge.find_step (cognitive 28): merge.find_step has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, loops 6 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3d77da45308f48d7e8c69ba0623e430c449ccd82c7e837f108e56ec7ae6199"}},{"ruleId":"D2","level":"warning","message":{"text":"InitStep.execute (cognitive 28): InitStep.execute has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, boolean chains 5, error handling 2, loops 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/steps/init/__init__.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b537a8ed408b8ee64522f75c9bf3a330c856db3e8e808e1a94749381ceb06f83"}},{"ruleId":"D2","level":"warning","message":{"text":"events.validate_events (cognitive 27): events.validate_events has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, boolean chains 4, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/events.py"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"894fbb75037069298200e33eae523f7822e1ee57605b4ded90c19c59e31ff498"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._delete_agent_preset_skills (cognitive 27): PresetManager._delete_agent_preset_skills has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15, loops 7, error handling 2, ternaries 2, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":3196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8322d8841ea45b08707b5c1bd07b54558ca2c7a2ff44870f6fe631a414fe08c"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowEngine._run_fan_out (cognitive 27): WorkflowEngine._run_fan_out has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12, loops 11, error handling 3, boolean chains 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/specify_cli/workflows/engine.py"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b432ee75350367ded4898a8b3623ff73d2c97295958b7d77ba9ff18e90c2b55"}},{"ruleId":"D2","level":"warning","message":{"text":"merge._remove_sources_recursively (cognitive 27): merge._remove_sources_recursively has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16, loops 10, 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/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"23488bbc48f3b9a3acd1d9fe56f1ed8a84f2bcb0299dd5bf81b825d3a5b07a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager.scaffold_config (cognitive 26): ExtensionManager.scaffold_config has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13, boolean chains 6, error handling 4, ternaries 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd4187efeb265371fc7d8910dc34a3bb23663e6d0d3a5d03a5d4ef7613c9148"}},{"ruleId":"D2","level":"warning","message":{"text":"integration_status._manifest_file_status (cognitive 26): integration_status._manifest_file_status has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, error handling 9, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integration_status.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9aa6424bc6d45a804f2d6c38a107b513657e7e27e7ef00bec4428986143bf6"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowCatalog.search (cognitive 26): WorkflowCatalog.search has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, boolean chains 4, ternaries 3, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eee4504adf0c9a3d41d6b0f4e03254a6fbd35421aa45e0b208ed63748622a7d"}},{"ruleId":"D2","level":"warning","message":{"text":"merge._record_sources_recursively (cognitive 26): merge._record_sources_recursively has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, loops 10 (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/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f8f4fce6243fe201a4b9cd72e722f5df4258fb7dd6ac1145d06916fa745d69"}},{"ruleId":"D2","level":"warning","message":{"text":"update_agent_context._resolve_plan_path (cognitive 25): update_agent_context._resolve_plan_path has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, error handling 9, ternaries 2, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extensions/agent-context/scripts/python/update_agent_context.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"744e9b95983d44f52405bcc50268d3a4cd67a8b0ee8b2f02b219ccdbbaac7b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"BundleManifest.structural_errors (cognitive 25): BundleManifest.structural_errors has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, boolean chains 7, loops 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/specify_cli/bundler/models/manifest.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19f5e5fdeb0ec12b6b4bf8a69a0f9d5b0c48fac18af8a96a1d8a4c1f439d1a9"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogStackBase._load_catalog_config (cognitive 25): CatalogStackBase._load_catalog_config has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, error handling 5, ternaries 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/catalogs.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bfc3296097f2d06ae8e4d1552e97ed008d606a15e7012c151f639c9f253ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.workflow_step_remove (cognitive 25): _commands.workflow_step_remove has cognitive complexity 25 (threshold 15). Drivers by points: error handling 12, if/else 10, boolean chains 3 (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/specify_cli/workflows/_commands.py"},"region":{"startLine":3490}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cadea42c8bf2994b515bf22f403056d31877d8394e8a53d991e16d1b3b5ab5"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowCatalog._get_merged_workflows (cognitive 25): WorkflowCatalog._get_merged_workflows has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, loops 7, error handling 2, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"879b405266df853ae346b22c5d630b7fc69931ec6f36a8290f0d2ecdebf2ce96"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager.unregister_agent_artifacts (cognitive 24): ExtensionManager.unregister_agent_artifacts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, boolean chains 3, 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/specify_cli/extensions/__init__.py"},"region":{"startLine":2837}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6303d4abdd558d89f33eb0cb39c1550692fa6aefca8460bf84e0c1daea1811d"}},{"ruleId":"D2","level":"warning","message":{"text":"_query_commands.integration_search (cognitive 24): _query_commands.integration_search has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 2, error handling 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_query_commands.py"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b71292ab17046adb9a5f19b4ec26f87281cb03984698a70e1e581d09e54fbe"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesIntegration.setup (cognitive 24): HermesIntegration.setup has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, error handling 4, loops 1, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/hermes/__init__.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e511ce90f6911c453c54349e4d38719536babcad6742ea9aa4e77f241d4523da"}},{"ruleId":"D2","level":"warning","message":{"text":"_github_http.resolve_github_release_asset_api_url (cognitive 23): _github_http.resolve_github_release_asset_api_url has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, boolean chains 6, error handling 4, ternaries 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_github_http.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c43b37c3d5a634df74054b1bf1e15d872ea7c7e8073d27f23edd96c5dc4f769"}},{"ruleId":"D2","level":"warning","message":{"text":"init._install_extension_during_init (cognitive 23): init._install_extension_during_init has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, boolean chains 2, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/commands/init.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e882d073f3eec263d3908e6b2116d4f966123d934a44dc5ecd6e6016eae704d7"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.extension_remove (cognitive 23): _commands.extension_remove has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, ternaries 7 (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/specify_cli/extensions/_commands.py"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5eb100192bb58a6da1abc02c308f01c0a96b5782f45c91f2490eed5c26c0bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotIntegration.is_skills_mode (cognitive 23): CopilotIntegration.is_skills_mode has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 7, error handling 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/copilot/__init__.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"929c6abedfa1a4916df92ed8a7f3d75e2ba2262713843c0a2fcf40b78540e18d"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._build_extension_skill_restore_index (cognitive 23): PresetManager._build_extension_skill_restore_index has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, error handling 5, loops 3, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"76641cbeffd65d8c3c3858b765e0fcd2690661a3022c81491dcdd6db6604234c"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetResolver.resolve_extension_command_via_manifest (cognitive 23): PresetResolver.resolve_extension_command_via_manifest has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, error handling 5, loops 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":5201}}}],"partialFingerprints":{"codehealthFindingId/v1":"68df292bc90983fa997082847b362a668b6202702facc2c25eca6d3826aa16d6"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetResolver._find_bundled_core (cognitive 23): PresetResolver._find_bundled_core has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, loops 4, boolean chains 1, error handling 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/specify_cli/presets/__init__.py"},"region":{"startLine":5502}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a9689a7a138f296216f7d1cae23c6762cb73f7fbdbaaf4a9b0317305e71f66"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.workflow_status (cognitive 23): _commands.workflow_status has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, loops 5, error handling 4 (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/specify_cli/workflows/_commands.py"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"36596f0febd179a4d55bd7d65d4f8f4f705f053b6cfca0e81e9f82ea11dee0a4"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowRegistry.save (cognitive 23): WorkflowRegistry.save has cognitive complexity 23 (threshold 15). Drivers by points: error handling 10, if/else 9, boolean chains 4 (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/specify_cli/workflows/catalog.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b75664a8134ae554744cf4d01bc089f8527da5bd2234d7ce2a762aeac740d3a"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectOverlaySource.collect (cognitive 23): ProjectOverlaySource.collect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, error handling 5, boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/overlays/layer_sources.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5d86e6ee306d2ffcbaf595e409b44b5d92114345e832f7fe48293f9534fab6"}},{"ruleId":"D2","level":"warning","message":{"text":"_version._run_installer (cognitive 22): _version._run_installer has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, error handling 6, 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/specify_cli/_version.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa90c478b20f4ee5abfce809f0756eb0e36a292eebb504bea7f55ba5e65e2132"}},{"ruleId":"D2","level":"warning","message":{"text":"packager._collect_files (cognitive 22): packager._collect_files has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 3 (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/specify_cli/bundler/services/packager.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ede788213ae24aec8c6ab45d733530d7d6e4ee45df59513c2c2d7469bc270cc"}},{"ruleId":"D2","level":"warning","message":{"text":"events._build_opencode_plugin (cognitive 22): events._build_opencode_plugin has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 3, 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/specify_cli/events.py"},"region":{"startLine":1728}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb690e6629bcc15f1bfd33ee408cd530de9b27a8f11c473d5efbdf7c4df32a4"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.catalog_list (cognitive 22): _commands.catalog_list has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, error handling 6, boolean chains 2, ternaries 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e6feb6598c3af6839161d790f56d968afd5d70fbf5d1e7c7fc4d2d01025160"}},{"ruleId":"D2","level":"warning","message":{"text":"_helpers._parse_integration_options (cognitive 22): _helpers._parse_integration_options has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 2, error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_helpers.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"def163d4a014555352955f230ff2ad3fe9e5e2bc6010298aa534ad9e7d9bbf18"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericIntegration._resolve_commands_dir (cognitive 22): GenericIntegration._resolve_commands_dir has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 4, loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/generic/__init__.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60245b73d3080b0246b908cfb82ffe9f8036547961aee3609b13d6a2b74cdee"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.preset_catalog_list (cognitive 22): _commands.preset_catalog_list has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, error handling 6, boolean chains 2, ternaries 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/_commands.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca5241892928901ddfa5362d569ec4befdb6172a2a72151a95c5f21a735cae4"}},{"ruleId":"D2","level":"warning","message":{"text":"common.resolve_template (cognitive 21): common.resolve_template has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 4, error handling 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":"scripts/python/common.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"329729ce3d995553e535668b455ed0019b9e1a1a8bf4cd7fa8734ee836d9ffd8"}},{"ruleId":"D2","level":"warning","message":{"text":"_download_security.detect_archive_format (cognitive 21): _download_security.detect_archive_format has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9, boolean chains 6, error handling 5, ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_download_security.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"004e58f2090f162d458a0966c060298010d534218b217d6a93658c234c00de2e"}},{"ruleId":"D2","level":"warning","message":{"text":"yamlio.dump_json (cognitive 21): yamlio.dump_json has cognitive complexity 21 (threshold 15). Drivers by points: error handling 9, if/else 9, 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/specify_cli/bundler/lib/yamlio.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8614e0d3e30cf8d2021ca90d61d66b2f473ce73d216fdbd4a739c6d1fea2f81a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigManager._get_env_config (cognitive 21): ConfigManager._get_env_config has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, loops 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":4329}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c84bcaccf5c42451005098169d21f1ec7a2f28549c3e8872ac1a55de82124f2"}},{"ruleId":"D2","level":"warning","message":{"text":"_migrate_commands._installed_presets_affecting_agent (cognitive 21): _migrate_commands._installed_presets_affecting_agent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 5, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_migrate_commands.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"865c182f3fea2580ccecca13e60446cd80c30748856c75a7ec2143df88fec176"}},{"ruleId":"D2","level":"warning","message":{"text":"AlquimiaAIIntegration._inject_frontmatter_flag (cognitive 21): AlquimiaAIIntegration._inject_frontmatter_flag has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, boolean chains 2, loops 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/specify_cli/integrations/alquimia/__init__.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a262844b4d983f84ce17301f451e50e7ac878ad83dc9dbf62277b229b17790ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeIntegration._inject_frontmatter_flag (cognitive 21): ClaudeIntegration._inject_frontmatter_flag has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, boolean chains 2, loops 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/specify_cli/integrations/claude/__init__.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4261ed58b6b1fba59f6cbd9685ec46200bdbde2dad7b942c63e40de6ce9470e2"}},{"ruleId":"D2","level":"warning","message":{"text":"VibeIntegration._inject_frontmatter_flag (cognitive 21): VibeIntegration._inject_frontmatter_flag has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, boolean chains 2, loops 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/specify_cli/integrations/vibe/__init__.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebfe8442d83c04cb411eaf644ca1a7634f190ed215215ba3a6d752c1a2248bb"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.preset_info (cognitive 21): _commands.preset_info has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 2, ternaries 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/_commands.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e46ec12ceb1036a769f4449a889ca43b39f01d6f315a69e27e7e3aa36b74bca"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandStep.execute (cognitive 21): CommandStep.execute has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, boolean chains 7, loops 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/specify_cli/workflows/steps/command/__init__.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"000fb913cacabd0f37953c355c85f02eafb7890a6b1a3ce16e6b54a52673e368"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandRegistrar.register_commands_for_non_skill_agents (cognitive 20): CommandRegistrar.register_commands_for_non_skill_agents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, error handling 3, boolean chains 1, loops 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/agents.py"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6d565ff850a101d0b4879e22bb3d03b91ffb7e821bd0bc9d967f955df0084e"}},{"ruleId":"D2","level":"warning","message":{"text":"events._resolve_event_command_argv (cognitive 20): events._resolve_event_command_argv has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 4, error handling 3 (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/specify_cli/events.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ef9c5432343b812f413215b09099c5f49b4f6891ffef7411f528baf2ddfb00"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager._get_installed_command_name_map (cognitive 20): ExtensionManager._get_installed_command_name_map has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 6 (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/specify_cli/extensions/__init__.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"a170ca4c5648d11591c11bc067caf0768f9a6d003ebb753da3a6a073fb726d09"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionManager._get_skills_dir (cognitive 20): ExtensionManager._get_skills_dir has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 3, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"147bb1ef4add90c973af0bd7e51c7a3c7e8221e0193a812ad4f4509c1f8a515d"}},{"ruleId":"D2","level":"warning","message":{"text":"HookExecutor._evaluate_condition (cognitive 20): HookExecutor._evaluate_condition has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, ternaries 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":4930}}}],"partialFingerprints":{"codehealthFindingId/v1":"880385b9d6d7022a0e5f6e6af95fcac8b5dcf35ce0eab8feef975604d1a2b087"}},{"ruleId":"D2","level":"warning","message":{"text":"integration_scaffold.scaffold_integration (cognitive 20): integration_scaffold.scaffold_integration has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, error handling 7, loops 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integration_scaffold.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"8001dd0600450b5eabf6cedf5da4634cc093cab135903a2fa07b1b57ece49e88"}},{"ruleId":"D2","level":"warning","message":{"text":"_query_commands.integration_catalog_list (cognitive 20): _query_commands.integration_catalog_list has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, ternaries 6, boolean chains 1, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_query_commands.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"550d76578fee6e3382de4ce32325f4883f38b669e0fef33eb4680390c1cae3a6"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetResolver.resolve_with_source (cognitive 20): PresetResolver.resolve_with_source has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8, error handling 5, loops 3, ternaries 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":5249}}}],"partialFingerprints":{"codehealthFindingId/v1":"89789ff19356ba75378e3d0b0110ca1707c28db245ea99d05e0b14eb3d5fb54a"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowCatalog._load_catalog_config (cognitive 20): WorkflowCatalog._load_catalog_config has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, error handling 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe978bd0e6ea4768eecdc03636d3b258d72b9b681d1c2b3656b69a148ceffe2"}},{"ruleId":"D2","level":"warning","message":{"text":"StepCatalog._load_catalog_config (cognitive 20): StepCatalog._load_catalog_config has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, error handling 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d2b258d13c26bfaf91d4bd76a30ba4b4cf9237d4ba544dc1e8b66108593bc4"}},{"ruleId":"D2","level":"warning","message":{"text":"StepCatalog._fetch_single_catalog (cognitive 20): StepCatalog._fetch_single_catalog has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, error handling 8, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d408086eae4162a96e48c5e8b50af25577f458e6c3d938c719f6b0090841e1f"}},{"ruleId":"D2","level":"warning","message":{"text":"expressions._interpolate_expressions (cognitive 20): expressions._interpolate_expressions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 3, ternaries 2, 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/specify_cli/workflows/expressions.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5bbdac05db60855315dc76ee1b4bcdc5b7d02f836f0b69ea7f2cc13aba9867"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionCatalog._fetch_single_catalog (cognitive 19): ExtensionCatalog._fetch_single_catalog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, error handling 8, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":3635}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8a266b6601394fe9943f19500dea697143842c0a5a601d6a76bcac783f862a"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.extension_enable (cognitive 19): _commands.extension_enable has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 7, boolean chains 1, 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/specify_cli/extensions/_commands.py"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa05b30df359aa5df9fcafa5475bbab7d3e67fc7886e507e9cab0db21f9e9b21"}},{"ruleId":"D2","level":"warning","message":{"text":"AlquimiaAIIntegration.inject_argument_hint (cognitive 19): AlquimiaAIIntegration.inject_argument_hint has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 2, loops 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/specify_cli/integrations/alquimia/__init__.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ec955e2d82122df75be1b7a58169b46c0a12d00888ad8a21ffb7225b20dbd1"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationCatalog._fetch_single_catalog (cognitive 19): IntegrationCatalog._fetch_single_catalog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, error handling 8, 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/specify_cli/integrations/catalog.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d819a0f9b2d78568dde27565737b60c6949a5f80fba75d8217c3efbd9fec6d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeIntegration.inject_argument_hint (cognitive 19): ClaudeIntegration.inject_argument_hint has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 2, loops 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/specify_cli/integrations/claude/__init__.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfd2b2a219b7ccfe52c4f2625831dc3aa66e31a9f554551170ada0e0a6c503a"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager.install_from_directory (cognitive 19): PresetManager.install_from_directory has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, error handling 5, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":3474}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e985acb80062a232d1c125e66f2cef3c9f685095cfb4609fd0707100a876f9"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetCatalog._load_catalog_config (cognitive 19): PresetCatalog._load_catalog_config has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, error handling 3, boolean chains 1, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":4200}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a982dac92660db3d66ba77fc151bb0a796e27ce2eb6be49708da6748972bc11"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowEngine._coerce_input (cognitive 19): WorkflowEngine._coerce_input has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 2, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/engine.py"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af15b0a7262347fc628903afbcc29689f694b90c4920b6c59723029b953cff3"}},{"ruleId":"D2","level":"warning","message":{"text":"StepListComposer._collect_base_step_ids (cognitive 19): StepListComposer._collect_base_step_ids has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (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/specify_cli/workflows/overlays/composer.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f315600c65211cd6d16b5bca3bd9fe52418855e8e728aae083c07fd2735b79"}},{"ruleId":"D2","level":"warning","message":{"text":"merge._all_base_step_ids (cognitive 19): merge._all_base_step_ids has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (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/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c41477f92c157fdf20a5bb8f4662635562c9362b46e45bf1da586a2c6c4fea0"}},{"ruleId":"D2","level":"warning","message":{"text":"merge._init_sources_recursively (cognitive 19): merge._init_sources_recursively has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (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/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6986ef1a1a6745fd89a6f37cd3fcfd837b12d33a6fae2de28185ef2ee92d004"}},{"ruleId":"D2","level":"warning","message":{"text":"merge._build_attribution (cognitive 19): merge._build_attribution has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (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/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ed02d30fdfdf23273c47fbb96749e54042bc9e7ddc19a35ce0e61ecdce1739"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptStep.execute (cognitive 19): PromptStep.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 7 (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/specify_cli/workflows/steps/prompt/__init__.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"104d3bff83a4170bcbeff6f6f2049085c4dfd03cb6a2802244840ede01132fab"}},{"ruleId":"D2","level":"warning","message":{"text":"setup_plan.main (cognitive 18): setup_plan.main has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, ternaries 4, boolean chains 1, error handling 1, 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":"scripts/python/setup_plan.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb859b8fea754c4b3e08fc940244d9b3915e8ab0fe2d759344948e9cfee39f88"}},{"ruleId":"D2","level":"warning","message":{"text":"YamlIntegration.setup (cognitive 18): YamlIntegration.setup has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, ternaries 7, boolean chains 1, error handling 1, 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/specify_cli/integrations/base.py"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bad0c25c57de6c595207244cc5187e7cc2322c870e4e5808df0e88db70e4f0"}},{"ruleId":"D2","level":"warning","message":{"text":"ForgeIntegration._apply_forge_transformations (cognitive 18): ForgeIntegration._apply_forge_transformations has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/forge/__init__.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"82277e050c9fc1c84baa84510685eb94a5e17420a15ec239e8eb81a44919b869"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetManager._merge_pack_registered_skills (cognitive 18): PresetManager._merge_pack_registered_skills has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 2, ternaries 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"38747e648a702382253226c7e64d60b2f39623c0186ed3ee39738deaa71c7fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"PresetCatalog.download_pack (cognitive 18): PresetCatalog.download_pack has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 3, ternaries 3, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":4744}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67cb10cef30c034a6ef258b4a61cbe5bb9f1587b65626b1b4fd735f05fb0754"}},{"ruleId":"D2","level":"warning","message":{"text":"expressions._filter_map (cognitive 18): expressions._filter_map has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 6 (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/specify_cli/workflows/expressions.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"38df1061630d7a720b4bcbdd731c18fb305013e834d845e2182f3d459ec6603e"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.validate_overlay_yaml (cognitive 18): schema.validate_overlay_yaml has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 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/specify_cli/workflows/overlays/schema.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9004989f4d6e75f2af7b2d48849297d5ea56f4db106e65822e7bb3e5b915c02f"}},{"ruleId":"D2","level":"warning","message":{"text":"_utils.merge_json_files (cognitive 17): _utils.merge_json_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, error handling 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_utils.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd3afbd1f1913368351448e10ee28a16b810b7d722ecc029d85688495d438f8"}},{"ruleId":"D2","level":"warning","message":{"text":"catalog_config.add_source (cognitive 17): catalog_config.add_source has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 5, error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/bundler/commands_impl/catalog_config.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5bf4bad70c493090e1296c885b5ba421337045e0a09374fa5f6ffe185b0a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionCatalog.download_extension (cognitive 17): ExtensionCatalog.download_extension has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 3, ternaries 3, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":4060}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b8e61864c5389b8d43e8806d4db1025734a090e2b2d959b5ac0ac0447ddb1e"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.extension_list (cognitive 17): _commands.extension_list has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9, boolean chains 3, if/else 3, loops 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/specify_cli/extensions/_commands.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55bcc919ba90f40fa176337eb6d644413e7926de1ebf973623c7b8db01ffd22"}},{"ruleId":"D2","level":"warning","message":{"text":"integration_state.normalize_integration_settings (cognitive 17): integration_state.normalize_integration_settings has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integration_state.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"857f8d89fb3342c9f9c6ae80d080a52d9f5040051944a0c38b68f1109462ab1a"}},{"ruleId":"D2","level":"warning","message":{"text":"shared_infra._ensure_safe_shared_directory (cognitive 17): shared_infra._ensure_safe_shared_directory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 5, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/shared_infra.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92c7e530459b70f37cd0140eedfee5b631cc6de4c539a8e001a0dc44a73eb4c"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands._stage_workflow_file (cognitive 17): _commands._stage_workflow_file has cognitive complexity 17 (threshold 15). Drivers by points: error handling 10, if/else 7 (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/specify_cli/workflows/_commands.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6220f892fb66a6d70dabcdae918bad303188c3054a771a25d0fb7c4cb74b21"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands.workflow_resume (cognitive 17): _commands.workflow_resume has cognitive complexity 17 (threshold 15). Drivers by points: error handling 10, if/else 6, boolean chains 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6e30076bca73d3d60c88ba55c256024b1ef9057d1486ebb4e0218401bfd56d"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowCatalog._fetch_single_catalog (cognitive 17): WorkflowCatalog._fetch_single_catalog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 7, 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/specify_cli/workflows/catalog.py"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce2e982eb13322186058803257516821be57243058805c355cbbd6ce10762eb"}},{"ruleId":"D2","level":"warning","message":{"text":"merge.validate_edits (cognitive 17): merge.validate_edits has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cceebd15ec8b343d7c0fd6a0ec644352c460bb83d57c7e5c3d1552e439c1e48"}},{"ruleId":"D2","level":"warning","message":{"text":"create_new_feature._parse_args (cognitive 16): create_new_feature._parse_args has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/python/create_new_feature.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e53ad46ecd3f01ec32bf0c5d3dbfd159b9d35dfbf0f08618711d93c1405308"}},{"ruleId":"D2","level":"warning","message":{"text":"setup_tasks.main (cognitive 16): setup_tasks.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, ternaries 3, boolean chains 1, error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/python/setup_tasks.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a529ddd8a7989355b129871dbf34a42304201ad30f17aa1a934fa399ae4d86"}},{"ruleId":"D2","level":"warning","message":{"text":"DroidIntegration._inject_frontmatter_flag (cognitive 16): DroidIntegration._inject_frontmatter_flag has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, loops 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/specify_cli/integrations/droid/__init__.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f58819f9576606a7eae072867f132de9131337758b8ea31b3565e4bbdaa45df"}},{"ruleId":"D2","level":"warning","message":{"text":"HermesIntegration.teardown (cognitive 16): HermesIntegration.teardown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, error handling 4, boolean chains 3, loops 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/specify_cli/integrations/hermes/__init__.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2701c1529322ece1365a038a3d72d8bd46e4b1bd9e5ace61cad5b2fd3e6cc21"}},{"ruleId":"D2","level":"warning","message":{"text":"KimiIntegration.teardown (cognitive 16): KimiIntegration.teardown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, error handling 6, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/kimi/__init__.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e3d0bd2cf45176d913b96f2f10143f43dc40ef5d24278e303b4b5902a08bc4"}},{"ruleId":"D2","level":"warning","message":{"text":"shared_infra.refresh_shared_templates (cognitive 16): shared_infra.refresh_shared_templates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 4, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/shared_infra.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf229b00a729c4284463527f6b563eea3d4040b6552acbbc97531581eb63439f"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands._read_response_within_limit (cognitive 16): _commands._read_response_within_limit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, error handling 5, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc7fa29034bc0603730f2c95e9d28a5d37e99be22b538ecf43add6ce299187c"}},{"ruleId":"D2","level":"warning","message":{"text":"_commands._workflow_install_transaction (cognitive 16): _commands._workflow_install_transaction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, error handling 4, loops 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/specify_cli/workflows/_commands.py"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fab88bf0cf8016fbe1e5cade412abb96bb07949c5f8e5691e3665c9b0ee5d19"}},{"ruleId":"D2","level":"warning","message":{"text":"expressions._apply_filter (cognitive 16): expressions._apply_filter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/expressions.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"054dac5b41666610757cf51493d6e8bc9551834c32cd10f6290744dfd8b8567d"}},{"ruleId":"D2","level":"warning","message":{"text":"schema._parse_edit (cognitive 16): schema._parse_edit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 3 (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/specify_cli/workflows/overlays/schema.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4281c213e89667085e61a4459c093eb0e8968ace296d10bf108e28e7df64b99b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: presets/__init__.py: FileTooLong \u2014 3397 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/presets/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f6145d5a3c227f6a4cc125f97813549b6a406c0e0c826663ea5dfce1e4be7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: extensions/__init__.py: FileTooLong \u2014 2784 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/extensions/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13ba9025ae49b0e3b2545e80affea9fa40dfed6e23e0d15e781023044c6281c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workflows/_commands.py: FileTooLong \u2014 2711 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/workflows/_commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6830135a7d12aacb102f52ab7b9b972045d84c4a1b3f65864f3fa4ecf14a9339"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: extensions/_commands.py: FileTooLong \u2014 1842 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/extensions/_commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e015ebd03a338d3fda0caaa78a0e529848ab1db976452fa0cce4824288d6102"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workflows/catalog.py: FileTooLong \u2014 1006 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/workflows/catalog.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c82fdec4dedf7a5bc5032e9cca53d2312a198fabe4e2f4d5eeaa0e0d1b9b00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: integrations/base.py: FileTooLong \u2014 985 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/integrations/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"551040556946e843d6acb3b53774ee8c556bf65ab0cca7ea7f22e3ee15ff33f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workflows/engine.py: FileTooLong \u2014 974 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/workflows/engine.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c071ff71e0fa7bdcd58373981f07a07ece6678bad57265cb46bd8b7cc26966"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: specify_cli/_version.py: FileTooLong \u2014 929 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/_version.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3786e200c8b931c8a7deab0ac02c47057bca4b2ff464b4e30f64f7162752e417"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: specify_cli/agents.py: FileTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/agents.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c657213ce7b56fb5ca48f713d455a5572aa7bbc322186640c013eb0ed068cb9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/init.py: FileTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/commands/init.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c350ac1df61e69bda1f01f84c70826911189f4b52ca0968c3e7b53d7613f86e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bundle/__init__.py: FileTooLong \u2014 709 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/commands/bundle/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c80e657208c6948c3e28829586195c93d1580b520c197b521041d2629e77a67"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PresetManager: TooManyMethods \u2014 39 methods. 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/specify_cli/presets/__init__.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11d76edb8e2e11720dc1784f32b968f881e7a38501ebec719b028f0ea77cf2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: integrations/_migrate_commands.py: FileTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/integrations/_migrate_commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b2340e756eff91f62fa1b16ab5622e3ddceabdffde3b83b5267c535016ba09"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: presets/_commands.py: FileTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/presets/_commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f841a8d71e61e5231f6cfdbf1c3e816b40913b22b770ea6d4b26e8bc3a8153"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IntegrationBase: TooManyMethods \u2014 34 methods. 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/specify_cli/integrations/base.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f7bc56165320b32ad86d595793c0fa7bcf8e82e28cc309315125d06d3d9992"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExtensionManager: TooManyMethods \u2014 33 methods. 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/specify_cli/extensions/__init__.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00cbe9af9bb36f20568ddb0dd47dfcda51f7e5b58332a2d301efe35eede2a32"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: integrations/catalog.py: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/integrations/catalog.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6abcfcb09b80381f281d7775a7c02ccd770ff6c3342f56072e7bbc6a7bb314b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: specify_cli/integration_status.py: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded). 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/specify_cli/integration_status.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77b747742672587ebfacac94dcfdb52b46d94c98b146075b40b1938b6818809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): src/specify_cli/workflows/catalog.py:448-479 | src/specify_cli/workflows/catalog.py:1143-1174 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/catalog.py:448\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac61892bd3e02054962071f8dd2b51782bcb4da1783b277fbbb27ebdf62ec21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/specify_cli/integrations/base.py:388-421 | src/specify_cli/integrations/copilot/__init__.py:398-428 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/base.py"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c46274ea02b2c201ce8e0ed9231995402cd5ae9f16ffe41882644806c9f765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/specify_cli/extensions/__init__.py:3934-3962 | src/specify_cli/presets/__init__.py:4616-4644 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/__init__.py:3934\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":3934}}}],"partialFingerprints":{"codehealthFindingId/v1":"0426b579a62f543c8f7ab7e886ae08d71e895575e6a91121c08834a88e0bbb34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): src/specify_cli/extensions/__init__.py:3552-3579 | src/specify_cli/presets/__init__.py:4281-4308 \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/specify_cli/extensions/__init__.py"},"region":{"startLine":3552}}}],"partialFingerprints":{"codehealthFindingId/v1":"284fd5d5204f6fbe5bbd08367b29f4227d38f9e70bf7f5f40b999e5a7b15d53c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): src/specify_cli/workflows/catalog.py:745-769 | src/specify_cli/workflows/catalog.py:1422-1446 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/specify_cli/workflows/catalog.py"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0220c9684cecfedd0aaeccd68748724c9ac13c781b2aff8a254204efbca9ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/specify_cli/extensions/__init__.py:687-713 | src/specify_cli/presets/__init__.py:597-618 \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/specify_cli/extensions/__init__.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"1013b6430ba0aec4c0625cb1357f993c85cbde89823212821b6b957e81637b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/specify_cli/extensions/__init__.py:830-851 | src/specify_cli/presets/__init__.py:706-727 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44c17b1a849156b3d6a8a5094faa3a874e5e10b9cbfaabd730a3224d5360a7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/specify_cli/extensions/__init__.py:3738-3759 | src/specify_cli/presets/__init__.py:4446-4467 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/__init__.py:3738\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/specify_cli/extensions/__init__.py"},"region":{"startLine":3738}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9130aaeb0f1a6e3665e922555910efaa6c92c81b8bf6e260dda182f567440dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/specify_cli/integrations/agy/__init__.py:48-68 | src/specify_cli/integrations/cline/__init__.py:100-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/integrations/agy/__init__.py:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/agy/__init__.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed40a0b3f6a0511f63c961cd64ed80a81cbd8de13d9c79c91fc4953fc2978aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/specify_cli/presets/__init__.py:1293-1313 | src/specify_cli/presets/__init__.py:1339-1363 \u2014 both copies are in the same file, so extract the block 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/specify_cli/presets/__init__.py:1293\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c505d9f7ee5291167a1b644164e88e41422513f5f045b2ac34cf500c4b71fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/specify_cli/workflows/catalog.py:548-568 | src/specify_cli/workflows/catalog.py:1243-1263 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/catalog.py:548\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f48d21ba8945bbb73ac5c1f6283848c20ed98e8fb204f0d83c01b6205bcb348"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/specify_cli/workflows/steps/do_while/__init__.py:67-87 | src/specify_cli/workflows/steps/while_loop/__init__.py:76-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/workflows/steps/do_while/__init__.py:67\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/steps/do_while/__init__.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8010752ac386ff598a1c71bae4eccd2184f2e9190aa31c4a815eba2c52e17850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/specify_cli/integrations/alquimia/__init__.py:68-87 | src/specify_cli/integrations/claude/__init__.py:70-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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/specify_cli/integrations/alquimia/__init__.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0477a27e00c6b3e22f37b4ed0c65cc6b645e6d82d028a23f71fe64c446602af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/specify_cli/shared_infra.py:525-544 | src/specify_cli/shared_infra.py:581-600 \u2014 both copies are in the same file, so extract the block 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/specify_cli/shared_infra.py:525\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/shared_infra.py"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87e93a7ddb0f9d88881f1fe75e7ace5e21659454b19310678ae37b8e44612e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/specify_cli/extensions/__init__.py:725-745 | src/specify_cli/presets/__init__.py:630-648 \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/specify_cli/extensions/__init__.py"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f399504ba25b87a2dd9daf9b04dc0fc65644c749a5fe46714b5ebe480d668ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/specify_cli/integrations/_install_commands.py:251-269 | src/specify_cli/integrations/_install_commands.py:299-318 \u2014 both copies are in the same file, so extract the block 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/specify_cli/integrations/_install_commands.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e52aba7aecb1e30b9b830c515c340dea2a2820309180d918b29ec38f1aff434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/specify_cli/workflows/catalog.py:516-535 | src/specify_cli/workflows/catalog.py:1212-1230 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/catalog.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa845151362e89f5efb03cb43c7eb65d2305dc085f9191fb09607b6e573d697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/specify_cli/extensions/__init__.py:3711-3732 | src/specify_cli/presets/__init__.py:4423-4440 \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/specify_cli/extensions/__init__.py"},"region":{"startLine":3711}}}],"partialFingerprints":{"codehealthFindingId/v1":"078efc8e6908b9f53df4ed1fa4d72cd23c10dde6edccf6a6244ff28641329be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/specify_cli/extensions/__init__.py:3843-3860 | src/specify_cli/presets/__init__.py:4520-4539 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":3843}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab0c05e615791b59d719c1ec02bd6af001363999ea4a35ed7209ad9324969dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/specify_cli/integrations/_install_commands.py:144-162 | src/specify_cli/integrations/_migrate_commands.py:471-488 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/integrations/_install_commands.py:144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_install_commands.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea46e9334125ec3840fdac12069c4d462d67b3a7d9bbb7f8994268628f10c57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/specify_cli/workflows/_commands.py:1335-1353 | src/specify_cli/workflows/_commands.py:1473-1490 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafd519ace40811eb3c3120930248f42d8b8789b11b03e4986f0bc79e2bc90c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/specify_cli/workflows/steps/command/__init__.py:81-98 | src/specify_cli/workflows/steps/prompt/__init__.py:58-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/steps/command/__init__.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3815d37ff4fd0d7960587b49d38692d0a37f11618c2a78455668422f1e108f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/specify_cli/_assets.py:36-52 | src/specify_cli/_assets.py:59-75 | src/specify_cli/_assets.py:82-98 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_assets.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ec34dad4f7b36f5585ba5906c75af859e1fdbc2f13000a09960ffe461f9474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/specify_cli/extensions/__init__.py:3814-3838 | src/specify_cli/integrations/catalog.py:268-284 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/__init__.py:3814\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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/specify_cli/extensions/__init__.py"},"region":{"startLine":3814}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b666781041c48ac2ef3e3c8b81e357c01b2e5e304ddb19fdcb1779e381560f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/specify_cli/extensions/_commands.py:1234-1250 | src/specify_cli/extensions/_commands.py:1451-1467 \u2014 both copies are in the same file, so extract the block 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/specify_cli/extensions/_commands.py"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"60699979e4647d3ac8dcc26446f72d46d5b2c7c81079768db0317aa5a6d63e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/specify_cli/integrations/base.py:881-900 | src/specify_cli/integrations/forge/__init__.py:113-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/base.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"5766c7742f66b0c0dfc7aa96efc1e7fa8276cff83b4b66569bdef4e2fafd870c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/specify_cli/events.py:1282-1297 | src/specify_cli/events.py:1376-1392 \u2014 both copies are in the same file, so extract the block 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/specify_cli/events.py"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"818f513b53c96e1ed5271ea9ba013f9f1615a7c00e11c40b60152148bc225b04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/specify_cli/events.py:1947-1962 | src/specify_cli/events.py:1979-1997 \u2014 both copies are in the same file, so extract the block 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/specify_cli/events.py"},"region":{"startLine":1947}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a39d9fa49cd08c13858b941f795f31fe3ed9d6b3ed8d8ab9e7b8205ef1b92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/specify_cli/extensions/__init__.py:4170-4185 | src/specify_cli/presets/__init__.py:4862-4877 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/__init__.py:4170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":4170}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f5931efa51ec77b6b9c4398f7db039ed1b5708e6aa03384d23b5b0845cacfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/specify_cli/workflows/_commands.py:1880-1895 | src/specify_cli/workflows/_commands.py:2117-2132 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/_commands.py"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1d4f616b6f7e646bb0cb264cec0aa050364ec05219ca6b1f8601604cf42325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/specify_cli/agents.py:845-861 | src/specify_cli/agents.py:925-939 \u2014 both copies are in the same file, so extract the block 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/specify_cli/agents.py"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"066fcdf0b67b8023b1ee80bfe4c4a243a32983d2c0b75ca7de2d8e7a74300779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/specify_cli/extensions/__init__.py:4155-4169 | src/specify_cli/presets/__init__.py:4847-4861 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/__init__.py:4155\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":4155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06aa00a5761898056eaf6c29e6856797dc6911e26261b4bb65ae19abde320d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/specify_cli/extensions/_commands.py:515-529 | src/specify_cli/presets/_commands.py:761-775 \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/specify_cli/extensions/_commands.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c2151b1fb1084620042750fff97b77e45de71d05426a4e8f39193bf0e268ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/specify_cli/workflows/_commands.py:1844-1858 | src/specify_cli/workflows/_commands.py:2486-2500 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/_commands.py:1844\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1898234407673c586001bd229d3e22c798f8e132bd958ded0867a03a3a715e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/specify_cli/workflows/steps/command/__init__.py:135-151 | src/specify_cli/workflows/steps/prompt/__init__.py:105-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/workflows/steps/command/__init__.py:135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/specify_cli/workflows/steps/command/__init__.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ba27dd199f7db27b52d97dfedc4c6850072d9fa3b7151d66638a5288ffb701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/specify_cli/workflows/steps/command/__init__.py:259-273 | src/specify_cli/workflows/steps/prompt/__init__.py:278-292 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/workflows/steps/command/__init__.py:259\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/steps/command/__init__.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d2f5982dbca934d36a36f788a28081e519239683125de540af78fed9ef6559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): src/specify_cli/integrations/alquimia/__init__.py:116-129 | src/specify_cli/integrations/claude/__init__.py:137-150 | src/specify_cli/integrations/droid/__init__.py:37-55 | src/specify_cli/integrations/vibe/__init__.py:45-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/alquimia/__init__.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d137073b4c1d2eef07730a04034bccf441d86be37908bf68f8f0f3081fe9262c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/specify_cli/_download_security.py:979-996 | src/specify_cli/_download_security.py:1163-1176 \u2014 both copies are in the same file, so extract the block 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/specify_cli/_download_security.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f542e1c2dc5dcc3f439fec6dc6344ade581b4f91165724d06ef4cf208a3536c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/specify_cli/extensions/__init__.py:4136-4149 | src/specify_cli/presets/__init__.py:4830-4843 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/__init__.py:4136\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/specify_cli/extensions/__init__.py"},"region":{"startLine":4136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9923b6521587f512c325b99f69448090c38a36073835bd15192b252dcd069736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/specify_cli/extensions/_commands.py:2535-2548 | src/specify_cli/extensions/_commands.py:2605-2618 \u2014 both copies are in the same file, so extract the block 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/specify_cli/extensions/_commands.py"},"region":{"startLine":2535}}}],"partialFingerprints":{"codehealthFindingId/v1":"5017ef3bfdfb26b31dd358192c86b2d4f0c3acdcf653651581d959df494c851c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/specify_cli/presets/_commands.py:583-596 | src/specify_cli/presets/_commands.py:620-633 \u2014 both copies are in the same file, so extract the block 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/specify_cli/presets/_commands.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"58625831ba4997b413315bac95fd9363c8ccc9edfaa9a1ce8f34bd73f6f9edaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/specify_cli/workflows/_commands.py:1431-1444 | src/specify_cli/workflows/_commands.py:1546-1559 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/_commands.py"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"617500ed59c02607fa05d707a2d9b2aea7a97a5aeb2f50eb586110a8f9b00e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/specify_cli/workflows/catalog.py:658-671 | src/specify_cli/workflows/catalog.py:1349-1362 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/catalog.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7472071a6f927c99edfa6eb97dc415cd1722b3f3410eee7b22b2cdf2557b5fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/specify_cli/integrations/base.py:1045-1057 | src/specify_cli/integrations/base.py:1255-1267 | src/specify_cli/integrations/base.py:1486-1498 | src/specify_cli/integrations/forge/__init__.py:127-139 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/integrations/base.py:1045\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/base.py"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"256e7df4beaaa0ae666adb6e9e8b1be1d82ea1ac72e431a7e17c83ad75f76723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/specify_cli/workflows/steps/command/__init__.py:232-245 | src/specify_cli/workflows/steps/prompt/__init__.py:262-276 | src/specify_cli/workflows/steps/shell/__init__.py:145-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/workflows/steps/command/__init__.py:232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/steps/command/__init__.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbac84fed37fdcdb9956c112fcbec09b2fdaf6d010e931c5822a2294b628eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/_version.py:534-546 | src/specify_cli/_version.py:554-566 \u2014 both copies are in the same file, so extract the block 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/specify_cli/_version.py:534\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_version.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"804ae2dda8c254d1cbf0b676607b972d234d67734991ba00b77c6016180d326b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/bundler/lib/yamlio.py:153-165 | src/specify_cli/workflows/catalog.py:184-196 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/workflows/catalog.py:184\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/specify_cli/bundler/lib/yamlio.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af0998acee5f93992cb76c2499b8e5d7f693a6468db77fb1cd9b40ee6fe1e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/events.py:1399-1412 | src/specify_cli/events.py:1430-1442 \u2014 both copies are in the same file, so extract the block 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/specify_cli/events.py"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e6e198544930c1532b17b41c4fb0498bbe3e55fabfb2f9cbf33aeaac2cddc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/events.py:2062-2074 | src/specify_cli/events.py:2307-2323 \u2014 both copies are in the same file, so extract the block 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/specify_cli/events.py"},"region":{"startLine":2062}}}],"partialFingerprints":{"codehealthFindingId/v1":"696cdb6f477afdf64dd1783af7e7452b4aeaeb704690fbd0339d67dcc97e418a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/extensions/__init__.py:3920-3932 | src/specify_cli/presets/__init__.py:4602-4614 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/__init__.py:3920\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":3920}}}],"partialFingerprints":{"codehealthFindingId/v1":"54bece8470e15aab9deeb4c1813842d63b4f2524ec8dce16baec73bd6af910e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/integrations/_install_commands.py:227-239 | src/specify_cli/integrations/_migrate_commands.py:599-611 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_install_commands.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d51b60b6f70e6d8d5e9349618e25070ab8a63be72ffd70c1b42ca6c1f4a0059"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/integrations/base.py:1796-1808 | src/specify_cli/integrations/hermes/__init__.py:164-176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/integrations/base.py:1796\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/specify_cli/integrations/base.py"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"04197eb069eaa47a72f48ef5a35c2ddc9c8b7195ffc9f556dc53b195b8994a3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/presets/__init__.py:2892-2904 | src/specify_cli/presets/__init__.py:3228-3240 \u2014 both copies are in the same file, so extract the block 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/specify_cli/presets/__init__.py"},"region":{"startLine":2892}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ef16ec7e90252693d9df99a2a951b8a3d9cf6a9e27723c7a6ccd33ce1b9730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/presets/__init__.py:3406-3418 | src/specify_cli/presets/__init__.py:3454-3466 \u2014 both copies are in the same file, so extract the block 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/specify_cli/presets/__init__.py"},"region":{"startLine":3406}}}],"partialFingerprints":{"codehealthFindingId/v1":"673006aa768795246d87a482d5177490e12cd6167f11aae06d0fb8a88d702d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/workflows/_commands.py:1897-1909 | src/specify_cli/workflows/_commands.py:2134-2146 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/_commands.py"},"region":{"startLine":1897}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d21958690ba7ea157b00e8ce9673d9a6f5e200cf1e9b7a677e091e0dadf4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/specify_cli/workflows/overlays/_commands.py:81-93 | src/specify_cli/workflows/overlays/_commands.py:138-150 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/overlays/_commands.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"020c9dc9901d050269198dfeda355b3e365c158336f0ee13621f4c35cbbef635"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specify_cli/_download_security.py:675-686 | src/specify_cli/_download_security.py:792-803 \u2014 both copies are in the same file, so extract the block 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/specify_cli/_download_security.py:675\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/_download_security.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f2532cba740762ce67b01b891ee791a871c37ae77112fbf76ce742b9cb06fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specify_cli/extensions/__init__.py:2560-2573 | src/specify_cli/presets/__init__.py:3689-3700 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/__init__.py:2560\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":2560}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6efb480f246145855ed183c42833124d2384a8192d5e17176079006c8e9059"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specify_cli/extensions/__init__.py:4021-4032 | src/specify_cli/presets/__init__.py:4701-4712 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/__init__.py:4021\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":4021}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc21b14087abb5075cc92c5b57998223793d84b960122b8641440d7d40e4819a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specify_cli/integrations/base.py:1162-1173 | src/specify_cli/integrations/base.py:1366-1377 \u2014 both copies are in the same file, so extract the block 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/specify_cli/integrations/base.py"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"210a2385c8d593e3c07e269f08da55d29fa17fa7cad5b4ee79ce73c973cefd43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specify_cli/integrations/base.py:1716-1734 | src/specify_cli/integrations/hermes/__init__.py:115-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/integrations/base.py:1716\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/base.py"},"region":{"startLine":1716}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a3064d4cfe43f3efff4fcbf333529a1d81af8be77f274a5e8350792bbec01a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specify_cli/integrations/catalog.py:403-414 | src/specify_cli/integrations/catalog.py:516-528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/catalog.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab181ae6392a43fc86f4da5aadf6389b721c543613eabdd95d4850751274433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specify_cli/presets/__init__.py:2780-2791 | src/specify_cli/presets/__init__.py:3451-3462 \u2014 both copies are in the same file, so extract the block 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/specify_cli/presets/__init__.py:2780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":2780}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d424a9df0473b34439a8874ea2de36687e1338ae8d471c0f4f49b938a4ac8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specify_cli/presets/__init__.py:3236-3247 | src/specify_cli/presets/__init__.py:3328-3339 \u2014 both copies are in the same file, so extract the block 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/specify_cli/presets/__init__.py"},"region":{"startLine":3236}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f30b09ba3464535adec14d156bd1b4d5cceca39769dce6445995bc6f86fa1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specify_cli/workflows/catalog.py:406-417 | src/specify_cli/workflows/catalog.py:1101-1112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/workflows/catalog.py:406\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"e100756432fcc01a03bbcedd58d138fa42ec7b3768c8f8dc7591de0b2c9a75fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/specify_cli/presets/_commands.py:539-549 | src/specify_cli/presets/_commands.py:588-598 | src/specify_cli/presets/_commands.py:625-635 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/_commands.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"9265ae52e50b3ba13e4dfea795077a8a8141a5650044eee1687332e2752b42de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/specify_cli/bundler/commands_impl/catalog_config.py:56-66 | src/specify_cli/bundler/models/catalog.py:291-301 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/bundler/commands_impl/catalog_config.py:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/bundler/commands_impl/catalog_config.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"44905f2af32f9d80df3317654c0054a1648881deb4dbd069316020f4fab57b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/specify_cli/bundler/services/adapters.py:77-87 | src/specify_cli/commands/bundle/__init__.py:872-882 \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/specify_cli/bundler/services/adapters.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ed8e9f2bfe1ab728c4ac18dc8d687dc4ac20c321a3e76e9c88951fdc50f612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/specify_cli/extensions/__init__.py:1660-1671 | src/specify_cli/extensions/__init__.py:1834-1844 \u2014 both copies are in the same file, so extract the block 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/specify_cli/extensions/__init__.py:1660\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"498cb93a7c6e8dd88057a9de1aa86ed729df5c9ebf3d2a60c1d82b2513ddbf5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/specify_cli/integrations/alquimia/__init__.py:47-57 | src/specify_cli/integrations/claude/__init__.py:117-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/alquimia/__init__.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf3f8a39d071df31ac08a707034a1fc4602eddf0da002e87cd3abc352f12b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/specify_cli/workflows/_commands.py:3290-3300 | src/specify_cli/workflows/_commands.py:3503-3514 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/_commands.py"},"region":{"startLine":3290}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7c020a66bac813f9857e3b267b577936831a0f99ef08f70cf9ab769e82a10f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/specify_cli/workflows/catalog.py:382-393 | src/specify_cli/workflows/catalog.py:1078-1088 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/catalog.py:382\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfe851f885489c67a9752b239221b174a78434d2a3f48b519fbca0cf793836d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/specify_cli/workflows/catalog.py:1396-1406 | src/specify_cli/workflows/catalog.py:1465-1475 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fa87e5f16630a50bd8a6a918cecc2be8285636ef0056a7350d323eba57dcd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/specify_cli/workflows/engine.py:996-1006 | src/specify_cli/workflows/engine.py:1076-1086 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/engine.py"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d21fb3b3765e8e8ca8fa7ec0ccdcd206fa63be8fc0b751411a3ff2a7881922"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/specify_cli/presets/__init__.py:4238-4251 | src/specify_cli/workflows/catalog.py:384-394 | src/specify_cli/workflows/catalog.py:1080-1089 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/presets/__init__.py:4238\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":4238}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc28b2025654c5bd6a2adebffd9f266be31ba90f8c0a84c9ae1ddbbf6f7e7097"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/bundler/services/primitives.py:200-209 | src/specify_cli/bundler/services/primitives.py:283-294 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/bundler/services/primitives.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0073fc7991a474cb3b52638df70fd4d9f64b4fd967f60466d9d0595b02260fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/events.py:2027-2036 | src/specify_cli/events.py:2115-2127 \u2014 both copies are in the same file, so extract the block 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/specify_cli/events.py"},"region":{"startLine":2027}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5efd3ee18eaf4746540172c6dfdfdf8695add7be3bbbb6f9eb01117259bdbd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/extensions/__init__.py:2274-2287 | src/specify_cli/extensions/__init__.py:2308-2317 \u2014 both copies are in the same file, so extract the block 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/specify_cli/extensions/__init__.py"},"region":{"startLine":2274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b7f5150674f3c70c303e07fe3598d777342bd3e7d6d83096b7c2e6ec5dedba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/extensions/_commands.py:285-294 | src/specify_cli/extensions/_commands.py:353-362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/extensions/_commands.py:285\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37842b3c8ad0661034e1fa02fdd6847e7f6acf90182f47624582f3ce6e67e3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/extensions/_commands.py:444-453 | src/specify_cli/presets/_commands.py:683-692 \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/specify_cli/extensions/_commands.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"474a6b2d6e0d281c8fa9786d3aae9bc413cbf495247b7cf290f12862263430a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/integrations/_migrate_commands.py:78-87 | src/specify_cli/integrations/_migrate_commands.py:106-115 \u2014 both copies are in the same file, so extract the block 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/specify_cli/integrations/_migrate_commands.py:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_migrate_commands.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e08c46c1ec4cf89ac4e041d0a0e41a592b24a943347fac93ccc486659509575"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/presets/__init__.py:1591-1600 | src/specify_cli/presets/__init__.py:2082-2091 \u2014 both copies are in the same file, so extract the block 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/specify_cli/presets/__init__.py"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd59157135eb2439571da3dada67afdbf74b22d4ca34eb99e609011ac5cf3e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/workflows/_commands.py:2189-2198 | src/specify_cli/workflows/_commands.py:3166-3177 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/_commands.py"},"region":{"startLine":2189}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff35d59f68c273988509201a7eb462c522d06b877b21b5537188857f3da33d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/workflows/catalog.py:491-500 | src/specify_cli/workflows/catalog.py:1186-1195 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/catalog.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"d911a24598af73ff5632b72c3ea5e4e7c7c6b25783cad7a6fd05b943a500557c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/workflows/catalog.py:628-637 | src/specify_cli/workflows/catalog.py:1319-1328 \u2014 both copies are in the same file, so extract the block 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. 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/specify_cli/workflows/catalog.py"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"5154d5cec14b97221e224ff6ae6aee27eb22cd6a591255fc5095f3c011347880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/workflows/catalog.py:805-814 | src/specify_cli/workflows/catalog.py:1484-1495 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/catalog.py:805\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"575ae936da9b92d2f038128162c6356b033512e5a122b31503ce281a17070605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/specify_cli/workflows/steps/command/__init__.py:46-60 | src/specify_cli/workflows/steps/command/__init__.py:117-126 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/steps/command/__init__.py:46\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/specify_cli/workflows/steps/command/__init__.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5963dc197c71909fe3772183a6575321e1c3d4301b75e3b0602b6d8049b73985"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): extensions/git/scripts/python/auto_commit.py:179-187 | extensions/git/scripts/python/initialize_repo.py:72-81 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extensions/git/scripts/python/auto_commit.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c91a7f3366713e67566b1f81eeed13b4698f4878bf0a3014feea8076030855c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/specify_cli/extensions/__init__.py:510-518 | src/specify_cli/extensions/__init__.py:537-545 \u2014 both copies are in the same file, so extract the block 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/specify_cli/extensions/__init__.py:510\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dd162cbec7cb894cccffb99fec26f86edbac3ab7283d2a2d24718af762e9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/specify_cli/extensions/_commands.py:1415-1423 | src/specify_cli/extensions/_commands.py:1429-1437 \u2014 both copies are in the same file, so extract the block 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/specify_cli/extensions/_commands.py"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"957f0f46aab436faea331e86f311b403c71cf5cd7c1da98521185e50bcc99435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/specify_cli/extensions/_commands.py:1565-1574 | src/specify_cli/workflows/_commands.py:2689-2697 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51b4ba8a02ada09bfbeab7cb39ffefad539d2f0b064f5672316d7ce2ca0b810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/specify_cli/presets/__init__.py:5161-5170 | src/specify_cli/presets/__init__.py:5530-5538 \u2014 both copies are in the same file, so extract the block 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/specify_cli/presets/__init__.py"},"region":{"startLine":5161}}}],"partialFingerprints":{"codehealthFindingId/v1":"371d3273456382b68555f0d04232066176a5c212d9554e7679c11fdd8d8818af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/specify_cli/workflows/overlays/_commands.py:215-225 | src/specify_cli/workflows/overlays/_commands.py:268-276 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/overlays/_commands.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4eab8ae346d3775fd9b5f919a90402cb87d2d9b9908e01f71d095271883f095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/specify_cli/integrations/base.py:1019-1026 | src/specify_cli/integrations/base.py:1110-1117 | src/specify_cli/integrations/base.py:1579-1586 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/base.py"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6d5c60477369fe9db6856b4a7367b33a6d5dd7c12d0b2076a898c52698743c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): scripts/python/check_prerequisites.py:95-102 | scripts/python/setup_tasks.py:46-53 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/python/check_prerequisites.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fc573f853752741c5461588bb448d17be91e3dca52e36d21175f413940b1be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/specify_cli/agents.py:969-979 | src/specify_cli/extensions/__init__.py:1568-1575 \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/specify_cli/agents.py"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"0612419dcbc17e24c9b9b9adb7e2f7fb929c2684419eff9e5b96d7ec63f895f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/specify_cli/catalogs.py:166-175 | src/specify_cli/presets/__init__.py:4263-4270 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/catalogs.py:166\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/specify_cli/catalogs.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4c30d3a86d8d37fe4239e7aa7b913bce2f9df589d8c9c47e0797949f91a10d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/specify_cli/extensions/_commands.py:560-567 | src/specify_cli/presets/_commands.py:814-821 \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/specify_cli/extensions/_commands.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52afe230d18412caa3af457c6fee6c4bfdceda4aeb2d9465a5249e4e23c2e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/specify_cli/extensions/_commands.py:1079-1086 | src/specify_cli/extensions/_commands.py:2589-2596 \u2014 both copies are in the same file, so extract the block 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/specify_cli/extensions/_commands.py:1079\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5d6c149fc44464c6c33813484e9a08e9e9a5c8f82491e9906d3f2e3d42eac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/specify_cli/integrations/_install_commands.py:52-59 | src/specify_cli/integrations/_migrate_commands.py:245-252 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/_install_commands.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"767e585ff73070877648c3bf5c2b348ca770ba3dbb2e1d99901c20df521bc3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/specify_cli/presets/_commands.py:512-520 | src/specify_cli/workflows/_commands.py:3675-3682 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/workflows/_commands.py:3675\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/_commands.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca149a7423fa8973107740781b5f02efca97e780b1731f789d94eba0bfd3b06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/specify_cli/workflows/catalog.py:420-427 | src/specify_cli/workflows/catalog.py:1115-1122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/workflows/catalog.py:420\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/catalog.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3a660c5bb21c3c4d0c443ba795eb2c95851bcce5cef995d1c286be2f5da6c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/specify_cli/workflows/overlays/merge.py:72-79 | src/specify_cli/workflows/overlays/merge.py:87-94 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/overlays/merge.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fc2ea1a73e758fe873fee4730ff1f8aa02a30e852a764b1554e3be06f4ceb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/specify_cli/presets/__init__.py:4271-4277 | src/specify_cli/workflows/catalog.py:419-426 | src/specify_cli/workflows/catalog.py:1114-1121 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/presets/__init__.py:4271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":4271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2648cfa0c71b6530de43d6dda3cf7ba8dc2adf16eea0651fb5d46b8ecb2cc8e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/specify_cli/extensions/_commands.py:1436-1442 | src/specify_cli/extensions/_commands.py:1479-1485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcac29ca0f2aa6bd60d4f241c9746176889ca3ce6e2f49f98bd9a9481c3aa9bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/specify_cli/integrations/_query_commands.py:333-339 | src/specify_cli/integrations/_query_commands.py:411-417 \u2014 both copies are in the same file, so extract the block 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/specify_cli/integrations/_query_commands.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff8f805b556874b1a28f09583d221e1869d0d8da205b3ce7e2fefea24c9ce53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/specify_cli/integrations/catalog.py:790-796 | src/specify_cli/integrations/catalog.py:799-805 \u2014 both copies are in the same file, so extract the block 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/specify_cli/integrations/catalog.py:790\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/catalog.py"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d478f2fb5fbf85b9f985edac5b106ed4dca93c3a239af9de1002916a4f28d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/specify_cli/workflows/_commands.py:1501-1507 | src/specify_cli/workflows/_commands.py:1590-1596 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/_commands.py"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92bb12d8bc7548d34a964ed174963b0f8c0d78c935fe71f18ebb2aa467991af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/specify_cli/workflows/_commands.py:3641-3647 | src/specify_cli/workflows/_commands.py:3667-3673 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/_commands.py"},"region":{"startLine":3641}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ebf1e66ecb07a09bf6906593bcb48e92e333b3c481bf5f6be6b16d7e1d481d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/specify_cli/workflows/catalog.py:600-606 | src/specify_cli/workflows/catalog.py:1294-1300 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/catalog.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e8bba944b21144ae72d228280f195ddcee12a6d88a3aeb53e691039f827dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/specify_cli/extensions/__init__.py:3666-3671 | src/specify_cli/integrations/catalog.py:168-173 \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/specify_cli/extensions/__init__.py"},"region":{"startLine":3666}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5021d2f058c21ffe9ea753aa093c064016629c678bedbfc62837362461b200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/specify_cli/extensions/_commands.py:1401-1406 | src/specify_cli/presets/_commands.py:497-504 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/presets/_commands.py:497\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad93f08ccd0970d570c4401a2413fe91c552aaf51f6173e18443c742daa1a679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/specify_cli/extensions/_commands.py:1478-1482 | src/specify_cli/presets/_commands.py:511-519 | src/specify_cli/workflows/_commands.py:3674-3680 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"952682494a60dc4415f860c731ca13fe519d7201867dddfaee1c2dc831baa9f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/specify_cli/presets/_commands.py:69-73 | src/specify_cli/presets/_commands.py:504-510 | src/specify_cli/workflows/_commands.py:2954-2958 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/_commands.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a67dd672d949e0c2fdef3fea8f8c25f62bd884d80203381ce6e6033d6cbf8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/specify_cli/presets/_commands.py:339-344 | src/specify_cli/workflows/_commands.py:2856-2860 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specify_cli/presets/_commands.py:339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/_commands.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"80363a39fd0e20d7ede033c87982a497fb4380f5ec41d30cd24a8cef9c32df5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/specify_cli/workflows/_commands.py:1697-1701 | src/specify_cli/workflows/_commands.py:3607-3613 \u2014 both copies are in the same file, so extract the block 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/specify_cli/workflows/_commands.py"},"region":{"startLine":1697}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd107a592a59286a46456c62c71d53038dbcd9e81570f46d5e39b33513230ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/extensions/_commands.py: src/specify_cli/extensions/_commands.py changed 16 times in last 90 days, max complexity 165. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/_commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aed497d36ddbffc2485e92a4a70e515cad212b15d67e0b66288ad0b3aa1be32"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/extensions/__init__.py: src/specify_cli/extensions/__init__.py changed 37 times in last 90 days, max complexity 67. 29 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/extensions/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37376466a8fd3b5a39105e89c864a5258f9bd50273b35581c3e9a1003c5d3571"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/presets/__init__.py: src/specify_cli/presets/__init__.py changed 32 times in last 90 days, max complexity 75. 27 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/presets/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6836767c1da93867c8034e81eb09755a34df72cd5e4ff1a2dc526711803ec11"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/agents.py: src/specify_cli/agents.py changed 27 times in last 90 days, max complexity 44. 19 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/agents.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"017bcd070f437a0e4b887cdcc4aca5ae7a9b355baecdfb1802c26d05e75d2585"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/__init__.py: src/specify_cli/__init__.py changed 53 times in last 90 days, max complexity 21. 21 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3dc8aed94875b801115463cffcba7c2253bbd60fda72f18e49475c7478a3e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/workflows/_commands.py: src/specify_cli/workflows/_commands.py changed 20 times in last 90 days, max complexity 53. 13 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/_commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3156d167d2eca779193c35edf5158fbfbed7d0b7ad4af53c486de0e0e95fec4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/workflows/engine.py: src/specify_cli/workflows/engine.py changed 25 times in last 90 days, max complexity 35. 14 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/engine.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"303d4b1d68deea579e8b5bcf7fa1b4569d888ebbae5eb8edcc16ed51bf5614db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/shared_infra.py: src/specify_cli/shared_infra.py changed 12 times in last 90 days, max complexity 56. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/shared_infra.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee699e444d199af5ea502874a3506a8154300e505df1f10cd7abb9836d269586"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/integrations/base.py: src/specify_cli/integrations/base.py changed 25 times in last 90 days, max complexity 20. 12 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/integrations/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cc3b9624b520e2237486033a35131d3e83036c1b65c8d06a24ed6322f999ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specify_cli/workflows/expressions.py: src/specify_cli/workflows/expressions.py changed 15 times in last 90 days, max complexity 29. 12 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specify_cli/workflows/expressions.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a96d83f3d0fbacaa57997a4beee39761b6a74ec4a476d48c49ddfddcf9fbdc"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: src/specify_cli/integration_status.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"34926c52b9033443e8d71802691381778ac898fe61ba816c4ed328056596ad5d"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (5 single-owned of 96 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"f9fc5d92e95a07d3a702bc0c8f3c974e6570eed1dbdf47e033f72f223a702d07"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"bfaef91a2972876d8875c497c4d2844c023a2efbd517b1ecf81dd594bc44ef4d"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7ba9349f652e04d1338ecfd77152452c5d0956afe219e4dbbd56024e1da383f"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"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"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":7,"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."]}]}