Repository Analysis

schemathesis/schemathesis

Catch API bugs before your users do

16.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of schemathesis/schemathesis, a Python project with 3,510 GitHub stars. SynthScan v2.0 examined 244,938 lines of code across 1230 source files, recording 4196 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 16.3 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

16.3
Adjusted Score
16.3
Raw Score
100%
Time Factor
2026-08-09
Last Push
3.5K
Stars
Python
Language
244.9K
Lines of Code
1.2K
Files
4.2K
Pattern Hits
2026-08-09
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 9HIGH 29MEDIUM 20LOW 4138

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 4196 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2982 hits · 2565 pts
SeverityFileLineSnippetContext
LOWtools/corpus/metrics.py21def collect_dependency_metrics(raw_schema: JsonSchemaObject) -> DependencyMetrics:CODE
LOWtools/corpus/io.py207def iter_corpus_entries_from_refs(CODE
LOWtools/corpus/conformance.py27def evaluate_body_conformance(CODE
LOWtest/conftest.py76def _isolate_schemathesis_state(tmp_path, monkeypatch):CODE
LOWtest/conftest.py249def schema_with_recursive_references():CODE
LOWtest/utils.py36def has_hypothesis_failure_header(text: str, test_name: str = "") -> bool:CODE
LOWtest/utils.py284 def assert_after_execution_status(self, status: Status) -> None:CODE
LOWtest/filters/test_matching.py249def test_forbid_value_and_auth():CODE
LOWtest/filters/test_cli.py65def test_filters_with_cli_options(ctx, cli, args, expected, cassette_path):CODE
LOWtest/filters/test_cli.py149def test_cli_and_config_intersection(ctx, cli, cli_args, config, expected, cassette_path):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):CODE
LOWtest/reporting/test_crashes.py136def test_build_crashes_includes_related_sibling_case(case_factory):CODE
LOWtest/reporting/test_crashes.py168def test_remove_by_operation_matches_exact_operation(tmp_path, case_factory):CODE
LOWtest/reporting/test_crashes.py183def test_remove_by_operation_skips_malformed_file(tmp_path):CODE
LOWtest/reporting/test_crashes.py196def test_remove_by_operation_skips_non_object_file(tmp_path):CODE
LOWtest/reporting/test_crashes.py209def test_remove_files_ignores_already_dropped_file(tmp_path):CODE
LOWtest/reporting/test_crashes.py221def test_rerun_refreshes_stored_case_id(tmp_path):CODE
LOWtest/reporting/test_crashes.py235def test_same_run_keeps_first_case_id(tmp_path):CODE
LOWtest/reporting/test_crashes.py246def test_build_crashes_skips_timing_only_failure(case_factory):CODE
LOWtest/reporting/test_crashes.py258def test_build_crashes_tolerates_unknown_response_charset(case_factory):CODE
LOWtest/reporting/test_crashes.py269def test_crash_step_roundtrips_dict_that_looks_like_bytes_sentinel():CODE
LOWtest/reporting/test_crashes.py279def test_crash_step_roundtrips_real_bytes_body():CODE
LOWtest/reporting/test_crashes.py287def test_crash_step_roundtrips_bytes_in_param_containers():CODE
LOWtest/reporting/test_crashes.py298def test_request_headers_are_sanitized(case_factory):CODE
LOWtest/reporting/test_crashes.py327def test_list_root_request_body_is_sanitized(case_factory):CODE
LOWtest/reporting/test_crashes.py349def test_load_manifest_rejects_unknown_format_version(tmp_path):CODE
LOWtest/reporting/test_writers.py13def test_ndjson_writer_context_manager():CODE
LOWtest/reporting/test_writers.py22def test_ndjson_writer_context_manager_closes_file():CODE
LOWtest/reporting/test_writers.py33def test_junitxml_writer_context_manager():CODE
LOWtest/reporting/test_writers.py50def test_writer_context_manager_no_error_without_open(writer_cls, kwargs):CODE
LOWtest/code_samples/test_curl.py113def test_as_curl_command_sanitizes_string_query_params(curl):CODE
LOWtest/code_samples/test_curl.py137def test_cli_output_includes_insecure(ctx, cli, curl):CODE
LOWtest/code_samples/test_curl.py147def test_pytest_subtests_output(ctx, testdir):CODE
LOWtest/code_samples/test_curl.py168def test_curl_command_validity(curl, loose_schema):STRING
LOWtest/code_samples/test_curl.py228def test_shell_aware_escaping(curl, monkeypatch, shell_type, case_kwargs, expected_command):STRING
LOWtest/code_samples/test_curl.py239def test_multipart_with_array_of_bytes_body(curl):STRING
LOWtest/tooling/corpus/test_metrics.py6def test_add_dependency_metrics_empty_returns_zero():CODE
LOWtest/tooling/corpus/test_metrics.py10def test_add_dependency_metrics_sums_field_by_field():CODE
LOWtest/tooling/corpus/test_metrics.py19def test_collect_dependency_metrics_counts_resources_inputs_outputs(ctx):CODE
LOWtest/tooling/corpus/test_locator.py10def test_parse_corpus_path_splits_corpus_and_member():CODE
LOWtest/tooling/corpus/test_locator.py14def test_parse_corpus_path_keeps_nested_member_path_intact():CODE
LOWtest/tooling/corpus/test_locator.py25def test_parse_corpus_path_rejects_invalid(spec):CODE
LOWtest/tooling/corpus/test_locator.py30def test_load_schema_dict_from_corpus():CODE
LOWtest/tooling/corpus/test_locator.py38def test_load_schema_dict_from_json_file(tmp_path):CODE
LOWtest/tooling/corpus/test_locator.py47def test_load_schema_dict_from_yaml_file(tmp_path):CODE
LOWtest/tooling/corpus/test_io.py15def test_iter_corpus_file_reads_json_members(tmp_path, make_tarball):CODE
LOWtest/tooling/corpus/test_io.py21def test_iter_all_corpus_files_reads_every_tarball(tmp_path, make_tarball):CODE
LOWtest/tooling/corpus/test_io.py39def test_get_schema_version_detects_supported_versions(raw_schema, expected):CODE
LOWtest/tooling/corpus/test_io.py43def test_iter_corpus_streaming_filters_by_name_before_decoding(tmp_path, make_tarball):CODE
LOWtest/tooling/corpus/test_io.py56def test_iter_corpus_streaming_respects_limit(tmp_path, make_tarball):CODE
LOWtest/tooling/corpus/test_io.py66def test_iter_corpus_entries_from_refs_reads_requested_members(tmp_path, make_tarball):CODE
LOWtest/tooling/corpus/test_io.py82def test_corpus_entry_api_strips_json_suffix():CODE
LOWtest/tooling/corpus/test_conformance.py32def test_evaluate_body_conformance(body, schema, is_negative_body, expected):CODE
LOWtest/tooling/analyze/test_aggregation.py42def test_analyze_per_operation_keys(analyzer_ndjson):CODE
LOWtest/tooling/analyze/test_aggregation.py49def test_analyze_per_operation_buckets_match_run(analyzer_ndjson):CODE
LOWtest/tooling/analyze/test_aggregation.py56def test_analyze_wasted_by_location_tracks_positive_drift(analyzer_ndjson):CODE
LOWtest/tooling/analyze/test_aggregation.py64def test_analyze_negative_rejected_present(analyzer_ndjson):CODE
LOWtest/tooling/analyze/test_aggregation.py71def test_analyze_server_error_recorded(analyzer_ndjson):CODE
LOWtest/tooling/analyze/test_aggregation.py77def test_analyze_run_duration_positive(analyzer_ndjson):CODE
2922 more matches not shown…
Unused Imports651 hits · 628 pts
SeverityFileLineSnippetContext
LOWchangelog.py3CODE
LOWtools/corpus/metrics.py1CODE
LOWtools/corpus/io.py1CODE
LOWtools/corpus/locator.py1CODE
LOWtools/corpus/conformance.py1CODE
LOWtest/conftest.py1CODE
LOWtest/conftest.py22CODE
LOWtest/utils.py1CODE
LOWtest/reporting/test_crashes.py1CODE
LOWtest/reporting/test_writers.py1CODE
LOWtest/code_samples/conftest.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_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/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_dictionary_generation.py1CODE
LOWtest/specs/openapi/test_examples.py1CODE
LOWtest/specs/openapi/test_auth_jwt.py1CODE
LOW…specs/openapi/negative/test_binary_format_mutations.py1CODE
LOWtest/specs/openapi/negative/test_deep_distribution.py1CODE
LOWtest/specs/openapi/stateful/conftest.py1CODE
LOWtest/specs/openapi/stateful/test_pool_overlay.py1CODE
LOWtest/specs/openapi/stateful/test_health_recovery.py1CODE
LOW…/specs/openapi/stateful/inference/test_request_pool.py1CODE
LOW…/specs/openapi/stateful/inference/test_dependencies.py1CODE
LOWtest/specs/openapi/stateful/inference/test_models.py1CODE
LOWtest/specs/openapi/adapter/test_servers.py1CODE
LOWtest/specs/graphql/test_inference.py1CODE
LOWtest/specs/graphql/test_resource_pool.py1CODE
LOWtest/specs/graphql/test_stateful_health_recovery.py1CODE
LOWtest/specs/graphql/test_pool_integration.py1CODE
LOWtest/specs/graphql/test_stateful.py1CODE
LOWtest/specs/graphql/test_helpers.py1CODE
LOWtest/specs/graphql/test_ordering.py1CODE
LOWtest/specs/graphql/stateful/test_matcher.py1CODE
LOWtest/specs/graphql/stateful/test_bundles.py1CODE
LOWtest/specs/graphql/stateful/test_handles.py1CODE
LOWtest/specs/graphql/stateful/test_state_machine.py1CODE
LOWtest/specs/graphql/stateful/test_discovery.py1CODE
LOWtest/specs/graphql/stateful/test_extract.py1CODE
591 more matches not shown…
Deep Nesting228 hits · 216 pts
SeverityFileLineSnippetContext
LOWtools/corpus/io.py95CODE
LOWtools/corpus/io.py181CODE
LOWtools/corpus/io.py268CODE
LOWtest/config/test_doc_examples.py114CODE
LOWtest/specs/openapi/test_swagger_v2.py112CODE
LOWtest/specs/openapi/test_hypothesis.py280CODE
LOWtest/specs/openapi/test_media_types.py218CODE
LOWtest/specs/openapi/test_media_types.py253CODE
LOW…/specs/openapi/stateful/inference/test_dependencies.py5888CODE
LOW…/specs/openapi/stateful/inference/test_dependencies.py5947CODE
LOW…st/specs/openapi/parameters/test_multipart_encoding.py474CODE
LOW…st/specs/openapi/parameters/test_multipart_encoding.py493CODE
LOWtest/cli/test_ndjson.py226CODE
LOWtest/cli/test_ndjson.py426CODE
LOWtest/cli/test_error_feedback.py271CODE
LOWtest/cli/test_error_feedback.py282CODE
LOWtest/cli/test_cassettes.py104CODE
LOWtest/cli/test_cassettes.py217CODE
LOWtest/engine/test_operation_ordering.py287CODE
LOWscripts/profile.py251CODE
LOWscripts/analyze/metrics.py611CODE
LOWscripts/analyze/metrics.py678CODE
LOWscripts/analyze/metrics.py751CODE
LOWscripts/analyze/metrics.py876CODE
LOWscripts/analyze/metrics.py929CODE
LOWbenches/bundler.py206CODE
LOWtest-corpus/test_schemastore.py229CODE
LOWtest-corpus/test_schemastore.py276CODE
LOWtest-corpus/test_schemastore.py232CODE
LOWtest-corpus/test_schemastore.py256CODE
LOWsrc/schemathesis/hooks.py379CODE
LOWsrc/schemathesis/reporting/vcr.py225CODE
LOWsrc/schemathesis/reporting/vcr.py48CODE
LOWsrc/schemathesis/reporting/crashes/__init__.py271CODE
LOWsrc/schemathesis/transport/__init__.py87CODE
LOWsrc/schemathesis/transport/requests.py323CODE
LOWsrc/schemathesis/transport/prepare.py44CODE
LOWsrc/schemathesis/transport/prepare.py149CODE
LOWsrc/schemathesis/transport/serialization.py17CODE
LOWsrc/schemathesis/core/transforms.py108CODE
LOWsrc/schemathesis/core/transport.py67CODE
LOWsrc/schemathesis/core/shell.py165CODE
LOWsrc/schemathesis/core/shell.py193CODE
LOWsrc/schemathesis/core/loaders.py85CODE
LOWsrc/schemathesis/core/deserialization.py265CODE
LOWsrc/schemathesis/core/errors.py613CODE
LOWsrc/schemathesis/core/errors.py273CODE
LOWsrc/schemathesis/core/output/sanitization.py20CODE
LOWsrc/schemathesis/core/jsonschema/bundler.py200CODE
LOWsrc/schemathesis/core/jsonschema/bundler.py223CODE
LOWsrc/schemathesis/core/jsonschema/bundler.py63CODE
LOWsrc/schemathesis/core/jsonschema/bundler.py86CODE
LOWsrc/schemathesis/core/jsonschema/resolver.py186CODE
LOWsrc/schemathesis/core/jsonschema/resolver.py250CODE
LOWsrc/schemathesis/core/error_feedback/store.py148CODE
LOWsrc/schemathesis/core/error_feedback/store.py221CODE
LOWsrc/schemathesis/core/error_feedback/field_inference.py44CODE
LOWsrc/schemathesis/core/error_feedback/parsers/jackson.py92CODE
LOWsrc/schemathesis/core/error_feedback/parsers/drf.py31CODE
LOW…chemathesis/core/error_feedback/parsers/marshmallow.py143CODE
168 more matches not shown…
Cross-Language Confusion18 hits · 102 pts
SeverityFileLineSnippetContext
HIGHtest/specs/openapi/test_negative.py462 # FastAPI's `Optional[Enum]` query param shape: `anyOf:[{$ref}, {type:null}]` with a sibling enum.COMMENT
HIGHtest/specs/openapi/test_resilience.py30 [{"url": "http://x/{undefined}"}],CODE
HIGHtest/specs/openapi/test_error_feedback.py332 b'rejected value [null]; codes [...]; default message [must not be null]] ",'CODE
HIGHtest/specs/openapi/test_error_feedback.py380 {"detail": "... [Field error in object 'X' on field 'y': default message [must not be null]]"},CODE
HIGHtest/specs/openapi/test_error_feedback.py7171 b"[Field error in object 'X' on field 'email': rejected value [null]; "CODE
HIGHtest/specs/openapi/test_error_feedback.py7172 b"codes [...]; default message [must not be null]] "CODE
HIGHtest/specs/openapi/test_error_feedback.py103 """Detect OpenAPI 3.1 / JSON Schema 2020-12 type-union syntax (`type: [..., null]`)."""STRING
HIGHtest/specs/openapi/test_error_feedback.py116 The validator is auto-selected: schemas using `type: [..., null]` syntax areSTRING
HIGHtest/specs/openapi/test_serializing.py609 # Example from OAS 3.2: {"numbers":[1,2],"flag":null}STRING
HIGHtest/specs/openapi/test_converter.py673 # `type: [string, "null"]` with an `enum` accepts null, matching `nullable: true`.COMMENT
HIGHtest/specs/graphql/test_resource_pool.py213 [b"not-json", b"{}", b'{"data": null}', b'{"data": "scalar"}'],STRING
HIGHtest/engine/test_checks.py408 b'{"success": null}',CODE
HIGHtest/engine/test_checks.py519 response_factory.requests(content=b'{"direction": ["N", "E", "S", "W", null]}'), TrueCODE
HIGHtest/apps/catalog/openapi/wfc.py28 # Rich body covers every token-extraction branch: string, coerced number, null, and non-string.COMMENT
HIGHtest/generation/test_hypothesis.py161 # A 3.1 `type: [null, boolean]` body lifts to a multi-type union; values stay null or boolean.COMMENT
HIGHsrc/schemathesis/core/error_feedback/parsers/spring.py31 r"|can(?:not|'?t) be (?:blank|empty|null)"CODE
HIGHsrc/schemathesis/core/error_feedback/parsers/spring.py133# `detail`, e.g. `... [Field error in object 'X' on field 'Y': ...; default message [must not be null]]`.COMMENT
HIGHsrc/schemathesis/specs/openapi/converter.py125 # A nullable type with an `enum` accepts null, matching `nullable: true`; otherwise aCOMMENT
Hallucination Indicators9 hits · 90 pts
SeverityFileLineSnippetContext
CRITICALtest/code_samples/test_curl.py74 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/negative/test_deep_distribution.py45 schema.config.phases.fuzzing.generation.update(max_examples=500)CODE
CRITICALtest/specs/openapi/negative/test_deep_distribution.py75 schema.config.phases.fuzzing.generation.update(max_examples=500)CODE
CRITICALtest/specs/openapi/negative/test_deep_distribution.py106 schema.config.phases.fuzzing.generation.update(max_examples=300)CODE
CRITICALtest/cli/test_negative_metadata.py187 schema.config.phases.fuzzing.generation.update(max_examples=20)CODE
CRITICALtest/cli/test_negative_metadata.py209 schema.config.phases.fuzzing.generation.update(max_examples=50)CODE
CRITICALsrc/schemathesis/auths.py650 for scheme in schema.config.auth.dynamic.schemes.values():CODE
CRITICALsrc/schemathesis/specs/openapi/analysis.py179 and self.schema.config.phases.stateful.inference.is_algorithm_enabled(CODE
Excessive Try-Catch Wrapping75 hits · 79 pts
SeverityFileLineSnippetContext
MEDIUMtools/corpus/io.py116 print(f"Error parsing {file_path}") # noqa: T201CODE
LOWtools/corpus/locator.py46 except Exception:CODE
LOWtest/conftest.py53 except Exception:CODE
LOWtest/conftest.py57 except Exception:CODE
MEDIUMtest/conftest.py50def _get_current_coverage() -> Any | None:CODE
LOWtest/utils.py183 except Exception:CODE
LOWtest/specs/openapi/test_resources.py106 except Exception as exc:CODE
LOWtest/cli/test_commands.py2070 except Exception as exc:STRING
LOWdocs/guides/custom-response-deserializers.md47 except Exception as exc:CODE
LOWscripts/profile.py205 except Exception as exc: # noqa: BLE001CODE
LOWbenches/multi_operation.py34 except Exception:CODE
LOWbenches/multi_operation.py50 except Exception:CODE
LOWsrc/schemathesis/hooks.py66 except Exception:CODE
LOWsrc/schemathesis/hooks.py300 except Exception as exc:CODE
LOWsrc/schemathesis/hooks.py393 except Exception as exc:CODE
MEDIUMsrc/schemathesis/hooks.py63def _reset_on_error() -> Generator:CODE
LOWsrc/schemathesis/checks.py285 except Exception as exc:CODE
LOWsrc/schemathesis/checks.py484 except Exception as exc:CODE
LOWsrc/schemathesis/auths.py164 except Exception as exc:CODE
LOWsrc/schemathesis/auths.py329 except Exception as exc:CODE
LOWsrc/schemathesis/auths.py676 except Exception:CODE
LOWsrc/schemathesis/core/hooks.py23 except Exception as exc:CODE
LOWsrc/schemathesis/core/rate_limit.py51 except Exception:CODE
LOWsrc/schemathesis/core/jsonschema/__init__.py246 except Exception:CODE
LOWsrc/schemathesis/core/error_feedback/pipeline.py56 except Exception:CODE
LOWsrc/schemathesis/pytest/xdist.py338 except Exception:CODE
LOWsrc/schemathesis/pytest/plugin.py303 except Exception:CODE
LOWsrc/schemathesis/pytest/plugin.py343 except Exception:CODE
LOWsrc/schemathesis/pytest/plugin.py361 except Exception:CODE
LOWsrc/schemathesis/python/_constants/orchestrator.py171 except Exception:CODE
LOWsrc/schemathesis/python/_constants/orchestrator.py196 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/auth_inference.py91 except Exception: # noqa: BLE001 - probe must not propagate; one bad scheme can't kill the loop.CODE
LOWsrc/schemathesis/specs/openapi/checks.py413 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py545 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py614 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/checks.py888 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/auths.py188 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/auths.py216 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/operations.py238 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/content_keywords.py99 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/examples.py621 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/validation.py117 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/stateful/links.py165 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/stateful/links.py220 except Exception as exc:CODE
LOWsrc/schemathesis/specs/openapi/stateful/links.py233 except Exception as exc:CODE
LOW…c/schemathesis/specs/openapi/stateful/_link_chooser.py34 except Exception:CODE
MEDIUM…c/schemathesis/specs/openapi/stateful/_link_chooser.py31def in response_def.iter_links():CODE
LOWsrc/schemathesis/specs/openapi/adapter/parameters.py318 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/adapter/parameters.py347 except Exception:CODE
LOWsrc/schemathesis/specs/openapi/adapter/parameters.py791 except Exception:CODE
LOWsrc/schemathesis/wfc/providers.py127 except Exception as exc:CODE
LOWsrc/schemathesis/wfc/providers.py145 except Exception as exc:CODE
MEDIUMsrc/schemathesis/wfc/providers.py86def _body_and_headers(self) -> tuple[str | bytes | None, dict[str, str]]:CODE
LOWsrc/schemathesis/cli/loaders.py72 except Exception as exc:CODE
LOWsrc/schemathesis/cli/loaders.py126 except Exception as second_exc:CODE
LOWsrc/schemathesis/cli/executor.py159 except Exception as exc:CODE
LOWsrc/schemathesis/cli/commands/replay/__init__.py242 except Exception:CODE
LOWsrc/schemathesis/cli/commands/replay/executor.py126 except Exception:CODE
LOWsrc/schemathesis/cli/commands/replay/executor.py158 except Exception as exc:CODE
LOWsrc/schemathesis/cli/commands/replay/executor.py181 except Exception as exc:CODE
15 more matches not shown…
Redundant / Tautological Comments40 hits · 60 pts
SeverityFileLineSnippetContext
LOWchangelog.py45 # Check if the new version already exists.COMMENT
LOWtest/config/test_doc_examples.py99 # Check if current uses additionalProperties (e.g., auth.openapi.<scheme>)COMMENT
LOWtest/cli/test_commands.py1033 # Check if field exists (could be in files or form)STRING
LOWtest/cli/test_checks.py1085 # Check if 'ids' parameter is present in the URLCOMMENT
LOWscripts/is_interesting.sh15# Check if needle is present in outputCOMMENT
LOWsrc/schemathesis/pytest/lazy.py230 # Check if test function is a method and inject self from request.instanceCOMMENT
LOWsrc/schemathesis/config/_generation.py78 # Check if all parameters match their default valuesCOMMENT
LOWsrc/schemathesis/specs/openapi/patterns.py544 # Check if there are still untranslated Unicode property escapesSTRING
LOWsrc/schemathesis/specs/openapi/warnings.py123 # Check if scheme exists in the schema definition, and suggest a candidate if it does notCOMMENT
LOWsrc/schemathesis/specs/openapi/checks.py849 # Check if the case contains only additional properties in query, headers, or cookies.COMMENT
LOWsrc/schemathesis/specs/openapi/checks.py305 # Check if there are other negative components besides bodyCOMMENT
LOWsrc/schemathesis/specs/openapi/checks.py1060 # Check if all parameters come from linksCOMMENT
LOWsrc/schemathesis/specs/openapi/checks.py1124 # Check if invalid auth will give an errorCOMMENT
LOWsrc/schemathesis/specs/openapi/stateful/links.py154 # Check if parameter exists in source operationCOMMENT
LOWsrc/schemathesis/specs/openapi/stateful/inference.py185 # Check if it's an absolute URLCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/models.py489 # Check if this field is a FK fieldCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/models.py545 # Check if next part is an array indexCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/naming.py544 # Check if resource name ends with OR starts with the prefixCOMMENT
LOW…thesis/specs/openapi/stateful/dependencies/__init__.py172 # Check if duplicate / subsets existsCOMMENT
LOW…thesis/specs/openapi/stateful/dependencies/__init__.py269 # Check if all inferred fields exist in existing with same valuesCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/inputs.py249 # Check if candidate ends with OR starts with the inferred resource nameCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/inputs.py255 # Check if parameter can be matched to a fieldCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/inputs.py457 # Check if nested field is a FKCOMMENT
LOW…mathesis/specs/openapi/stateful/dependencies/inputs.py492 # Check if this item property is a FKCOMMENT
LOW…athesis/specs/openapi/stateful/dependencies/schemas.py392 # Check if array field name matches common patternsCOMMENT
LOW…athesis/specs/openapi/stateful/dependencies/schemas.py414 # Check if field name matches resource-specific patternCOMMENT
LOW…athesis/specs/openapi/stateful/dependencies/schemas.py484 # Check if any other property looks like pagination metadataCOMMENT
LOW…hesis/specs/openapi/stateful/dependencies/resources.py173 # Check if it's a known wrapper field nameCOMMENT
LOW…hesis/specs/openapi/stateful/dependencies/resources.py302 # Check if this branch defines the target propertyCOMMENT
LOW…hesis/specs/openapi/stateful/dependencies/resources.py407 # 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.py129 # Check if a security parameter was intentionally removed during negative testingCOMMENT
LOWsrc/schemathesis/specs/openapi/adapter/security.py146 # Check if all schemes in this requirement can be satisfied (AND semantics)COMMENT
LOWsrc/schemathesis/specs/graphql/validation.py41 # Check if this is a client error (query validation failed)COMMENT
LOWsrc/schemathesis/resources/repository.py245 # Check if we need to evict an old contextCOMMENT
LOWsrc/schemathesis/cli/commands/run/warnings.py245 # Check if this warning should cause test failureCOMMENT
LOWsrc/schemathesis/engine/core.py91 # Check if feature is supported by the schemaCOMMENT
LOWsrc/schemathesis/engine/statistic.py100 # Check if this is a new unique failureCOMMENT
LOWsrc/schemathesis/generation/hypothesis/builder.py161 # Check if user provided custom strategies via @schema.given()COMMENT
LOWsrc/schemathesis/generation/hypothesis/builder.py165 # Check if there are actually examples to addCOMMENT
Modern Structural Boilerplate57 hits · 57 pts
SeverityFileLineSnippetContext
LOWsrc/schemathesis/__init__.py19__all__ = [CODE
LOWsrc/schemathesis/auths.py187 def _set_cache_entry(self, data: Auth, case: Case, context: AuthContext) -> None:CODE
LOWsrc/schemathesis/auths.py215 def _set_cache_entry(self, data: Auth, case: Case, context: AuthContext) -> None:CODE
LOWsrc/schemathesis/auths.py539def set_on_case(case: Case, context: AuthContext, auth_storage: AuthStorage | None) -> None:CODE
LOWsrc/schemathesis/errors.py29__all__ = [CODE
LOWsrc/schemathesis/reporting/__init__.py7__all__ = [CODE
LOWsrc/schemathesis/core/compat.py9__all__ = ["BaseExceptionGroup"]CODE
LOWsrc/schemathesis/core/cache/__init__.py13__all__ = [CODE
LOWsrc/schemathesis/core/jsonschema/__init__.py259__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.py211__all__ = ["AspNetParser"]CODE
LOW…chemathesis/core/error_feedback/parsers/marshmallow.py207__all__ = ["MarshmallowParser"]CODE
LOWsrc/schemathesis/core/error_feedback/parsers/ajv.py372__all__ = ["AjvParser"]CODE
LOW…/schemathesis/core/error_feedback/parsers/confluent.py155__all__ = ["ConfluentParser"]CODE
LOW…hemathesis/core/error_feedback/parsers/go_validator.py257__all__ = ["GoValidatorParser"]CODE
LOWsrc/schemathesis/core/error_feedback/parsers/laravel.py190__all__ = ["LaravelParser"]CODE
LOW…c/schemathesis/core/error_feedback/parsers/litestar.py197__all__ = ["LitestarParser"]CODE
LOW…schemathesis/core/error_feedback/parsers/flask_rest.py227__all__ = ["FlaskRestParser"]CODE
LOWsrc/schemathesis/core/error_feedback/parsers/symfony.py254__all__ = ["SymfonyParser"]CODE
LOWsrc/schemathesis/pytest/__init__.py13__all__ = [CODE
LOWsrc/schemathesis/python/__init__.py3__all__ = ["constants"]CODE
LOWsrc/schemathesis/python/_constants/__init__.py4__all__ = ["ConstantEntry", "ConstantsPool", "Origin", "constants"]CODE
LOWsrc/schemathesis/config/__init__.py52__all__ = [CODE
LOWsrc/schemathesis/config/_warnings.py10__all__ = ["SchemathesisWarning", "WarningsConfig"]CODE
LOWsrc/schemathesis/config/_checks.py272 def _set_enabled(self, name: str, *, known_names: set[str], enabled: bool) -> None:CODE
LOWsrc/schemathesis/config/_projects.py593 def _set_parent(self, parent: SchemathesisConfig) -> None:CODE
LOWsrc/schemathesis/specs/openapi/_auth_retry.py15def set_auth_for_case(case: Case, parameter: Mapping[str, Any]) -> None:CODE
LOWsrc/schemathesis/specs/openapi/definitions.py2572__all__ = ["SWAGGER_20", "OPENAPI_30", "OPENAPI_31", "OPENAPI_32", *_VALIDATORS]CODE
LOWsrc/schemathesis/specs/openapi/converter.py535def update_pattern_in_schema(schema: dict[str, Any]) -> None:CODE
LOWsrc/schemathesis/specs/openapi/__init__.py12__all__ = [CODE
LOWsrc/schemathesis/specs/openapi/types/__init__.py9__all__ = ["OperationObject", "common", "v2", "v3"]CODE
LOW…thesis/specs/openapi/stateful/dependencies/__init__.py45__all__ = [CODE
LOW…mathesis/specs/openapi/stateful/dependencies/inputs.py514def update_input_field_bindings(resource_name: str, operations: OperationMap) -> None:CODE
LOWsrc/schemathesis/specs/openapi/adapter/__init__.py7__all__ = [CODE
LOWsrc/schemathesis/specs/openapi/expressions/__init__.py18__all__ = ["MultiMatch", "lexer", "nodes", "parser"]CODE
LOWsrc/schemathesis/specs/graphql/nodes.py10__all__ = [ # noqa: F822CODE
LOWsrc/schemathesis/specs/graphql/stateful/__init__.py132__all__ = ["GraphQLStateMachine", "create_state_machine"]CODE
LOWsrc/schemathesis/wfc/__init__.py14__all__ = [CODE
LOWsrc/schemathesis/resources/__init__.py114__all__ = [CODE
LOWsrc/schemathesis/cli/__init__.py10__all__ = [CODE
LOWsrc/schemathesis/cli/commands/fuzz/handlers/output.py194 def update_error_count(self, error_count: int) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/__init__.py9__all__ = [CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py265 def _update_stats_display(self) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py295 def update_progress(self) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py321 def update_stats(self, status: Status) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py472 def _update_progress_display(self) -> None:CODE
LOWsrc/schemathesis/cli/commands/run/handlers/output.py494 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/errors.py37__all__ = ["EngineErrorInfo", "DeadlineExceeded", "UnexpectedError"]CODE
LOWsrc/schemathesis/generation/__init__.py7__all__ = [CODE
LOWsrc/schemathesis/generation/meta.py243 def update_validated_hash(self, location: ParameterLocation, value: int) -> None:CODE
LOWsrc/schemathesis/generation/stateful/__init__.py10__all__ = [CODE
LOWsrc/schemathesis/generation/jsonschema/__init__.py5__all__ = ["EMPTY_STRATEGY", "Alphabet", "StrategyContext", "build", "from_schema"]CODE
LOWsrc/schemathesis/generation/hypothesis/given.py16__all__ = [CODE
Fake / Example Data63 hits · 56 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
LOWtest/filters/test_expressions.py35 '/user/name "John Doe"',CODE
LOWtest/filters/test_expressions.py36 '/user/name <> "John Doe"',CODE
LOWtest/filters/test_expressions.py40 '== "John Doe"',CODE
LOWtest/python/test_case_metadata.py733 original_value="user@example.com",STRING
LOWtest/python/_constants/test_filter.py13 ("user@example.com", True),CODE
LOWtest/python/_constants/test_generation.py643 assert _draw(data, source, schema_properties={"blob": schema}) == "placeholder"CODE
LOWtest/python/_constants/test_generation.py664 assert _draw(data, _source("bytes", b"OK"), schema_properties={"blob": schema}) == "placeholder"CODE
LOWtest/python/_constants/test_generation.py671 assert _draw(data, _source("bytes", b"x"), schema_properties={"blob": schema}) == "placeholder"CODE
LOWtest/python/_constants/test_generation.py681 assert blob == "placeholder"CODE
LOWtest/python/_constants/test_generation.py693 assert _draw(data, source, schema_properties={"blob": schema}) == "placeholder"CODE
LOWtest/python/_constants/test_generation.py701 source = _source("string", "user@example.com")CODE
LOWtest/python/_constants/test_generation.py703 assert _draw(data, source, schema_properties={"blob": schema}) == "user@example.com"CODE
LOWtest/python/_constants/test_generation.py713 assert _draw(data, source, schema_properties={"blob": schema}) == "placeholder"CODE
LOWtest/python/_constants/test_generation.py739 st.just(GeneratedValue(value={"blob": "placeholder"}, meta=None)),CODE
LOWtest/python/_constants/test_generation.py624 st.just({"blob": "placeholder"}),CODE
LOWtest/python/_constants/test_generation.py923 assert blob == "placeholder"CODE
LOWtest/specs/openapi/test_semantic_pool.py327 {"description": "lorem ipsum dolor sit"},CODE
LOWtest/specs/openapi/test_semantic_pool.py328 [IngestionLeaf("string", None, None, "description", "lorem ipsum dolor sit")],CODE
LOWtest/specs/openapi/test_semantic_pool.py930 body={"email": "user@example.com", "country": "DE"},CODE
LOWtest/specs/openapi/test_semantic_pool.py938 assert "user@example.com" in _lookup_by_descriptor(extra_data_source.semantic_index, email_desc)CODE
LOWtest/specs/openapi/test_semantic_pool.py2423 st.fixed_dictionaries({"code": st.just("placeholder")}),CODE
LOWtest/specs/openapi/test_examples.py1721 "name": {"type": "string", "example": "John Doe"},STRING
LOWtest/specs/openapi/test_examples.py1728 "name": "John Doe",STRING
LOWtest/specs/openapi/negative/test_metadata.py108 original_value="user@example.com",CODE
LOWtest/specs/openapi/negative/test_metadata.py111 'violates `format:email` at /properties/email (was "user@example.com", became "useratexample.com")',CODE
LOWtest/specs/openapi/negative/test_value_violators.py35 assert not validator.is_valid(violate_email("user@example.com"))CODE
LOWtest/specs/graphql/test_resource_pool.py128 operation = _parse('query { book(id: "placeholder") { id } }')STRING
LOWtest/specs/graphql/test_resource_pool.py133 assert "placeholder" not in printedSTRING
LOWtest/specs/graphql/test_resource_pool.py135 assert "placeholder" in printedSTRING
LOWtest/specs/graphql/test_resource_pool.py148 operation = _parse(f'query {{ lookup({arg_name}: "placeholder") }}')STRING
LOWtest/specs/graphql/test_resource_pool.py161 operation = _parse('query { lookup(id: "placeholder") }')STRING
LOWtest/specs/graphql/test_resource_pool.py163 assert "placeholder" in graphql.print_ast(operation)STRING
LOWtest/specs/graphql/test_resource_pool.py174 operation = _parse('query { lookup(filter: "placeholder") }')STRING
LOWtest/specs/graphql/test_resource_pool.py176 assert "placeholder" in graphql.print_ast(operation)STRING
LOWtest/specs/graphql/test_resource_pool.py188 operation = _parse('query { lookup(authorId: "placeholder") }')STRING
LOWtest/specs/graphql/test_resource_pool.py190 assert "placeholder" in graphql.print_ast(operation)STRING
LOWtest/specs/graphql/test_resource_pool.py204 operation = _parse('query { author(id: "placeholder") { id } }')STRING
LOWtest/specs/graphql/test_resource_pool.py208 assert "placeholder" in printedSTRING
LOWtest/specs/graphql/test_resource_pool.py283 operation = _parse('query { bookByTitle(title: "placeholder") { id } }')STRING
LOWtest/specs/graphql/test_resource_pool.py286 assert "placeholder" in graphql.print_ast(operation)STRING
LOWtest/specs/graphql/test_resource_pool.py299 operation = _parse('query { books(filter: {title: "placeholder"}) { id } }')STRING
LOWtest/specs/graphql/test_resource_pool.py301 assert "placeholder" in graphql.print_ast(operation)STRING
LOWtest/specs/graphql/test_resource_pool.py323 operation = _parse(f'query {{ lookup(ref: {{{input_field}: "placeholder"}}) }}')STRING
LOWtest/specs/graphql/test_resource_pool.py373 operation = _parse('query { authorPosts(ref: {id: "placeholder"}) }')STRING
LOWtest/specs/graphql/test_resource_pool.py375 assert "placeholder" in graphql.print_ast(operation)STRING
LOWtest/specs/graphql/test_resource_pool.py388 operation = _parse('query { book(id: "placeholder") { id ...BookFields } } fragment BookFields on Book { title }')STRING
LOWtest/specs/graphql/test_resource_pool.py478 operation = _parse('query { author { books(bookId: "placeholder") } }')STRING
LOWtest/specs/graphql/test_resource_pool.py356 operation = _parse('mutation { updateBook(input: {ref: {id: "placeholder"}, title: "t"}) { id } }')STRING
LOWtest/cli/test_extra_data_sources.py485 user = {"id": user_id, "email": data.get("email", "user@example.com")}CODE
LOWtest/apps/catalog/openapi/stateful.py37 return {0: {"id": 0, "name": "John Doe", "last_modified": "2021-01-01T00:00:00Z"}}CODE
LOWdocs/explanations/examples.md21 example: "John Doe"CODE
LOWdocs/explanations/examples.md29 example: "John Doe"CODE
LOWdocs/explanations/examples.md43 name: "John Doe"CODE
LOWdocs/explanations/examples.md72 - name: "John Doe"CODE
LOWdocs/guides/fuzz-dictionary.md61values = ["test@example.com", "admin@example.com"]CODE
LOWdocs/reference/configuration.md109values = ["test@example.com", "admin@example.com"]CODE
LOWexamples/booking/README.md56 "guest_name": "John Doe",CODE
3 more matches not shown…
Cross-File Repetition8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHtest/specs/graphql/test_resource_pool.py0type book { id: id! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! deletebook(id: iSTRING
HIGHtest/specs/graphql/stateful/test_state_machine.py0type book { id: id! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! deletebook(id: iSTRING
HIGHtest/specs/graphql/stateful/test_discovery.py0type book { id: id! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! deletebook(id: iSTRING
HIGHtest/specs/graphql/stateful/test_transitions.py0type book { id: id! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! deletebook(id: iSTRING
HIGHtest/specs/graphql/stateful/test_bundles.py0type book { id: id! } type query { book(id: id!): book } type mutation { addbook(title: string!): book! deletebook(id: iSTRING
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
Self-Referential Comments12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMtest/pytest/test_parametrization.py789# Create a custom database in a temporary directoryCOMMENT
MEDIUMtest/pytest/test_parametrization.py824# Create a custom database in a temporary directoryCOMMENT
MEDIUMtest/pytest/test_lazy.py1056# Create a custom database in a temporary directoryCOMMENT
MEDIUMtest/pytest/test_lazy.py1092# 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.py354 # Creating a validator validates the schemaCOMMENT
MEDIUMtest/specs/openapi/test_checks.py974 # Create a successful response (200 OK)COMMENT
MEDIUMtest/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.py65 # Create a mapping from testcase name to elementCOMMENT
MEDIUMsrc/schemathesis/specs/openapi/checks.py850 # This function is used to determine if negation is solely in the form of extra properties,COMMENT
MEDIUMsrc/schemathesis/resources/repository.py226 # Create a stable key for the contextCOMMENT
AI Structural Patterns35 hits · 34 pts
SeverityFileLineSnippetContext
LOWtest/conftest.py465CODE
LOWtest/utils.py200CODE
LOWtest/specs/openapi/test_checks.py101CODE
LOWtest/specs/openapi/stateful/conftest.py32CODE
LOWsrc/schemathesis/schemas.py136CODE
LOWsrc/schemathesis/schemas.py186CODE
LOWsrc/schemathesis/schemas.py422CODE
LOWsrc/schemathesis/schemas.py920CODE
LOWsrc/schemathesis/filters.py181CODE
LOWsrc/schemathesis/filters.py212CODE
LOWsrc/schemathesis/filters.py243CODE
LOWsrc/schemathesis/filters.py313CODE
LOWsrc/schemathesis/core/spec.py109CODE
LOWsrc/schemathesis/pytest/lazy.py110CODE
LOWsrc/schemathesis/pytest/lazy.py142CODE
LOWsrc/schemathesis/config/_report.py98CODE
LOWsrc/schemathesis/config/_generation.py43CODE
LOWsrc/schemathesis/config/_generation.py137CODE
LOWsrc/schemathesis/config/__init__.py110CODE
LOWsrc/schemathesis/config/_checks.py154CODE
LOWsrc/schemathesis/config/_operations.py257CODE
LOWsrc/schemathesis/config/_projects.py106CODE
LOWsrc/schemathesis/config/_projects.py213CODE
LOWsrc/schemathesis/specs/openapi/_hypothesis.py126CODE
LOWsrc/schemathesis/specs/openapi/converter.py20CODE
LOWsrc/schemathesis/specs/openapi/converter.py35CODE
LOWsrc/schemathesis/specs/openapi/converter.py49CODE
LOWsrc/schemathesis/specs/openapi/converter.py78CODE
LOWsrc/schemathesis/specs/openapi/schemas.py651CODE
LOWsrc/schemathesis/specs/graphql/schemas.py478CODE
LOWsrc/schemathesis/specs/graphql/schemas.py366CODE
LOWsrc/schemathesis/cli/commands/fuzz/__init__.py152CODE
LOWsrc/schemathesis/cli/commands/run/warnings.py28CODE
LOWsrc/schemathesis/cli/commands/run/__init__.py162CODE
LOWsrc/schemathesis/generation/case.py131CODE
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHdocs/guides/auth.md20 --header "X-API-Key: your-api-key"CODE
HIGHdocs/guides/auth.md61export API_KEY="your-api-key"CODE
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWdocs/guides/extending-cli.md14### Step 1: Create an option groupCOMMENT
LOWdocs/guides/extending-cli.md27### Step 2: Add options to the groupCOMMENT
LOWdocs/guides/extending-cli.md54### Step 3: Create the event handlerCOMMENT
LOWdocs/guides/hypothesis-strategies.md164 # Step 1: Always create userCOMMENT
LOWdocs/guides/hypothesis-strategies.md169 # Step 2: Probabilistic operationsCOMMENT
LOWdocs/guides/hypothesis-strategies.md182 # Step 3: Always cleanupCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/schemathesis/core/deserialization.py88Register a deserializer for custom response media types. Converts API responses with custom content types (MessagePSTRING
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
LOW…mathesis/specs/openapi/stateful/dependencies/naming.py460 # just add 's' (car -> cars)COMMENT
MEDIUMsrc/schemathesis/specs/openapi/adapter/parameters.py2236 # to leverage valuable captured IDs for testing deeper application logicCOMMENT
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/specs/openapi/test_patterns.py261 # Nested unbounded inner (`([a-z]+)+`) — the per-tick max is unbounded soCOMMENT
LOWsrc/schemathesis/core/error_feedback/parsers/jackson.py21if TYPE_CHECKING:COMMENT
LOWsrc/schemathesis/specs/openapi/stateful/__init__.py181 bundle_matchers.append((bundle_name, make_response_filter(link.status_code, all_status_codes)))COMMENT
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.py176 # 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
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWtest/cli/test_checks.py1231 def my_method():CODE