{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"extraction.extract (cyclomatic 49): extraction.extract has cyclomatic complexity 49 (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":"langextract/extraction.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c450d845073cdb423dba33a3dd2f343c5eb6efd75599e16583e34fb9ec1ef8"}},{"ruleId":"D1","level":"warning","message":{"text":"WordAligner.align_extractions (cyclomatic 30): WordAligner.align_extractions 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":"langextract/resolver.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9419c3760ac28f1ce5a1a183fd63bcc2085886b7df872f173c2412a6d2019ec"}},{"ruleId":"D1","level":"warning","message":{"text":"FormatHandler.parse_output (cyclomatic 25): FormatHandler.parse_output 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":"langextract/core/format_handler.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"71392acc2d3223bae8d5e92681b56c942dc16e648abbc07b609feff20e4edd25"}},{"ruleId":"D1","level":"warning","message":{"text":"openai_batch._infer_batch_one_job (cyclomatic 25): openai_batch._infer_batch_one_job 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":"langextract/providers/openai_batch.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c8da2b86f0bb5e89a70ecbf0118bc45b00398d3695e8921de60e613168fba2"}},{"ruleId":"D1","level":"warning","message":{"text":"UnicodeTokenizer.tokenize (cyclomatic 23): UnicodeTokenizer.tokenize 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":"langextract/core/tokenizer.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4b227118a93a8120ffac494fa5882e5dfeee2a49a5ce4795116b200bf5de29"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiLanguageModel.infer (cyclomatic 23): GeminiLanguageModel.infer 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":"langextract/providers/gemini.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb86417f192ec81ab1d7ee76dd3fd3360c63eccc361e508ef3be775d528f6390"}},{"ruleId":"D1","level":"warning","message":{"text":"factory._create_model_with_schema (cyclomatic 22): factory._create_model_with_schema 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":"langextract/factory.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec07bf4575ea97b0eae5c3c6939b1d4f57bc1b51a07c12ba8173242f37f5f489"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini_batch.infer_batch (cyclomatic 21): gemini_batch.infer_batch 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":"langextract/providers/gemini_batch.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"49572a223ab8c9436c991d003d933dacf56d18420065b9827e1d339538597a31"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAILanguageModel.infer (cyclomatic 20): OpenAILanguageModel.infer has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/openai.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c70a266a2dbfa3929c673efe9c5a3d86866788ddd50cff92fb569950547a81"}},{"ruleId":"D1","level":"warning","message":{"text":"pr_security_check.parse_diff (cyclomatic 19): pr_security_check.parse_diff 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":".github/scripts/pr_security_check.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21e3d36124eb740bd327e97a05526eb5c8c8b178f8ac1848c15aa7d0a75393b"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiLanguageModel.__init__ (cyclomatic 19): GeminiLanguageModel.__init__ has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa17d69859d9516168728508bdc6126bb0cd5422caf26f23a6c67de5273667d8"}},{"ruleId":"D1","level":"warning","message":{"text":"gemini._no_text_diagnostic (cyclomatic 17): gemini._no_text_diagnostic has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdeb773c57cbfe689d0aaa3dc4b33a19489eb320d0e9bfee0dee672cdfc8c065"}},{"ruleId":"D1","level":"warning","message":{"text":"resolver._best_lcs_spans (cyclomatic 17): resolver._best_lcs_spans 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":"langextract/resolver.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e739b7f8a55919a6abd1d04e49022f29334e3cc5089ff5e0b55b5c6768e1228a"}},{"ruleId":"D1","level":"warning","message":{"text":"pr_security_check._check_credential_egress (cyclomatic 16): pr_security_check._check_credential_egress 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":".github/scripts/pr_security_check.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cc332d5f229d323557a0587e47129bef30bd66091a13f495f48490b4631802"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAILanguageModel._build_chat_completions_params (cyclomatic 16): OpenAILanguageModel._build_chat_completions_params 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":"langextract/providers/openai.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8ce76294adf8e98c48d6bf3affee005b7995dde6bf972f6bc3cda94fd4ae7e"}},{"ruleId":"D1","level":"warning","message":{"text":"Resolver.extract_ordered_extractions (cyclomatic 16): Resolver.extract_ordered_extractions 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":"langextract/resolver.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"c796f32c1ce75c3001ec47b69f86b9b5ed67085d00053c9f8a0dd96c3eb9ff57"}},{"ruleId":"D2","level":"warning","message":{"text":"extraction.extract (cognitive 75): extraction.extract has cognitive complexity 75 (threshold 15). Drivers by points: if/else 30 (49 pts), boolean chains 14, ternaries 3 (7 pts), loops 2 (4 pts), error handling 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":"langextract/extraction.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ec01e8aedb1ff409e52917e72af642696898f8824d13c8a8da505072b36fba"}},{"ruleId":"D2","level":"warning","message":{"text":"UnicodeTokenizer.tokenize (cognitive 52): UnicodeTokenizer.tokenize has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (47 pts), boolean chains 4, loops 1 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/core/tokenizer.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa2a13d8aa655857b37afa5da03a341d6ba63f17e8420a1e5d6933e3276cb23"}},{"ruleId":"D2","level":"warning","message":{"text":"WordAligner.align_extractions (cognitive 49): WordAligner.align_extractions has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (35 pts), loops 6 (8 pts), ternaries 2 (3 pts), error handling 1 (2 pts), 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":"langextract/resolver.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9b61fd9fff7cb5bcf7572ed66c9c311fdf5b4d68792a1fbc11f1f449a098eb"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiLanguageModel.infer (cognitive 48): GeminiLanguageModel.infer has cognitive complexity 48 (threshold 15). Drivers by points: if/else 10 (19 pts), error handling 4 (12 pts), loops 6 (11 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"329b29af1737c0ea1521657d9d542fad4e414c64f02323ee568119da74008ca2"}},{"ruleId":"D2","level":"warning","message":{"text":"Resolver.extract_ordered_extractions (cognitive 40): Resolver.extract_ordered_extractions has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (35 pts), loops 2 (3 pts), boolean chains 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":"langextract/resolver.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec85398c373637561372786b462d7003a20ea35e96da9d0b5c5fd28d5a1a052"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAILanguageModel.infer (cognitive 39): OpenAILanguageModel.infer has cognitive complexity 39 (threshold 15). Drivers by points: error handling 5 (15 pts), if/else 9 (13 pts), loops 5 (10 pts), 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":"langextract/providers/openai.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee6c58aad539575e747f063bcd4f6ed737354d53f026210e4002ecd006ab71c"}},{"ruleId":"D2","level":"warning","message":{"text":"resolver._best_lcs_spans (cognitive 38): resolver._best_lcs_spans has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 6 (11 pts), ternaries 1 (4 pts), boolean chains 3 (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":"langextract/resolver.py"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c6a7ec1bd9e2a2936209f8433a9979e0f81bebd41040670a3645a38b17ebbb"}},{"ruleId":"D2","level":"warning","message":{"text":"FormatHandler.parse_output (cognitive 35): FormatHandler.parse_output has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 6, loops 2 (3 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/core/format_handler.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6961526e53f2d65b23b299a527fabf309993199f6a88bdcf385fcac221e93f65"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_batch._infer_batch_one_job (cognitive 34): openai_batch._infer_batch_one_job has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (20 pts), error handling 4 (8 pts), boolean chains 3, loops 3 (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":"langextract/providers/openai_batch.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c8cb232413f898f97299b13bc6ba9909f935da8bc5ff656f5c2b343f049caf"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini_batch.infer_batch (cognitive 33): gemini_batch.infer_batch has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 7 (11 pts), boolean chains 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":"langextract/providers/gemini_batch.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17ed390ef4d5f911f9671678ca46957c714736d4316a9c9a9c694a38f51fc30"}},{"ruleId":"D2","level":"warning","message":{"text":"factory._create_model_with_schema (cognitive 32): factory._create_model_with_schema has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 5, error handling 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/factory.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"181090786df2c1d3b7192209c3d3d0817fbf08de5f20b5865f723e5fb3fe0af7"}},{"ruleId":"D2","level":"warning","message":{"text":"Annotator._annotate_documents_single_pass (cognitive 31): Annotator._annotate_documents_single_pass has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (6 pts), ternaries 2 (6 pts), error handling 1 (3 pts), 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":"langextract/annotation.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a50228dccf7773164d6b630feb226dcf22e124bb165e597b06104721ed84c79"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiSchema.from_examples (cognitive 30): GeminiSchema.from_examples has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 5 (11 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/schemas/gemini.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ce8486fe311c5a10e2aa16db07516331dfcb56b8659902a4593f93cd02d53e"}},{"ruleId":"D2","level":"warning","message":{"text":"WordAligner._fuzzy_align_extraction (cognitive 29): WordAligner._fuzzy_align_extraction has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 2 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/resolver.py"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19644707948f3b87041ed3e90acb83513a6be89c5fde5e37ce8b9b8363ba67d"}},{"ruleId":"D2","level":"warning","message":{"text":"factory._kwargs_with_environment_defaults (cognitive 27): factory._kwargs_with_environment_defaults has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/factory.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1996d65a9f1143bc174f28ba5e926f6d11066674ff05a8bd57f1fcc7deaa57"}},{"ruleId":"D2","level":"warning","message":{"text":"annotation._merge_non_overlapping_extractions (cognitive 26): annotation._merge_non_overlapping_extractions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 3 (7 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/annotation.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ae3532f646ec88d68cc0fd26e42e50a2100b896b64df92ac8374425d106c45"}},{"ruleId":"D2","level":"warning","message":{"text":"tokenizer.find_sentence_range (cognitive 22): tokenizer.find_sentence_range has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (5 pts), boolean chains 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":"langextract/core/tokenizer.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"29733b0b2bbdf10415ab82fbda8f43d99b881bad0e6c908abfa6a1ca5fca252c"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiLanguageModel._process_single_prompt (cognitive 22): GeminiLanguageModel._process_single_prompt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts), error handling 2 (4 pts), boolean chains 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":"langextract/providers/gemini.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"886b0903996154dabc3f33ec9f4d9208ade4190c3a3bae525fd3225ab0290189"}},{"ruleId":"D2","level":"warning","message":{"text":"io.download_text_from_url (cognitive 20): io.download_text_from_url has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (5 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/io.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d317018ffa7263786ced87231ed7b6e54eed90a67cdf38e850752a3941346168"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkIterator.__next__ (cognitive 19): ChunkIterator.__next__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/chunking.py"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8b55ffba75390a82ab26244d62c93c84fcc4c9d3a5bbcb98754ead1ca91182"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiLanguageModel.__init__ (cognitive 19): GeminiLanguageModel.__init__ has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts), error handling 1, loops 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d506685356c33055ee67bb7475a8b862026228d59e0060d4a51b12ed6b788b"}},{"ruleId":"D2","level":"warning","message":{"text":"pr_security_check.parse_diff (cognitive 18): pr_security_check.parse_diff has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, ternaries 1 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/pr_security_check.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"af58fad469b42c328182ff20019ef0da4fd5594edb7ed1e58b9355be7ab0f389"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini._no_text_diagnostic (cognitive 18): gemini._no_text_diagnostic has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (8 pts), if/else 7, boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"636b26dbe83025709decb6714cf46e14a12bdc72da7dea754725c74d414fb07d"}},{"ruleId":"D2","level":"warning","message":{"text":"router.resolve_provider (cognitive 18): router.resolve_provider has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 5 (7 pts), error handling 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/router.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58e5cbf82e2babca834516aae513c4fe08a90c8be6b84ab3fc0864130303b94"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._collect_extraction_categories (cognitive 18): openai._collect_extraction_categories has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/schemas/openai.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e173814ff92e03ab948a174a72477e8c848cdb6e66a87d8ed942b8b3fa848b"}},{"ruleId":"D2","level":"warning","message":{"text":"FormatHandler.from_resolver_params (cognitive 17): FormatHandler.from_resolver_params has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/core/format_handler.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4810ca39754999bf106839d1545293385962a4d0a4d69d52ba1867cacf59a7c"}},{"ruleId":"D2","level":"warning","message":{"text":"prompt_validation.validate_prompt_alignment (cognitive 17): prompt_validation.validate_prompt_alignment has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 pts), boolean chains 2 (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":"langextract/prompt_validation.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca98da2e53dfa9ed5d605387f0e016d7d577d69239d73b65c3f4eab68e2650b2"}},{"ruleId":"D2","level":"warning","message":{"text":"gemini_batch._build_request (cognitive 17): gemini_batch._build_request has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 1 (3 pts), ternaries 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini_batch.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97be5987571829fd851b2cffeace7fa793f2d67a67ed713d76f72931e3ccb9e"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaLanguageModel.__init__ (cognitive 17): OllamaLanguageModel.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (5 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/ollama.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"9277513ff0c2f13d8423fd891f4e2e9094c8d6a71a61da6408fa55249184bc6a"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaLanguageModel._build_request_options (cognitive 17): OllamaLanguageModel._build_request_options has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 1, ternaries 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":"langextract/providers/ollama.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35700321520ac16ccd77f8b0f08e3757a04f0daab4a3b143e2ea2479417c4cd"}},{"ruleId":"D2","level":"warning","message":{"text":"openai_batch._collect_outputs_from_jsonl (cognitive 17): openai_batch._collect_outputs_from_jsonl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (6 pts), boolean chains 4, error handling 2 (4 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/openai_batch.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b6a6fd7d14d058132099fad5ade596437e208e1a4fa220ff10bd4420fe5706"}},{"ruleId":"D2","level":"warning","message":{"text":"pr_security_check._check_credential_egress (cognitive 16): pr_security_check._check_credential_egress has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/pr_security_check.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c5b11cccb5044ca607fe3334133a1d83cd58bb4a78b2601c968fb83cf66d01"}},{"ruleId":"D2","level":"warning","message":{"text":"Annotator._annotate_documents_sequential_passes (cognitive 16): Annotator._annotate_documents_sequential_passes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (5 pts), loops 4 (5 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/annotation.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95eaad47aef4e78366ddb5188d0454f8fe4d9823c1458ae5ca305e091bb2c69"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAILanguageModel._build_chat_completions_params (cognitive 16): OpenAILanguageModel._build_chat_completions_params has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 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":"langextract/providers/openai.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1624bd1f67c2553835b45180863ebf44a7eebf28b2e59a678d04393cfa996473"}},{"ruleId":"D2","level":"warning","message":{"text":"resolver._select_monotonic_matches (cognitive 16): resolver._select_monotonic_matches has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (6 pts), ternaries 2 (6 pts), if/else 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/resolver.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"511e6bdb1f58305d05edf86755f5b5a4f40766929693f87388a1a245f7db120a"}},{"ruleId":"D2","level":"warning","message":{"text":"visualization.visualize (cognitive 16): visualization.visualize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (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":"langextract/visualization.py"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d2abb31dd463e40f94530534d4d7bfeef6dd38f207ce7a616976048b1267fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: langextract/resolver.py: FileTooLong \u2014 817 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 317 over it, 1.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/resolver.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b05cf65087bf58077e193cc6e1c75a726ea41b92dda29828a70db313f4e8b61"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/pr_security_check.py: FileTooLong \u2014 656 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 156 over it, 1.31\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/pr_security_check.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2610bd3d6b1da3fd7f581b69cefa48cce49ff24dbd3b3c4e93c17283838a97e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/gemini_batch.py: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 132 over it, 1.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini_batch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2297504a8a6203d8961fb52fd9af42f47f40421a75e033b98e9bc7c4b882b521"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): langextract/providers/ollama.py:495-538 | langextract/providers/ollama.py:561-655 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/ollama.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88aa6a39b37206fa95e3e08ab10af41dddf6447984e746d0f62afec20467e8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): langextract/providers/schemas/gemini.py:92-118 | langextract/providers/schemas/openai.py:204-236 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/schemas/gemini.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f576c6cc66b9056a2a5bb27ad06098ddc34778d544f3c6ccda5ee506fc8f2184"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): langextract/_compat/inference.py:31-61 | langextract/_compat/schema.py:24-41 | langextract/schema.py:58-82 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/_compat/inference.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c9431cba9a7e9f2142ff65f760d7b002f34e34aced918462ea500c3567e946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201335 lines \u00D7 2): langextract/providers/ollama.py:499-533 | langextract/providers/ollama.py:616-647 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/ollama.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"161d9e41634171fca58c38fd3b9eedec8283a0bf83d9923e4cb6ace113ef3f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201327 lines \u00D7 2): langextract/providers/schemas/gemini.py:126-152 | langextract/providers/schemas/openai.py:88-108 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/schemas/gemini.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4952924bdf13b97f06433753a5ba04289343dd0f521c0720d41f775ce28bce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): langextract/providers/gemini.py:591-612 | langextract/providers/openai.py:422-442 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060langextract/providers/gemini.py:591\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":"langextract/providers/gemini.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13e3d2e9db2ce45a538b00030ee46a843fe34eea66f5a2950de3257a8bf15ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): langextract/providers/gemini.py:613-630 | langextract/providers/openai.py:445-461 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini.py"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd52cf8606cc5d1bb1d2364229df6d52b78b0014c8f1ed7b753dd61d373d3a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): langextract/resolver.py:734-744 | langextract/resolver.py:1270-1279 \u2014 both copies are in the same file, so extract the block 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":"langextract/resolver.py"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c9a61ad966b65a6a27d16a8ca75dee2fbef1a27ee5ad707ea1d559b2171ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/ollama/demo_ollama.py:212-226 | examples/ollama/demo_ollama.py:298-312 \u2014 both copies are in the same file, so extract the block 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":"examples/ollama/demo_ollama.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff73379f1cdcb83acabfeed1de18abd49b05719be500c6cad8186f34f22c573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): scripts/create_provider_plugin.py:395-409 | scripts/create_provider_plugin.py:411-425 \u2014 both copies are in the same file, so extract the block 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":"scripts/create_provider_plugin.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc38bc9610d08159f5d4bcb12e8bd028944820e6d9a0d3329c6c61505a3ef23b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseLanguageModel (LCOM4 5): BaseLanguageModel\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/core/base_model.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5cdf255da3754588f5c133cd896639b551faa400442dc29437fa6cfa14d5d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: langextract/extraction.py: langextract/extraction.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in extraction.extract at line 45. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 20:39:36 -05:00\u0027 --until=\u00272026-11-09 20:39:36 -05:00\u0027 --full-history --no-merges -- langextract/extraction.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/extraction.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2057d3d4a5941cbe7ca286943415688c0ba6b40275d31d2e299a114dfebdd53"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: langextract/providers/gemini.py: langextract/providers/gemini.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in GeminiLanguageModel.infer at line 507. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 20:39:36 -05:00\u0027 --until=\u00272026-11-09 20:39:36 -05:00\u0027 --full-history --no-merges -- langextract/providers/gemini.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"f533b6b9d207d40f23dd1369496175bd7ca47433ce9eda41129b49eb638616a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: langextract/providers/gemini_batch.py: langextract/providers/gemini_batch.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in gemini_batch.infer_batch at line 867. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-11..2026-11-09, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-11 20:39:36 -05:00\u0027 --until=\u00272026-11-09 20:39:36 -05:00\u0027 --full-history --no-merges -- langextract/providers/gemini_batch.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini_batch.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"1607bda88bc6aa946bab3eed76ca91f32c0e8ee2af1093625ed21f1dd1a75cc8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Refactor redundancy between document and text. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/chunking.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ebd1967500230fdf2a720c3900df061be112785622743d5bbd6987a8e9f1e0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(v2.0.0): Remove gemini_schema parameter \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/extraction.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bde9c0dfcaece558c768555a732bc0b4106f7ef168ff007ec514ec390979ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Review value and requirements for abstract class. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/resolver.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d537a8681906260a5633ddb03c9d8d0d384bfabe1095a26d59bec083c1596c5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Evaluate removal for large-context use cases. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/core/tokenizer.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d72a4125a194e799f881327435df897e7959e56d5631f48000cfdeba0044f54"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Replace with your own client initialization \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_provider_plugin/langextract_provider_example/provider.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"93011bede6ba273fd5ba9281431c5cf3a6504ba9c73e124817edd9cb850e900e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Replace this with your own API/model calls \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/custom_provider_plugin/langextract_provider_example/provider.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a7f8c900568e32f5f5bf897449ddc175f6dcc771b406fa3e9b1bb35c554f77"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060pyproject.toml\u0060 makes this repository a deployable product (line 94)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pyproject.toml"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f93f7a2c78f190233679ac8202a9f8e691d2305d697b777ee579589e9c4bff1"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 84 % of calls cross a namespace and only 52 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"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":"f00a705b4e4bd79d46948ea8033cfd3bd798d8cc7934589faba24ee5eb6e9f70"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"333d2ed0f8474d035b36c7911c149bb449b95ed8b6528df2a34258c102d57e2e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7da679c59571335b63e762a1b594d9e66e6caeb5384f3e0d9a177aa84010215"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f2a76befc030bae34b4fa6030ce0ab9a1112eda137d960dc0e26822ffcfb314"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ac303957e2eb0e6ddfe079d0be1b6a5147daac83582a006b44352bc4a79fdef8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"80c859dcf68ba2b420e39c40297198b3a7f88a617e1bcc6d34a60960f2caf989"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"045fd298559d3dbb6388e8bdac87894ba1b408ec348a24dc7c49b5d606892ae6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a1c99ee3792b1ecb6b4cb0b34cf00b24601bbd3ae78afcc296aaa943e194766"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"12d3ab7043561cf36d06dffb6e86c68ce8ae47e3901118151f6affae3b59877f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c855bfd809803a36e81fd66ebf7d94d3134a3fc0732bdc1c327055c276681a6b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"42a96fcda3d57003d4dcf7081d2efb1e3ebf81d765ecc8fe1cb26a4f7b4d4be2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d2a7c727e4d8e4ced65d035a6eaace1f6ec4590911bafba28f8fe2f8af24d94b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6d8847ece55c30acc4b21e46b5e1f6c8b6e1e33bc205e73d76ca213493c8e72c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"65074e90358c1db3040b6c288b0e201800562210f8fc8548b78d5e7a217365a7"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5f80156a659fcb263562ba237febbcae414851f3508b4dde9ba18fbf7269ab50"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5344db641f5782c84adde9dae56cbb6ed635dfb1e0e47625009e74f64e289c0"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9b15183b821b0d8f2a8a9a4a501e7e6d43815f083fe597ec3f99fb39c4628148"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 12 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/check-infrastructure-changes.yml"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(value, numbers.Integral) and not isinstance(value, bool)\u0060 appears character-identically in 2 files \u2014 langextract/data_lib.py, langextract/providers/gemini.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/data_lib.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0204f04fe43a6bf924be890a31a56c5b47b18a2da9bb3119f9a772ea2f0c48"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(batch_prompts) \u003E 1 and self.max_workers \u003E 1\u0060 appears character-identically in 2 files \u2014 langextract/providers/gemini.py, langextract/providers/openai.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"086477921f8eca6d495dd628d8e53d856f4c5800859df95c0e0bdb6285df16e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not format_handler.use_wrapper or format_handler.wrapper_key != data.EXTRACTIONS_KEY\u0060 appears character-identically in 2 files \u2014 langextract/providers/schemas/gemini.py, langextract/providers/schemas/openai.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/schemas/gemini.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49e01b5da1fd2bc71966481acb7df1557748242eaeae1da3282c0eafb5b460c"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 81 is called with an argument built by \u0060list(discovered.keys())\u0060 (line 82), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/plugins.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"034c04fb7d151f38822c2688eb2b5c502f92e94b7e56b3574ba74b2f29b14013"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 421 is called with an argument built by \u0060sum(len(group) for group in aligned_yaml_extractions)\u0060 (line 423), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/resolver.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"370d308e0635447ee8f7e648bc4cda5fc08a1a627c343c5d895e1498d6cb8c68"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 65 is called with an argument built by \u0060[p.pattern for p in patterns]\u0060 (line 69), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/router.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61fbd2a9cc8d546ec8cc147e0d427239408bac7ade9e49351b3647da0dbeb09"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 75 is called with an argument built by \u0060[p.pattern for p in patterns]\u0060 (line 78), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/router.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e5f0b1c865a43d5c488cda946114e85fb6e941edf818df57000d85a2a99eed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/visualization.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5392f02e70d7335235c90a922e79573bd8076a13995577da3c6e1f338e8155"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/providers/gemini_batch.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef4bfb3f7d9aee1c996dac155ef3296bf5539b357a837096769b6152892c346"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"langextract/core/debug_utils.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"17804b508e39e1efe9f50a8443243132c665d20197f043deff511f13d2af65e4"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":22,"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."]}]}