AI Slop Code Risk Monitor

schemathesis/schemathesis

SlopCodeMonitor badge for schemathesis/schemathesis Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Catch API bugs before your users do

18.9 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for schemathesis/schemathesis, a Python project with 3,735 GitHub stars. SynthScan examined 333,295 lines of code across 1432 source files, recording 6465 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 18.9 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

18.9
Adjusted Signal
18.9
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
3.7K
Stars
Python
Language
333.3K
Lines of Code
1.4K
Files
6.5K
Pattern Hits
2026-10-31
Scan Date
0.10
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 49.3/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 5372 finding(s).

Hallucinated Dependency & Supply Chain Risk 18.0/100 · LOW

Are imports declared and package/API names verified? 886 finding(s).

Agent Over-Engineering Ratio 49.7/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 5234 finding(s).

PR Review Velocity Impact 66.5/100 · HIGH

Which changes need focused human review? 6465 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 15HIGH 131MEDIUM 22LOW 6297

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 6465 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers4977 hits · 4094 pts
SeverityFileLineSnippetContext
LOWtools/corpus/metrics.py21def collect_dependency_metrics(raw_schema: JsonSchemaObject) -> DependencyMetrics:CODE
LOWtest/conftest.py90def _isolate_schemathesis_state(tmp_path, monkeypatch):CODE
LOWtest/conftest.py247def schema_with_recursive_references():CODE
LOWtest/test_package.py24def test_builtin_check_importable_from_checks_module():CODE
LOWtest/test_package.py30def test_openapi_checks_registered_without_cli():CODE
LOWtest/test_failure_codes.py15def test_failure_class_defines_its_own_code(cls):CODE
LOWtest/test_failure_codes.py20def test_every_built_in_failure_class_is_listed():CODE
LOWtest/test_failure_codes.py39def test_user_subclass_inherits_code():CODE
LOWtest/utils.py88def has_hypothesis_failure_header(text: str, test_name: str = "") -> bool:CODE
LOWtest/utils.py303 def assert_after_execution_status(self, status: Status) -> None:CODE
LOWtest/filters/test_matching.py254def test_forbid_value_and_auth():CODE
LOWtest/filters/test_matching.py291def test_unmatched_filter_carries_schema_terms_not_cli_spelling(ctx):CODE
LOW⚡test/reporting/test_crashes.py317def test_crash_step_roundtrips_dict_that_looks_like_bytes_sentinel():CODE
LOW⚡test/reporting/test_crashes.py327def test_crash_step_roundtrips_real_bytes_body():CODE
LOW⚡test/reporting/test_crashes.py335def test_crash_step_roundtrips_bytes_in_param_containers():CODE
LOWtest/reporting/test_crashes.py85def test_build_crashes_skips_scenario_with_missing_interaction(case_factory):CODE
LOWtest/reporting/test_crashes.py97def test_build_crashes_captures_request_body_link(case_factory, response_factory):CODE
LOWtest/reporting/test_crashes.py130def test_build_crashes_includes_related_sibling_case(case_factory, response_factory):CODE
LOWtest/reporting/test_crashes.py151def test_remove_by_operation_matches_exact_operation(tmp_path, case_factory):CODE
LOWtest/reporting/test_crashes.py166def test_remove_by_operation_skips_malformed_file(tmp_path):CODE
LOWtest/reporting/test_crashes.py179def test_remove_by_operation_skips_non_object_file(tmp_path):CODE
LOWtest/reporting/test_crashes.py193def test_remove_by_operation_retries_a_locked_file(tmp_path):CODE
LOWtest/reporting/test_crashes.py212def test_remove_by_operation_skips_a_file_it_cannot_delete(tmp_path):CODE
LOWtest/reporting/test_crashes.py228def test_remove_by_operation_tolerates_concurrent_removal(tmp_path):CODE
LOWtest/reporting/test_crashes.py255def test_remove_files_ignores_already_dropped_file(tmp_path):CODE
LOWtest/reporting/test_crashes.py267def test_rerun_refreshes_stored_case_id(tmp_path):CODE
LOWtest/reporting/test_crashes.py281def test_same_run_keeps_first_case_id(tmp_path):CODE
LOWtest/reporting/test_crashes.py292def test_build_crashes_skips_timing_only_failure(case_factory, response_factory):CODE
LOWtest/reporting/test_crashes.py306def test_build_crashes_tolerates_unknown_response_charset(case_factory, response_factory):CODE
LOWtest/reporting/test_crashes.py346def test_crash_step_roundtrips_bytes_in_mutation_metadata():CODE
LOWtest/reporting/test_crashes.py367def test_request_headers_are_sanitized(case_factory, response_factory):CODE
LOWtest/reporting/test_crashes.py390def test_list_root_request_body_is_sanitized(case_factory, response_factory):CODE
LOWtest/reporting/test_crashes.py404def test_load_manifest_rejects_unknown_format_version(tmp_path):CODE
LOWtest/reporting/test_writers.py20def test_ndjson_writer_context_manager():CODE
LOWtest/reporting/test_writers.py29def test_ndjson_writer_context_manager_closes_file():CODE
LOWtest/reporting/test_writers.py40def test_junitxml_writer_context_manager():CODE
LOWtest/reporting/test_writers.py49def test_vcr_writer_writes_header_to_stream():CODE
LOWtest/reporting/test_writers.py61def test_vcr_writer_header_with_single_quote_in_command():CODE
LOWtest/reporting/test_writers.py77def test_writer_context_manager_no_error_without_open(writer_cls, kwargs):CODE
LOWtest/reporting/test_writers.py156def test_command_representation(monkeypatch, entrypoint, expected):CODE
LOWtest/code_samples/test_curl.py113def test_graphql_schema_loaded_from_file(ctx, curl, loader):CODE
LOWtest/code_samples/test_curl.py137def test_as_curl_command_sanitizes_string_query_params(curl):CODE
LOWtest/code_samples/test_curl.py150def test_as_curl_command_sanitizes_raw_query_with_empty_segments(ctx):CODE
LOWtest/code_samples/test_curl.py170def test_as_curl_command_sanitizes_json_body(ctx, body, expected):CODE
LOWtest/code_samples/test_curl.py185def test_as_curl_command_keeps_non_sensitive_raw_query_pairs(ctx):CODE
LOWtest/code_samples/test_curl.py208def test_cli_output_includes_insecure(ctx, cli, curl):CODE
LOWtest/code_samples/test_curl.py232def _send_then_validate_with_base_url(case, base_url):CODE
LOWtest/code_samples/test_curl.py240def test_reproduce_with_overridden_base_url(ctx, tmp_path, validate):CODE
LOWtest/code_samples/test_curl.py255def test_reproduce_after_same_host_redirect(ctx, app_runner, validate):CODE
LOWtest/code_samples/test_curl.py287def test_reproduce_when_validated_response_has_no_request_url(ctx, response_factory):CODE
LOWtest/code_samples/test_curl.py302def test_curl_command_validity(curl, loose_schema):CODE
LOWtest/code_samples/test_curl.py359def test_shell_aware_escaping(curl, monkeypatch, shell_type, case_kwargs, expected_command):CODE
LOWtest/code_samples/test_curl.py375def test_truncated_printable_body_is_quoted(monkeypatch, shell_type):CODE
LOWtest/code_samples/test_curl.py389def test_multipart_with_array_of_bytes_body(curl):CODE
LOWtest/code_samples/test_curl.py470def test_raw_multipart_bytes_body_boundary(ctx, monkeypatch, body, expected):CODE
LOWtest/code_samples/test_curl.py531def test_multipart_boundary_matches_between_header_and_body(multipart_schema, monkeypatch, path, body):CODE
LOW⚡test/code_samples/test_curl.py544def test_multipart_curl_command_is_stable(multipart_schema, path, body):CODE
LOW⚡test/code_samples/test_curl.py549def test_empty_multipart_curl_body_keeps_closing_delimiter(multipart_schema, monkeypatch):CODE
LOW⚡test/code_samples/test_curl.py557def test_as_curl_command_keeps_encoded_sensitive_raw_query_key(ctx):CODE
LOWtest/tooling/test_changelog.py57def test_issue_numbers_for_unknown_version():STRING
4917 more matches not shown…
Unused Imports732 hits · 704 pts
SeverityFileLineSnippetContext
LOWchangelog.py3CODE
LOWtools/stub_call.py1CODE
LOWtools/corpus/metrics.py1CODE
LOWtools/corpus/io.py1CODE
LOWtools/corpus/locator.py1CODE
LOWtools/corpus/conformance.py1CODE
LOWtest/conftest.py1CODE
LOWtest/conftest.py17CODE
LOWtest/conftest.py26CODE
LOWtest/utils.py1CODE
LOWtest/reporting/test_crashes.py1CODE
LOWtest/reporting/test_writers.py1CODE
LOWtest/code_samples/conftest.py1CODE
LOWtest/tooling/test_changelog.py1CODE
LOWtest/tooling/corpus/conftest.py1CODE
LOWtest/tooling/corpus/test_metrics.py1CODE
LOWtest/tooling/corpus/test_locator.py1CODE
LOWtest/tooling/corpus/test_io.py1CODE
LOWtest/tooling/corpus/test_conformance.py1CODE
LOWtest/tooling/analyze/conftest.py1CODE
LOWtest/transport/conftest.py1CODE
LOWtest/core/test_text.py1CODE
LOWtest/core/test_rate_limit_auto.py1CODE
LOWtest/core/cache/test_writer.py1CODE
LOWtest/core/cache/test_bounded.py1CODE
LOWtest/core/cache/test_io.py1CODE
LOWtest/core/jsonschema/test_resolver_adapter.py1CODE
LOWtest/core/error_feedback/test_field_inference.py1CODE
LOWtest/core/error_feedback/test_store.py1CODE
LOWtest/core/error_feedback/test_collector.py1CODE
LOWtest/core/error_feedback/parsers/test_registry.py1CODE
LOWtest/core/error_feedback/parsers/test_jackson.py1CODE
LOWtest/core/error_feedback/parsers/test_drf.py1CODE
LOWtest/core/error_feedback/parsers/test_marshmallow.py1CODE
LOWtest/core/error_feedback/parsers/test_confluent.py1CODE
LOWtest/core/error_feedback/parsers/test_spring.py1CODE
LOWtest/core/error_feedback/parsers/test_rails.py1CODE
LOWtest/core/error_feedback/parsers/test_pydantic.py1CODE
LOWtest/core/error_feedback/parsers/test_flask_rest.py1CODE
LOWtest/core/error_feedback/parsers/test_restler.py1CODE
LOWtest/core/error_feedback/parsers/test_zod.py1CODE
LOWtest/core/error_feedback/parsers/test_go_validator.py1CODE
LOWtest/core/error_feedback/parsers/test_litestar.py1CODE
LOWtest/core/error_feedback/parsers/test_aspnet.py1CODE
LOWtest/core/error_feedback/parsers/test_ajv.py1CODE
LOWtest/core/error_feedback/parsers/test_symfony.py1CODE
LOWtest/core/error_feedback/parsers/helpers.py1CODE
LOWtest/core/error_feedback/parsers/test_laravel.py1CODE
LOWtest/python/test_server_exception.py1CODE
LOWtest/auth/test_dynamic_auth.py1CODE
LOWtest/auth/test_wfc.py1CODE
LOWtest/auth/test_provider.py1CODE
LOWtest/specs/openapi/test_resources.py1CODE
LOWtest/specs/openapi/test_error_feedback.py1CODE
LOWtest/specs/openapi/test_semantic_pool.py1CODE
LOWtest/specs/openapi/test_body_overrides.py1CODE
LOWtest/specs/openapi/test_swagger_v2.py1CODE
LOWtest/specs/openapi/test_randomized.py1CODE
LOWtest/specs/openapi/test_dictionary_generation.py1CODE
LOWtest/specs/openapi/test_examples.py1CODE
672 more matches not shown…
Cross-Language Confusion68 hits · 401 pts
SeverityFileLineSnippetContext
HIGH⚡test/transport/test_serialization.py570 (["x", {"b": None}], ["x", '{"b": null}']),CODE
HIGH⚡test/transport/test_serialization.py2057 ({"a": 1, "b": None}, b'{"a": 1, "b": null}'),CODE
HIGH⚡test/transport/test_serialization.py2058 ([1, "x", None], b'[1, "x", null]'),CODE
HIGH⚡test/transport/test_serialization.py2059 ({"outer": {"inner": None}}, b'{"outer": {"inner": null}}'),CODE
HIGHtest/transport/test_serialization.py482 ({"a": None}, b'{"a": null}'),CODE
HIGHtest/transport/test_serialization.py768 ("text/plain", {"type": "object"}, {"x": None}, [["f", "text/plain", '{"x": null}']]),CODE
HIGHtest/core/error_feedback/parsers/test_spring.py33 b'rejected value [null]; codes [...]; default message [must not be null]] ",'CODE
HIGHtest/core/error_feedback/parsers/test_spring.py89 {"detail": "... [Field error in object 'X' on field 'y': default message [must not be null]]"},CODE
HIGHtest/core/error_feedback/parsers/test_spring.py723 b"[Field error in object 'X' on field 'email': rejected value [null]; "CODE
HIGHtest/core/error_feedback/parsers/test_spring.py724 b"codes [...]; default message [must not be null]] "CODE
HIGHtest/specs/openapi/test_negative.py473 # FastAPI's `Optional[Enum]` query param shape: `anyOf:[{$ref}, {type:null}]` with a sibling enum.COMMENT
HIGHtest/specs/openapi/test_resilience.py32 [{"url": "http://x/{undefined}"}],CODE
HIGH⚡test/specs/openapi/test_error_feedback.py76 """Detect OpenAPI 3.1 / JSON Schema 2020-12 type-union syntax (`type: [..., null]`)."""STRING
HIGH⚡test/specs/openapi/test_error_feedback.py89 The validator is auto-selected: schemas using `type: [..., null]` syntax areSTRING
HIGHtest/specs/openapi/test_serializing.py637 # Example from OAS 3.2: {"numbers":[1,2],"flag":null}COMMENT
HIGH⚡test/specs/openapi/test_serializing.py968 (openapi3_delimited_parameter("form"), "3.0.2", "color=null,true,false,1,1.5,x"),CODE
HIGH⚡test/specs/openapi/test_serializing.py972 (swagger2_delimited_parameter("csv"), "2.0", "color=null,true,false,1,1.5,x"),CODE
HIGHtest/specs/openapi/test_serializing.py992 pytest.param([[None]], "[null]", id="array-item-as-json"),CODE
HIGHtest/specs/openapi/test_serializing.py1019_WIRE_FORM_RENDERED = (("arr", "null,true,false,1,1.5,x"), ("flag", "true"), ("opt", "null"))CODE
HIGHtest/specs/openapi/test_serializing.py1126 '{"a": 1, "b": null},true',CODE
HIGHtest/specs/openapi/test_serializing.py1133 '{"a": 1, "b": null},true',CODE
HIGHtest/specs/openapi/test_hypothesis.py178 # No mainstream framework reads `?limit=null` as a JSON null; absence is how a query string says "no value".COMMENT
HIGHtest/specs/openapi/test_checks.py2464 (MULTIPART, None, ["x", {"b": None}], b'name="description"\r\n\r\n{"b": null}\r\n'),CODE
HIGH…/specs/openapi/stateful/inference/test_dependencies.py8408 # Values are percent-encoded, so no generated string can pass for a null, which is a key without a valueCOMMENT
HIGHtest/specs/graphql/test_resource_pool.py94 ('mutation { addBook(title: "x") { id } }', b'{"data": null}'),STRING
HIGHtest/specs/graphql/test_basic.py435 "wrongly returned a null value. The graphql specification requires that the parent field be set to null, or if "CODE
HIGH⚡test/specs/graphql/test_basic.py1086 (b'{"data": null, "errors": [{"message": "Boom", "path": ["getBooks"]}]}', CallOutcome.REJECTED),STRING
HIGH⚡test/specs/graphql/test_basic.py1088 (b'{"data": null}', CallOutcome.REJECTED),STRING
HIGH⚡test/specs/graphql/test_coverage.py222 (INCORRECT, "x", doc("{ f(x: null, a: 0) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py223 (INCORRECT, "b", doc("{ f(a: 0, b: null) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py312 (INCORRECT, "m", '{ f(m: null, l: ["10.5"]) }'),CODE
HIGH⚡test/specs/graphql/test_coverage.py314 (INCORRECT, "l", '{ f(m: "10.5", l: null) }'),CODE
HIGH⚡test/specs/graphql/test_coverage.py315 (INCORRECT, "l.0", '{ f(m: "10.5", l: [null]) }'),CODE
HIGH⚡test/specs/graphql/test_coverage.py379 ("a", doc("{ f(a: null, ids: [1], p: {id: 1}) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py380 ("ids", doc("{ f(a: 0, ids: null, p: {id: 1}) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py381 ("ids.0", doc("{ f(a: 0, ids: [null], p: {id: 1}) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py382 ("filter.address.zip", doc("{ f(a: 0, ids: [1], filter: {address: {zip: null}}, p: {id: 1}) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py383 ("p", doc("{ f(a: 0, ids: [1], p: null) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py384 ("p.id", doc("{ f(a: 0, ids: [1], p: {id: null}) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py385 ("p.name", doc("{ f(a: 0, ids: [1], p: {name: null}) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py426 (NULL, "h", doc("{ f(h: null) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py428 (NULL, "h.g", doc("{ f(h: {g: null}) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py429 (NULL, "l", doc("{ f(l: null) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py431 (NULL, "l.0", doc("{ f(l: [null]) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py543 (NULL, "filter", "{ f(filter: null, p: {id: 1}) }"),CODE
HIGH⚡test/specs/graphql/test_coverage.py547 (NULL, "filter.a.n", '{ f(filter: {a: {zip: "", n: null}}, p: {id: 1}) }'),CODE
HIGH⚡test/specs/graphql/test_coverage.py550 (NULL, "filter.n", '{ f(filter: {a: {zip: ""}, n: null}, p: {id: 1}) }'),CODE
HIGH⚡test/specs/graphql/test_coverage.py578 (NULL, "a", "{ f(a: null, c: 0) }"),CODE
HIGH⚡test/specs/graphql/test_coverage.py579 (NULL, "i", "{ f(c: 0, i: null) }"),CODE
HIGH⚡test/specs/graphql/test_coverage.py580 (NULL, "i.x", "{ f(c: 0, i: {x: null, y: 0}) }"),CODE
HIGH⚡test/specs/graphql/test_coverage.py581 (NULL, "p", "{ f(c: 0, p: null) }"),CODE
HIGH⚡test/specs/graphql/test_coverage.py582 (NULL, "l", "{ f(c: 0, l: null) }"),CODE
HIGH⚡test/specs/graphql/test_coverage.py583 (NULL, "l.0", "{ f(c: 0, l: [null]) }"),CODE
HIGH⚡test/specs/graphql/test_coverage.py610 (NULL, "s", '{ f(s: null, r: "") }'),CODE
HIGH⚡test/specs/graphql/test_coverage.py620 (NULL, "a", "{ f(a: null, n: true) }"),CODE
HIGH⚡test/specs/graphql/test_coverage.py621 (NULL, "u", "{ f(u: null, n: true) }"),CODE
HIGH⚡test/specs/graphql/test_coverage.py796 (NULL, "address", doc("{ b(address: null) { id title } }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py807 ("address.tags", doc("{ f(address: {tags: null}) }")),CODE
HIGH⚡test/specs/graphql/test_coverage.py808 ("address.tags.0", doc("{ f(address: {tags: [null]}) }")),CODE
HIGHtest/cli/test_replay.py1217 ('{"id": 1}', '{"id": null}', ["/id"], False),CODE
8 more matches not shown…
Deep Nesting280 hits · 260 pts
SeverityFileLineSnippetContext
LOWtools/corpus/io.py55CODE
LOWtools/corpus/io.py130CODE
LOWtest/utils.py339CODE
LOWtest/pytest/test_asgi.py299CODE
LOWtest/pytest/test_asgi.py304CODE
LOWtest/config/test_doc_examples.py180CODE
LOWtest/specs/grpc/test_links.py64CODE
LOWtest/specs/openapi/test_hypothesis.py500CODE
LOWtest/specs/openapi/test_media_types.py232CODE
LOWtest/specs/openapi/test_media_types.py263CODE
LOW…/specs/openapi/stateful/inference/test_dependencies.py8305CODE
LOW…/specs/openapi/stateful/inference/test_dependencies.py8364CODE
LOW…/specs/openapi/stateful/inference/test_dependencies.py9599CODE
LOW…st/specs/openapi/parameters/test_multipart_encoding.py517CODE
LOW…st/specs/openapi/parameters/test_multipart_encoding.py536CODE
LOWtest/specs/graphql/test_coverage.py832CODE
LOWtest/cli/test_ndjson.py505CODE
LOWtest/cli/test_error_feedback.py142CODE
LOWtest/cli/test_error_feedback.py153CODE
LOWtest/cli/test_cassettes.py109CODE
LOWtest/cli/test_cassettes.py238CODE
LOWtest/engine/test_engine.py1802CODE
LOWtest/engine/test_operation_ordering.py338CODE
LOWtest/apps/catalog/grpc/raw.py53CODE
LOWscripts/analyze/metrics.py616CODE
LOWscripts/analyze/metrics.py683CODE
LOWscripts/analyze/metrics.py756CODE
LOWscripts/analyze/metrics.py881CODE
LOWscripts/analyze/metrics.py934CODE
LOWbenches/bundler.py199CODE
LOWtest-corpus/test_schemastore.py230CODE
LOWtest-corpus/test_schemastore.py277CODE
LOWtest-corpus/test_schemastore.py233CODE
LOWtest-corpus/test_schemastore.py257CODE
LOWsrc/schemathesis/hooks.py401CODE
LOWsrc/schemathesis/hooks.py427CODE
LOWsrc/schemathesis/checks.py499CODE
LOWsrc/schemathesis/auths.py265CODE
LOWsrc/schemathesis/reporting/_command.py43CODE
LOWsrc/schemathesis/reporting/allure.py213CODE
LOWsrc/schemathesis/reporting/vcr.py235CODE
LOWsrc/schemathesis/reporting/vcr.py48CODE
LOWsrc/schemathesis/reporting/crashes/__init__.py303CODE
LOWsrc/schemathesis/transport/__init__.py87CODE
LOWsrc/schemathesis/transport/requests.py360CODE
LOWsrc/schemathesis/transport/prepare.py95CODE
LOWsrc/schemathesis/transport/prepare.py216CODE
LOWsrc/schemathesis/transport/serialization.py17CODE
LOWsrc/schemathesis/transport/serialization.py78CODE
LOWsrc/schemathesis/core/transforms.py65CODE
LOWsrc/schemathesis/core/transforms.py203CODE
LOWsrc/schemathesis/core/transport.py179CODE
LOWsrc/schemathesis/core/shell.py170CODE
LOWsrc/schemathesis/core/loaders.py100CODE
LOWsrc/schemathesis/core/deserialization.py258CODE
LOWsrc/schemathesis/core/errors.py656CODE
LOWsrc/schemathesis/core/errors.py281CODE
LOWsrc/schemathesis/core/output/sanitization.py23CODE
LOWsrc/schemathesis/core/jsonschema/bundler.py288CODE
LOWsrc/schemathesis/core/jsonschema/bundler.py68CODE
220 more matches not shown…
Empty Error Handlers42 hits · 210 pts
SeverityFileLineSnippetContext
HIGHtest/transport/test_serialization.py2806except SerializationError:CODE
HIGHtest/specs/openapi/test_expressions.py201except RuntimeExpressionError:CODE
HIGHtest/specs/openapi/test_dereferencing.py265except RecursionError:CODE
HIGHtest/specs/openapi/stateful/test_stateful.py642except FailureGroup:CODE
HIGHtest/engine/test_engine.py1446except KeyboardInterrupt:CODE
HIGHscripts/profile.py175except SystemExit:CODE
HIGHbenches/multi_operation.py32except Exception:CODE
HIGHtest-corpus/test_corpus.py268except (CODE
HIGHtest-corpus/test_corpus.py163except (Failure, FailureGroup):CODE
HIGHsrc/schemathesis/reporting/crashes/__init__.py291except FileNotFoundError:CODE
HIGHsrc/schemathesis/transport/requests.py311except requests.exceptions.RequestException:CODE
HIGHsrc/schemathesis/transport/prepare.py196except (IndexError, ValueError):CODE
HIGHsrc/schemathesis/transport/serialization.py242except KeyError:CODE
HIGHsrc/schemathesis/core/transforms.py72except ValueError:CODE
HIGHsrc/schemathesis/core/transport.py330except ImportError:CODE
HIGHsrc/schemathesis/core/transport.py337except ImportError:CODE
HIGHsrc/schemathesis/core/rate_limit.py44except ValueError:CODE
HIGHsrc/schemathesis/core/cache/bounded.py28except KeyError:CODE
HIGHsrc/schemathesis/pytest/plugin.py557except ImportError:CODE
HIGHsrc/schemathesis/python/django.py41except DisallowedHost:CODE
HIGHsrc/schemathesis/python/asgi.py90except Exception:CODE
HIGHsrc/schemathesis/python/_constants/walk.py57except BaseException:CODE
HIGHsrc/schemathesis/specs/grpc/converter.py619except TypeError:CODE
HIGHsrc/schemathesis/specs/openapi/schemas.py639except TypeError:CODE
HIGHsrc/schemathesis/specs/openapi/utils.py58except (ValueError, TypeError):CODE
HIGHsrc/schemathesis/specs/openapi/utils.py63except (ValueError, TypeError):CODE
HIGHsrc/schemathesis/specs/openapi/extra_data_source.py854except TypeError: # unhashable value (e.g. list); fall through, eviction still runsCODE
HIGHsrc/schemathesis/specs/openapi/examples.py686except requests.RequestException:CODE
HIGHsrc/schemathesis/specs/openapi/adapter/responses.py356except RefResolutionError:CODE
HIGHsrc/schemathesis/specs/openapi/adapter/validators.py30except ValueError:CODE
HIGHsrc/schemathesis/cli/executor.py50except ImportError:CODE
HIGHsrc/schemathesis/cli/commands/run/handlers/crashes.py99except OSError:CODE
HIGHsrc/schemathesis/openapi/loaders.py294except ValueError:CODE
HIGHsrc/schemathesis/engine/outage.py304except OSError:CODE
HIGHsrc/schemathesis/engine/run/cache.py145except OSError:CODE
HIGHsrc/schemathesis/engine/run/cache.py216except OSError:CODE
HIGHsrc/schemathesis/generation/case.py338except (TypeError, ValueError):CODE
HIGHsrc/schemathesis/generation/case.py506except Exception:CODE
HIGHsrc/schemathesis/generation/jsonschema/strategy.py797except DECLINED:CODE
HIGHsrc/schemathesis/generation/jsonschema/strategy.py1694except InvalidArgument:CODE
HIGHsrc/schemathesis/generation/jsonschema/strategy.py1703except InvalidArgument:CODE
HIGHsrc/schemathesis/generation/jsonschema/strategy.py790except DECLINED:CODE
Hallucination Indicators15 hits · 145 pts
SeverityFileLineSnippetContext
CRITICALtest/code_samples/test_curl.py83 case.operation.schema.config.output.sanitization.update(enabled=False)CODE
CRITICALtest/pytest/test_config_options.py132schema.config.phases.fuzzing.generation.update(max_examples={max_examples})CODE
CRITICALtest/specs/openapi/test_resources.py2796 base = [case.path_parameters for case in cases if case._meta.phase.data.scenario.value.endswith("object")]STRING
CRITICALtest/specs/openapi/negative/test_deep_distribution.py46 schema.config.phases.fuzzing.generation.update(max_examples=500)CODE
CRITICALtest/specs/openapi/negative/test_deep_distribution.py81 schema.config.phases.fuzzing.generation.update(max_examples=300)CODE
CRITICALtest/cli/test_negative_metadata.py187 schema.config.phases.fuzzing.generation.update(max_examples=max_examples)CODE
CRITICALtest/generation/test_hypothesis.py68 schema.config.phases.fuzzing.generation.update(modes=[GenerationMode.NEGATIVE])CODE
CRITICALsrc/schemathesis/auths.py772 for scheme in schema.config.auth.dynamic.schemes.values():CODE
CRITICALsrc/schemathesis/specs/openapi/object_authorization.py294 node = operation.schema.analysis.dependency_graph.operations.get(operation.label)CODE
CRITICALsrc/schemathesis/specs/openapi/object_authorization.py313 node = case.operation.schema.analysis.dependency_graph.operations.get(case.operation.label)CODE
CRITICALsrc/schemathesis/specs/openapi/object_authorization.py327 for label, other in case.operation.schema.analysis.dependency_graph.operations.items():CODE
CRITICALsrc/schemathesis/specs/openapi/analysis.py197 and self.schema.config.phases.stateful.inference.is_algorithm_enabled(CODE
CRITICALsrc/schemathesis/specs/openapi/checks.py1046 for scheme in operation.schema.config.auth.dynamic.schemes.values():CODE
CRITICALsrc/schemathesis/specs/openapi/extra_data_source.py219 node = case.operation.schema.analysis.dependency_graph.operations.get(case.operation.label)CODE
CRITICALsrc/schemathesis/engine/core.py39 and self.schema.config.phases.stateful.inference.is_algorithm_enabled(CODE
Excessive Try-Catch Wrapping88 hits · 94 pts
SeverityFileLineSnippetContext
MEDIUMtools/corpus/io.py76 print(f"Error parsing {file_path}") # noqa: T201CODE
LOWtools/corpus/locator.py45 except Exception:CODE
LOWtest/conftest.py60 except Exception:CODE
LOWtest/conftest.py64 except Exception:CODE
MEDIUMtest/conftest.py57def _get_current_coverage() -> Any | None:CODE
LOWtest/core/cache/test_bounded.py33 except Exception as exc:CODE
LOW⚡test/specs/openapi/test_resources.py158 except Exception as exc:CODE
LOWtest/specs/openapi/test_resources.py114 except Exception as exc:CODE
LOWtest/cli/test_commands.py3496 except Exception as exc:STRING
LOWdocs/guides/custom-response-deserializers.md49 except Exception as exc:CODE
LOWscripts/profile.py177 except Exception as exc: # noqa: BLE001CODE
LOW⚡benches/multi_operation.py27 except Exception:CODE
LOW⚡benches/multi_operation.py32 except Exception:CODE
LOWsrc/schemathesis/hooks.py69 except Exception:CODE
MEDIUMsrc/schemathesis/hooks.py66def _reset_on_error() -> Generator:CODE
LOWsrc/schemathesis/checks.py318 except Exception as exc:CODE
LOWsrc/schemathesis/checks.py527 except Exception as exc:CODE
LOWsrc/schemathesis/checks.py565 except Exception as exc:CODE
LOWsrc/schemathesis/auths.py161 except Exception as exc:CODE
LOWsrc/schemathesis/auths.py176 except Exception as exc:CODE
LOWsrc/schemathesis/auths.py295 except Exception as exc:CODE
LOWsrc/schemathesis/auths.py431 except Exception as exc:CODE
LOWsrc/schemathesis/auths.py798 except Exception:CODE
LOWsrc/schemathesis/core/hooks.py25 except Exception as exc:CODE
LOWsrc/schemathesis/core/rate_limit.py51 except Exception:CODE
LOWsrc/schemathesis/core/jsonschema/__init__.py422 except Exception:CODE
LOWsrc/schemathesis/core/jsonschema/resolver.py180 except Exception as exc:CODE
LOWsrc/schemathesis/core/error_feedback/pipeline.py61 except Exception:CODE
LOWsrc/schemathesis/pytest/plugin.py300 except Exception:CODE
LOWsrc/schemathesis/pytest/plugin.py342 except Exception:CODE
LOWsrc/schemathesis/pytest/plugin.py363 except Exception:CODE
MEDIUMsrc/schemathesis/pytest/plugin.py325def collect(self) -> list[Function]:CODE
LOWsrc/schemathesis/pytest/reporting.py112 except Exception:CODE
LOWsrc/schemathesis/python/asgi.py77 except Exception as exc:CODE
LOWsrc/schemathesis/python/asgi.py90 except Exception:CODE
LOWsrc/schemathesis/python/asgi.py142 except Exception:CODE
MEDIUMsrc/schemathesis/python/asgi.py120def stop(self) -> None:CODE
LOWsrc/schemathesis/python/_constants/orchestrator.py170 except Exception:CODE
LOWsrc/schemathesis/python/_constants/orchestrator.py195 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/auth_inference.py88 except Exception: # noqa: BLE001 - probe must not propagate; one bad scheme can't kill the loop.CODE
LOW⚡src/schemathesis/specs/openapi/checks.py605 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py343 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py428 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py505 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py570 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py709 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py831 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py1296 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/operations.py348 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/content_keywords.py107 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/validation.py129 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/stateful/links.py177 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/stateful/links.py233 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/stateful/links.py248 except Exception as exc:CODE
LOW…c/schemathesis/specs/openapi/stateful/_link_chooser.py35 except Exception:CODE
MEDIUM…c/schemathesis/specs/openapi/stateful/_link_chooser.py32def in response_def.iter_links():CODE
LOW⚡src/schemathesis/specs/openapi/adapter/parameters.py989 except Exception:CODE
LOW⚡src/schemathesis/specs/openapi/adapter/parameters.py1072 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/adapter/parameters.py142 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/adapter/parameters.py354 except Exception:CODE
28 more matches not shown…
Cross-File Repetition15 hits · 75 pts
SeverityFileLineSnippetContext
HIGHtest/pytest/test_class_checks.py0schema.config.reports.update(junit_path=r"{report_path}") lazy_schema = schemathesis.pytest.from_fixture("simple_schema"STRING
HIGHtest/pytest/test_lazy.py0schema.config.reports.update(junit_path=r"{report_path}") lazy_schema = schemathesis.pytest.from_fixture("simple_schema"STRING
HIGHtest/pytest/test_reporting.py0schema.config.reports.update(junit_path=r"{report_path}") lazy_schema = schemathesis.pytest.from_fixture("simple_schema"STRING
HIGHtest/specs/graphql/test_resource_pool.py0type book { id: id! title: string! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! }STRING
HIGHtest/specs/graphql/stateful/test_state_machine.py0type book { id: id! title: string! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! }STRING
HIGHtest/specs/graphql/stateful/test_discovery.py0type book { id: id! title: string! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! }STRING
HIGHtest/specs/graphql/stateful/test_transitions.py0type book { id: id! title: string! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! }STRING
HIGHtest/specs/graphql/stateful/test_bundles.py0type book { id: id! title: string! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! }STRING
HIGHtest/specs/graphql/stateful/test_bundles.py0type book { id: id! } type query { book(id: id!): book } type mutation { _: boolean }STRING
HIGHtest/specs/graphql/stateful/test_state_machine.py0type book { id: id! } type query { book(id: id!): book } type mutation { _: boolean }STRING
HIGHtest/specs/graphql/stateful/test_transitions.py0type book { id: id! } type query { book(id: id!): book } type mutation { _: boolean }STRING
HIGHtest/cli/test_replay.py0calls = 0 @schemathesis.hook def after_call(context, case, response): global calls calls += 1 if calls > 20: raise keyboSTRING
HIGHtest/cli/test_baseline.py0calls = 0 @schemathesis.hook def after_call(context, case, response): global calls calls += 1 if calls > 20: raise keyboSTRING
HIGHtest/cli/test_commands.py0calls = 0 @schemathesis.hook def after_call(context, case, response): global calls calls += 1 if calls > 20: raise keyboSTRING
HIGHtest/cli/test_fuzz.py0calls = 0 @schemathesis.hook def after_call(context, case, response): global calls calls += 1 if calls > 20: raise keyboSTRING
Modern Structural Boilerplate62 hits · 62 pts
SeverityFileLineSnippetContext
LOWtest/config/test_doc_examples.py55def set_environment_variables(monkeypatch) -> None:CODE
LOWsrc/schemathesis/__init__.py19__all__ = [CODE
LOWsrc/schemathesis/auths.py322 def _set_cache_entry(self, data: Auth, case: Case, context: AuthContext) -> None:CODE
LOWsrc/schemathesis/auths.py350 def _set_cache_entry(self, data: Auth, case: Case, context: AuthContext) -> None:CODE
LOWsrc/schemathesis/auths.py659def set_on_case(case: Case, context: AuthContext, auth_storage: AuthStorage | None) -> None:CODE
LOWsrc/schemathesis/errors.py30__all__ = [CODE
LOWsrc/schemathesis/reporting/html/__init__.py12__all__ = ["write_report"]CODE
LOWsrc/schemathesis/core/cache/__init__.py13__all__ = [CODE
LOWsrc/schemathesis/core/jsonschema/__init__.py435__all__ = [CODE
LOWsrc/schemathesis/core/error_feedback/__init__.py19__all__ = [CODE
LOWsrc/schemathesis/core/error_feedback/parsers/zod.py186__all__ = ["ZodParser"]CODE
LOWsrc/schemathesis/core/error_feedback/parsers/aspnet.py216__all__ = ["AspNetParser"]CODE
LOW…chemathesis/core/error_feedback/parsers/marshmallow.py206__all__ = ["MarshmallowParser"]CODE
LOWsrc/schemathesis/core/error_feedback/parsers/restler.py174__all__ = ["RestlerParser"]CODE
LOWsrc/schemathesis/core/error_feedback/parsers/ajv.py370__all__ = ["AjvParser"]CODE
LOW…/schemathesis/core/error_feedback/parsers/confluent.py154__all__ = ["ConfluentParser"]CODE
LOW…hemathesis/core/error_feedback/parsers/go_validator.py253__all__ = ["GoValidatorParser"]CODE
LOWsrc/schemathesis/core/error_feedback/parsers/laravel.py190__all__ = ["LaravelParser"]CODE
LOW…c/schemathesis/core/error_feedback/parsers/litestar.py191__all__ = ["LitestarParser"]CODE
LOW…schemathesis/core/error_feedback/parsers/flask_rest.py226__all__ = ["FlaskRestParser"]CODE
LOWsrc/schemathesis/core/error_feedback/parsers/symfony.py239__all__ = ["SymfonyParser"]CODE
LOWsrc/schemathesis/pytest/__init__.py11__all__ = [CODE
LOWsrc/schemathesis/pytest/lazy.py290def _set_node_id(node: pytest.Function, node_id: str) -> None:CODE
LOWsrc/schemathesis/python/__init__.py3__all__ = ["constants"]CODE
LOWsrc/schemathesis/grpc/__init__.py3__all__ = [CODE
LOWsrc/schemathesis/config/__init__.py48__all__ = [CODE
LOWsrc/schemathesis/config/_warnings.py10__all__ = ["SchemathesisWarning", "WarningsConfig"]CODE
LOWsrc/schemathesis/config/_checks.py306 def _set_enabled(self, name: str, *, enabled: bool) -> None:CODE
LOWsrc/schemathesis/config/_projects.py727 def _set_parent(self, parent: SchemathesisConfig) -> None:CODE
LOWsrc/schemathesis/specs/openapi/_auth_retry.py43def set_auth_for_case(case: Case, parameter: SecurityParameter) -> None:CODE
LOWsrc/schemathesis/specs/openapi/definitions.py2571__all__ = ["SWAGGER_20", "OPENAPI_30", "OPENAPI_31", "OPENAPI_32", *_VALIDATORS]CODE
LOWsrc/schemathesis/specs/openapi/converter.py653def update_pattern_in_schema(schema: dict[str, Any]) -> None:CODE
LOWsrc/schemathesis/specs/openapi/__init__.py12__all__ = [CODE
LOWsrc/schemathesis/specs/openapi/examples.py590def _update_dict_keyword(merged: dict[str, Any], key: str, value: Any) -> None:CODE
LOWsrc/schemathesis/specs/openapi/types/__init__.py9__all__ = ["OperationObject", "common", "v2", "v3"]CODE
LOW…thesis/specs/openapi/stateful/dependencies/__init__.py59__all__ = [CODE
LOW…mathesis/specs/openapi/stateful/dependencies/inputs.py680def update_input_field_bindings(resource_names: set[str], operations: OperationMap) -> None:CODE
LOWsrc/schemathesis/specs/openapi/adapter/v3_2.py52__all__ = [CODE
LOWsrc/schemathesis/specs/openapi/adapter/__init__.py4__all__ = [CODE
LOWsrc/schemathesis/specs/openapi/expressions/__init__.py19__all__ = ["MultiMatch", "lexer", "nodes", "parser"]CODE
LOWsrc/schemathesis/specs/graphql/nodes.py10__all__ = [CODE
LOWsrc/schemathesis/specs/graphql/stateful/__init__.py55__all__ = ["GraphQLStateMachine", "create_state_machine"]CODE
LOWsrc/schemathesis/resources/__init__.py133__all__ = [CODE
LOWsrc/schemathesis/baseline/__init__.py3__all__ = ["Baseline", "BaselineEntry", "Identity", "failure_identity"]CODE
LOWsrc/schemathesis/cli/__init__.py14__all__ = [CODE
LOWsrc/schemathesis/cli/commands/fuzz/handlers/output.py190 def update_error_count(self, error_count: int) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/__init__.py3__all__ = ["EventHandler"]CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py717 def set_suffix(self, suffix: str) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py721 def _update_stats_display(self) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py756 def update_progress(self) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py798 def update_stats(self, label: str, status: Status) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py956 def _update_progress_display(self) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py973 def _update_stats_display(self) -> None:CODE
LOWsrc/schemathesis/openapi/__init__.py4__all__ = [CODE
LOWsrc/schemathesis/openapi/generation/filters.py7__all__ = [CODE
LOWsrc/schemathesis/graphql/__init__.py5__all__ = [CODE
LOWsrc/schemathesis/engine/core.py277 def _settle_stateful(self, engine: EngineContext) -> None:CODE
LOWsrc/schemathesis/engine/errors.py40__all__ = ["EngineErrorInfo", "DeadlineExceeded", "UnexpectedError"]CODE
LOWsrc/schemathesis/generation/__init__.py8__all__ = [CODE
LOWsrc/schemathesis/generation/meta.py302 def update_validated_hash(self, location: ParameterLocation, value: int) -> None:CODE
2 more matches not shown…
Fake / Example Data68 hits · 58 pts
SeverityFileLineSnippetContext
LOWtest/filters/test_expressions.py9 ('/user/name == "John Doe"', ("/user/name", "==", "John Doe")),CODE
LOWtest/filters/test_expressions.py20 (' /user/name == "John Doe" ', ("/user/name", "==", "John Doe")),CODE
LOWtest/filters/test_expressions.py23 ('/user/email == "user@example.com"', ("/user/email", "==", "user@example.com")),CODE
LOW⚡test/filters/test_expressions.py35 '/user/name "John Doe"',CODE
LOW⚡test/filters/test_expressions.py36 '/user/name <> "John Doe"',CODE
LOW⚡test/filters/test_expressions.py40 '== "John Doe"',CODE
LOWtest/python/test_case_metadata.py885 original_value="user@example.com",STRING
LOWtest/python/_constants/test_filter.py13 ("user@example.com", True),CODE
LOW⚡test/python/_constants/test_generation.py818 assert _draw(data, source, schema_properties={"blob": schema}) == "placeholder"CODE
LOW⚡test/python/_constants/test_generation.py842 assert _draw(data, _source("bytes", b"OK"), schema_properties={"blob": schema}) == "placeholder"CODE
LOW⚡test/python/_constants/test_generation.py849 assert _draw(data, _source("bytes", b"x"), schema_properties={"blob": schema}) == "placeholder"CODE
LOW⚡test/python/_constants/test_generation.py868 assert blob == "placeholder"CODE
LOW⚡test/python/_constants/test_generation.py886 assert _draw(data, source, schema_properties={"blob": schema}) == "placeholder"CODE
LOW⚡test/python/_constants/test_generation.py894 source = _source("string", "user@example.com")CODE
LOW⚡test/python/_constants/test_generation.py896 assert _draw(data, source, schema_properties={"blob": schema}) == "user@example.com"CODE
LOW⚡test/python/_constants/test_generation.py906 assert _draw(data, source, schema_properties={"blob": schema}) == "placeholder"CODE
LOW⚡test/python/_constants/test_generation.py932 st.just(GeneratedValue(value={"blob": "placeholder"}, meta=None)),CODE
LOW⚡test/python/_constants/test_generation.py1116 assert blob == "placeholder"CODE
LOWtest/python/_constants/test_generation.py176 st.just({"code": "placeholder"}),CODE
LOWtest/python/_constants/test_generation.py799 st.just({"blob": "placeholder"}),CODE
LOWtest/python/_constants/test_generation.py1133 assert blob == "placeholder"CODE
LOWtest/specs/openapi/test_semantic_pool.py331 {"description": "lorem ipsum dolor sit"},CODE
LOWtest/specs/openapi/test_semantic_pool.py332 [IngestionLeaf("string", None, None, "description", "lorem ipsum dolor sit")],CODE
LOWtest/specs/openapi/test_semantic_pool.py960 body={"email": "user@example.com", "country": "DE"},CODE
LOWtest/specs/openapi/test_semantic_pool.py968 assert "user@example.com" in _lookup_by_descriptor(extra_data_source.semantic_index, email_desc)CODE
LOWtest/specs/openapi/test_semantic_pool.py2227 st.fixed_dictionaries({"code": st.just("placeholder")}),CODE
LOWtest/specs/openapi/test_examples.py2314 "name": {"type": "string", "example": "John Doe"},STRING
LOWtest/specs/openapi/test_examples.py2321 "name": "John Doe",STRING
LOWtest/specs/openapi/negative/test_metadata.py113 original_value="user@example.com",CODE
LOWtest/specs/openapi/negative/test_metadata.py116 'violates `format:email` at /properties/email (was "user@example.com", became "useratexample.com")',CODE
LOW⚡test/specs/openapi/negative/test_value_violators.py34 assert not validator.is_valid(violate_email("user@example.com"))CODE
LOW⚡test/specs/graphql/test_resource_pool.py191 operation = _parse('query { book(id: "placeholder") { id } }')STRING
LOW⚡test/specs/graphql/test_resource_pool.py196 assert "placeholder" not in printedSTRING
LOW⚡test/specs/graphql/test_resource_pool.py198 assert "placeholder" in printedSTRING
LOW⚡test/specs/graphql/test_resource_pool.py269 'query { author { books(bookId: "placeholder") } }',STRING
LOW⚡test/specs/graphql/test_resource_pool.py278 'mutation { deleteBook(id: "placeholder") }',STRING
LOW⚡test/specs/graphql/test_resource_pool.py288 'mutation { bookDelete(id: "placeholder") { deletedBookId } }',STRING
LOW⚡test/specs/graphql/test_resource_pool.py309 'query { lookup(id: "placeholder") }',STRING
LOW⚡test/specs/graphql/test_resource_pool.py311 "placeholder",STRING
LOW⚡test/specs/graphql/test_resource_pool.py320 'query { lookup(filter: "placeholder") }',STRING
LOW⚡test/specs/graphql/test_resource_pool.py322 "placeholder",STRING
LOW⚡test/specs/graphql/test_resource_pool.py332 'query { lookup(authorId: "placeholder") }',STRING
LOW⚡test/specs/graphql/test_resource_pool.py334 "placeholder",STRING
LOW⚡test/specs/graphql/test_resource_pool.py346 'query { author(id: "placeholder") { id } }',STRING
LOW⚡test/specs/graphql/test_resource_pool.py348 "placeholder",STRING
LOW⚡test/specs/graphql/test_resource_pool.py358 'query { bookByTitle(title: "placeholder") { id } }',STRING
LOW⚡test/specs/graphql/test_resource_pool.py360 "placeholder",STRING
LOW⚡test/specs/graphql/test_resource_pool.py503 'query { __typename book(id: "placeholder", extra: "keep") 'STRING
LOW⚡test/specs/graphql/test_resource_pool.py504 'books(filter: {id: "placeholder", unknown: "keep"}) { id } }'STRING
LOWtest/specs/graphql/test_resource_pool.py212 f'query {{ lookup({arg_name}: "placeholder") }}',STRING
LOWtest/specs/graphql/test_resource_pool.py226 f'query {{ lookup(ref: {{{input_field}: "placeholder"}}) }}',STRING
LOWtest/specs/graphql/test_resource_pool.py247 'mutation { updateBook(input: {ref: {id: "placeholder"}, title: "t"}) { id } }',STRING
LOWtest/specs/graphql/test_resource_pool.py258 'query { book(id: "placeholder") { id ...BookFields } } fragment BookFields on Book { title }',STRING
LOWtest/specs/graphql/test_resource_pool.py371 'query { books(filter: {title: "placeholder"}) { id } }',STRING
LOWtest/specs/graphql/test_resource_pool.py373 "placeholder",STRING
LOWtest/specs/graphql/test_resource_pool.py398 'query { authorPosts(ref: {id: "placeholder"}) }',STRING
LOWtest/specs/graphql/test_resource_pool.py400 "placeholder",STRING
LOWtest/cli/test_extra_data_sources.py445 user = {"id": user_id, "email": data.get("email", "user@example.com")}CODE
LOWtest/apps/catalog/openapi/stateful.py36 return {0: {"id": 0, "name": "John Doe", "last_modified": "2021-01-01T00:00:00Z"}}CODE
LOWdocs/explanations/examples.md14 example: "John Doe"CODE
8 more matches not shown…
Redundant / Tautological Comments34 hits · 51 pts
SeverityFileLineSnippetContext
LOWchangelog.py47 # Check if the new version already exists.COMMENT
LOWtest/config/test_doc_examples.py165 # Check if current uses additionalProperties (e.g., auth.openapi.<scheme>)COMMENT
LOWtest/cli/test_commands.py1704 # Check if field exists (could be in files or form)STRING
LOWtest/cli/test_checks.py1423 # Check if 'ids' parameter is present in the URLCOMMENT
LOWscripts/is_interesting.sh15# Check if needle is present in outputCOMMENT
LOWsrc/schemathesis/core/jsonschema/patterns.py437 # Check if there are still untranslated Unicode property escapesSTRING
LOWsrc/schemathesis/pytest/lazy.py201 # Check if test function is a method and inject self from request.instanceCOMMENT
LOWsrc/schemathesis/config/_generation.py80 # Check if all parameters match their default valuesCOMMENT
LOWsrc/schemathesis/specs/openapi/warnings.py226 # Check if scheme exists in the schema definition, and suggest a candidate if it does notCOMMENT
LOW⚡src/schemathesis/specs/openapi/checks.py1225 # Check if the case contains only additional properties in query, headers, or cookies.COMMENT
LOWsrc/schemathesis/specs/openapi/checks.py1520 # Check if all parameters come from linksCOMMENT
LOWsrc/schemathesis/specs/openapi/checks.py1595 # Check if invalid auth will give an errorCOMMENT
LOWsrc/schemathesis/specs/openapi/stateful/links.py170 # Check if parameter exists in source operationCOMMENT
LOWsrc/schemathesis/specs/openapi/stateful/inference.py198 # Check if it's an absolute URLCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/models.py621 # Check if this field is a FK fieldCOMMENT
LOW…thesis/specs/openapi/stateful/dependencies/__init__.py264 # Check if duplicate / subsets existsCOMMENT
LOW…thesis/specs/openapi/stateful/dependencies/__init__.py403 # Check if all inferred fields exist in existing with same valuesCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/inputs.py272 # Check if candidate ends with OR starts with the inferred resource nameCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/inputs.py278 # Check if parameter can be matched to a fieldCOMMENT
LOW…athesis/specs/openapi/stateful/dependencies/schemas.py419 # Check if array field name matches common patternsCOMMENT
LOW…athesis/specs/openapi/stateful/dependencies/schemas.py441 # Check if field name matches resource-specific patternCOMMENT
LOW…athesis/specs/openapi/stateful/dependencies/schemas.py511 # Check if any other property looks like pagination metadataCOMMENT
LOW…hesis/specs/openapi/stateful/dependencies/resources.py414 # Check if this branch defines the target propertyCOMMENT
LOW…hesis/specs/openapi/stateful/dependencies/resources.py521 # Check if it's an arrayCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/layers.py115 # Check if all operations were processed (no cycles)COMMENT
LOWsrc/schemathesis/specs/openapi/adapter/security.py141 # Check if a security parameter was intentionally removed during negative testingCOMMENT
LOWsrc/schemathesis/specs/openapi/adapter/security.py158 # Check if all schemes in this requirement can be satisfied (AND semantics)COMMENT
LOWsrc/schemathesis/specs/graphql/validation.py157 # Check if this is a client error (query validation failed)COMMENT
LOWsrc/schemathesis/resources/repository.py303 # Check if we need to evict an old contextCOMMENT
LOWsrc/schemathesis/cli/commands/run/warnings.py364 # Check if this warning should cause test failureCOMMENT
LOWsrc/schemathesis/engine/core.py103 # Check if feature is supported by the schemaCOMMENT
LOWsrc/schemathesis/engine/statistic.py225 # Check if this is a new unique failureCOMMENT
LOW⚡src/schemathesis/generation/hypothesis/builder.py192 # Check if user provided custom strategies via @schema.given()COMMENT
LOW⚡src/schemathesis/generation/hypothesis/builder.py196 # Check if there are actually examples to addCOMMENT
AI Structural Patterns50 hits · 47 pts
SeverityFileLineSnippetContext
LOWtest/conftest.py473CODE
LOWtest/conftest.py475CODE
LOWtest/utils.py216CODE
LOWtest/specs/openapi/test_checks.py122CODE
LOWtest/specs/openapi/stateful/conftest.py33CODE
LOWtest/specs/openapi/auth_flow/test_detection.py34CODE
LOWtest/apps/catalog/grpc/users.py199CODE
LOWsrc/schemathesis/auths.py362CODE
LOWsrc/schemathesis/auths.py378CODE
LOWsrc/schemathesis/schemas.py189CODE
LOWsrc/schemathesis/schemas.py238CODE
LOWsrc/schemathesis/schemas.py476CODE
LOWsrc/schemathesis/schemas.py513CODE
LOWsrc/schemathesis/schemas.py769CODE
LOWsrc/schemathesis/schemas.py847CODE
LOWsrc/schemathesis/schemas.py1107CODE
LOWsrc/schemathesis/schemas.py1226CODE
LOWsrc/schemathesis/filters.py225CODE
LOWsrc/schemathesis/filters.py256CODE
LOWsrc/schemathesis/filters.py287CODE
LOWsrc/schemathesis/filters.py319CODE
LOWsrc/schemathesis/filters.py357CODE
LOWsrc/schemathesis/filters.py427CODE
LOWsrc/schemathesis/core/transport.py271CODE
LOWsrc/schemathesis/core/spec.py123CODE
LOWsrc/schemathesis/core/spec.py140CODE
LOWsrc/schemathesis/pytest/lazy.py87CODE
LOWsrc/schemathesis/pytest/lazy.py118CODE
LOWsrc/schemathesis/grpc/loaders.py27CODE
LOWsrc/schemathesis/config/_report.py96CODE
LOWsrc/schemathesis/config/_report.py140CODE
LOWsrc/schemathesis/config/_generation.py45CODE
LOWsrc/schemathesis/config/_generation.py139CODE
LOWsrc/schemathesis/config/__init__.py109CODE
LOWsrc/schemathesis/config/_checks.py198CODE
LOWsrc/schemathesis/config/_operations.py289CODE
LOWsrc/schemathesis/config/_projects.py123CODE
LOWsrc/schemathesis/config/_projects.py257CODE
LOWsrc/schemathesis/specs/grpc/schemas.py436CODE
LOWsrc/schemathesis/specs/openapi/_hypothesis.py128CODE
LOWsrc/schemathesis/specs/openapi/converter.py21CODE
LOWsrc/schemathesis/specs/openapi/converter.py36CODE
LOWsrc/schemathesis/specs/openapi/converter.py50CODE
LOWsrc/schemathesis/specs/openapi/converter.py79CODE
LOWsrc/schemathesis/specs/openapi/schemas.py707CODE
LOWsrc/schemathesis/specs/graphql/schemas.py516CODE
LOWsrc/schemathesis/specs/graphql/schemas.py341CODE
LOWsrc/schemathesis/cli/commands/fuzz/__init__.py158CODE
LOWsrc/schemathesis/cli/commands/run/__init__.py184CODE
LOWsrc/schemathesis/generation/case.py128CODE
Self-Referential Comments13 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUM⚡test/pytest/test_parametrization.py805# Create a custom database in a temporary directoryCOMMENT
MEDIUMtest/pytest/test_parametrization.py770# Create a custom database in a temporary directoryCOMMENT
MEDIUMtest/pytest/test_lazy.py1098# Create a custom database in a temporary directoryCOMMENT
MEDIUMtest/pytest/test_lazy.py1134# Create a custom database in a temporary directoryCOMMENT
MEDIUMtest/config/test_discovery.py26 # Create a config file in the parent directorySTRING
MEDIUMtest/config/test_discovery.py49 # Create a structure where a .git folder exists in the parent directory.STRING
MEDIUMtest/specs/openapi/test_negative.py363 # Creating a validator validates the schemaCOMMENT
MEDIUMtest/specs/openapi/test_checks.py3029 # Create a successful response (200 OK)COMMENT
MEDIUM⚡test/specs/openapi/test_schema_loading.py110 # Creating a second in-memory resolver must not corrupt the first one's lookups.COMMENT
MEDIUMtest/cli/test_junitxml.py66 # Create a mapping from testcase name to elementCOMMENT
MEDIUM⚡src/schemathesis/specs/openapi/checks.py1226 # This function is used to determine if negation is solely in the form of extra properties,COMMENT
MEDIUMsrc/schemathesis/resources/repository.py277 # Create a stable key for the contextCOMMENT
MEDIUMsrc/schemathesis/cli/ext/fs.py56 # Creating the parent directories fails this way when part of the path is a file; the OS wording differs.COMMENT
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdocs/guides/auth.md77 --header "X-API-Key: your-api-key"CODE
HIGHdocs/guides/auth.md115export API_KEY="your-api-key"CODE
HIGHdocs/guides/auth.md223 {"name": "admin", "fixedHeaders": [{"name": "X-Api-Key", "value": "your-api-key"}]}CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsrc/schemathesis/schemas.py784Create a Hypothesis strategy that generates test cases for all schema operations. Use with `@given` in non-ScheSTRING
HIGHsrc/schemathesis/schemas.py862Create a Hypothesis strategy that generates test cases for all schema operations in this subset. Use with `@givSTRING
HIGHsrc/schemathesis/core/deserialization.py77Register a deserializer for custom response media types. Converts API responses with custom content types (MessagePSTRING
Structural Annotation Overuse7 hits · 10 pts
SeverityFileLineSnippetContext
LOWdocs/guides/extending-cli.md12### Step 1: Create an option groupCOMMENT
LOWdocs/guides/extending-cli.md26### Step 2: Add options to the groupCOMMENT
LOWdocs/guides/extending-cli.md43### Step 3: Create the event handlerCOMMENT
LOWdocs/guides/extending-cli.md104### Step 4: Load the extension and runCOMMENT
LOWdocs/guides/hypothesis-strategies.md188 # Step 1: always create a userCOMMENT
LOWdocs/guides/hypothesis-strategies.md193 # Step 2: optional stepsCOMMENT
LOWdocs/guides/hypothesis-strategies.md204 # Step 3: always clean upCOMMENT
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/schemathesis/core/jsonschema/patterns.py1201COMMENT
LOWsrc/schemathesis/core/error_feedback/parsers/jackson.py21if TYPE_CHECKING:COMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/models.py901 # True when response is a bare primitive (string/int) rather than an objectCOMMENT
LOWsrc/schemathesis/specs/openapi/expressions/lexer.py121 # Expression: `ID_{$request.body#/foo}}`COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/schemathesis/generation/jsonschema/strategy.py203 # Bundle scaffolding the user never wrote.COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtest/data/petstore_v2.yaml3 description: "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io]CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…mathesis/specs/openapi/stateful/dependencies/naming.py560 # just add 's' (car -> cars)COMMENT
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWtest/cli/test_checks.py1645 def my_method():CODE