Replace 'hub' with 'ingest' in any GitHub URL to get a prompt-friendly extract of a codebase
This report summarizes scanner evidence for coderamp-labs/gitingest, a Python project with 15,894 GitHub stars. SynthScan examined 11,101 lines of code across 95 source files, recording 150 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 16.2 (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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 82 finding(s).
Are imports declared and package/API names verified? 50 finding(s).
Are wrappers, guards, and repeated structures necessary? 80 finding(s).
Which changes need focused human review? 150 finding(s).
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.
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.
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.
The scanner identified 150 distinct pattern matches across 12 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 30 | def get_ensure_git_installed_call_count() -> int: | CODE |
| LOW | tests/test_notebook_utils.py | 14 | def test_process_notebook_all_cells(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 48 | def test_process_notebook_with_worksheets(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 80 | def test_process_notebook_multiple_worksheets(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 118 | def test_process_notebook_code_only(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 139 | def test_process_notebook_markdown_only(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 161 | def test_process_notebook_raw_only(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 183 | def test_process_notebook_empty_cells(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 206 | def test_process_notebook_invalid_cell_type(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_notebook_utils.py | 225 | def test_process_notebook_with_output(write_notebook: WriteNotebookFunc) -> None: | CODE |
| LOW | tests/test_git_utils.py | 35 | def test_validate_github_token_valid(token: str) -> None: | CODE |
| LOW | tests/test_git_utils.py | 52 | def test_validate_github_token_invalid(token: str) -> None: | CODE |
| LOW | tests/test_git_utils.py | 113 | def test_create_git_auth_header(token: str) -> None: | CODE |
| LOW | tests/test_git_utils.py | 129 | def test_create_git_repo_helper_calls( | CODE |
| LOW | tests/test_git_utils.py | 195 | def test_create_git_auth_header_with_ghe_url(token: str, url: str, expected_hostname: str) -> None: | CODE |
| LOW | tests/test_git_utils.py | 234 | def test_create_git_repo_with_ghe_urls( | CODE |
| LOW | tests/test_git_utils.py | 264 | def test_create_git_repo_ignores_non_github_urls( | CODE |
| LOW⚡ | tests/test_gitignore_feature.py | 35 | def test_load_gitignore_patterns(tmp_path: Path) -> None: | CODE |
| LOW | tests/test_gitignore_feature.py | 52 | async def test_ingest_with_gitignore(repo_path: Path) -> None: | CODE |
| LOW | tests/test_clone.py | 70 | async def test_clone_nonexistent_repository(repo_exists_true: AsyncMock) -> None: | CODE |
| LOW | tests/test_clone.py | 121 | async def test_clone_without_commit(repo_exists_true: AsyncMock, gitpython_mocks: dict) -> None: | CODE |
| LOW | tests/test_clone.py | 149 | async def test_clone_creates_parent_directory(tmp_path: Path, gitpython_mocks: dict) -> None: | CODE |
| LOW | tests/test_clone.py | 170 | async def test_clone_with_specific_subpath(gitpython_mocks: dict) -> None: | CODE |
| LOW | tests/test_clone.py | 192 | async def test_clone_with_include_submodules(gitpython_mocks: dict) -> None: | CODE |
| LOW | tests/test_clone.py | 209 | async def test_check_repo_exists_with_auth_token(mocker: MockerFixture) -> None: | CODE |
| LOW | tests/test_pattern_utils.py | 7 | def test_process_patterns_empty_patterns() -> None: | CODE |
| LOW | tests/test_pattern_utils.py | 20 | def test_parse_patterns_valid() -> None: | CODE |
| LOW | tests/test_pattern_utils.py | 33 | def test_process_patterns_include_and_ignore_overlap() -> None: | CODE |
| LOW | tests/test_ingestion.py | 201 | def test_include_ignore_patterns( | CODE |
| LOW | tests/test_summary.py | 86 | def _calculate_expected_lines(ref_type: str, *, is_main_branch: bool) -> int: | CODE |
| LOW | tests/test_cli.py | 62 | def test_cli_with_stdout_output() -> None: | CODE |
| LOW | tests/test_cli.py | 93 | def _invoke_isolated_cli_runner(args: list[str]) -> Result: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 42 | async def test_parse_url_valid_https(url: str, stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 51 | async def test_parse_url_valid_http(url: str, stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 90 | async def test_parse_query_mixed_case(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 106 | async def test_parse_url_with_subpaths( | CODE |
| LOW | tests/query_parser/test_query_parser.py | 129 | async def test_parse_url_invalid_repo_structure(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 144 | async def test_parse_local_dir_path_local_path() -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 160 | async def test_parse_local_dir_path_relative_path() -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 176 | async def test_parse_remote_repo_empty_source(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 199 | async def test_parse_url_branch_and_commit_distinction( | CODE |
| LOW | tests/query_parser/test_query_parser.py | 222 | async def test_parse_local_dir_path_uuid_uniqueness() -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 237 | async def test_parse_url_with_query_and_fragment(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 254 | async def test_parse_url_unsupported_host(stub_resolve_sha: dict[str, AsyncMock]) -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 270 | async def test_parse_query_with_branch() -> None: | CODE |
| LOW | tests/query_parser/test_query_parser.py | 304 | async def test_parse_repo_source_with_various_url_patterns( | CODE |
| LOW | tests/query_parser/test_query_parser.py | 330 | async def _assert_basic_repo_fields(url: str, sha_mock: AsyncMock) -> IngestionQuery: | CODE |
| LOW | tests/query_parser/test_git_host_agnostic.py | 31 | async def test_parse_query_without_host( | CODE |
| LOW | tests/server/test_flow_integration.py | 49 | async def test_remote_repository_analysis(request: pytest.FixtureRequest) -> None: | CODE |
| LOW | tests/server/test_flow_integration.py | 74 | async def test_invalid_repository_url(request: pytest.FixtureRequest) -> None: | CODE |
| LOW | tests/server/test_flow_integration.py | 171 | async def test_repository_with_patterns(request: pytest.FixtureRequest) -> None: | CODE |
| LOW | src/server/server_utils.py | 18 | async def rate_limit_exception_handler(request: Request, exc: Exception) -> Response: | CODE |
| LOW | src/static/llms.txt | 334 | def ingest_with_token_rotation(repo_url: str, token_manager): | CODE |
| LOW | src/gitingest/clone.py | 130 | async def _perform_post_clone_operations( | CODE |
| LOW | src/gitingest/utils/query_parser_utils.py | 101 | async def _try_domains_for_user_and_repo(user_name: str, repo_name: str, token: str | None = None) -> str: | CODE |
| LOW | src/gitingest/utils/query_parser_utils.py | 133 | def _is_valid_git_commit_hash(commit: str) -> bool: | CODE |
| LOW | src/gitingest/utils/query_parser_utils.py | 219 | def _get_user_and_repo_from_path(path: str) -> tuple[str, str]: | CODE |
| LOW | src/gitingest/utils/os_utils.py | 6 | async def ensure_directory_exists_or_create(path: Path) -> None: | CODE |
| LOW | src/gitingest/utils/git_utils.py | 187 | async def fetch_remote_branches_or_tags(url: str, *, ref_type: str, token: str | None = None) -> list[str]: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 7 | CODE | |
| LOW | tests/test_git_utils.py | 7 | CODE | |
| LOW | tests/test_clone.py | 7 | CODE | |
| LOW | tests/test_ingestion.py | 7 | CODE | |
| LOW | tests/test_cli.py | 3 | CODE | |
| LOW | tests/query_parser/test_query_parser.py | 8 | CODE | |
| LOW | tests/query_parser/test_git_host_agnostic.py | 7 | CODE | |
| LOW | src/server/form_types.py | 3 | CODE | |
| LOW | src/server/routers_utils.py | 3 | CODE | |
| LOW | src/server/models.py | 3 | CODE | |
| LOW | src/server/server_config.py | 3 | CODE | |
| LOW | src/server/s3_utils.py | 3 | CODE | |
| LOW | src/server/query_processor.py | 3 | CODE | |
| LOW | src/server/main.py | 3 | CODE | |
| LOW | src/server/routers/__init__.py | 3 | CODE | |
| LOW | src/server/routers/__init__.py | 4 | CODE | |
| LOW | src/server/routers/__init__.py | 5 | CODE | |
| LOW | src/gitingest/query_parser.py | 3 | CODE | |
| LOW | src/gitingest/ingestion.py | 3 | CODE | |
| LOW | src/gitingest/output_formatter.py | 3 | CODE | |
| LOW | src/gitingest/__init__.py | 3 | CODE | |
| LOW | src/gitingest/__init__.py | 3 | CODE | |
| LOW | src/gitingest/entrypoint.py | 3 | CODE | |
| LOW | src/gitingest/__main__.py | 4 | CODE | |
| LOW | src/gitingest/clone.py | 3 | CODE | |
| LOW | src/gitingest/utils/query_parser_utils.py | 3 | CODE | |
| LOW | src/gitingest/utils/auth.py | 3 | CODE | |
| LOW | src/gitingest/utils/logging_config.py | 7 | CODE | |
| LOW | src/gitingest/utils/ignore_patterns.py | 3 | CODE | |
| LOW | src/gitingest/utils/ingestion_utils.py | 3 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 4 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 9 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 9 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 14 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 6 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 11 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 11 | CODE | |
| LOW | src/gitingest/utils/compat_typing.py | 16 | CODE | |
| LOW | src/gitingest/utils/pattern_utils.py | 3 | CODE | |
| LOW | src/gitingest/utils/file_utils.py | 3 | CODE | |
| LOW | src/gitingest/utils/notebook.py | 3 | CODE | |
| LOW | src/gitingest/utils/git_utils.py | 3 | CODE | |
| LOW | src/gitingest/schemas/ingestion.py | 3 | CODE | |
| LOW | src/gitingest/schemas/filesystem.py | 3 | CODE | |
| LOW | src/gitingest/schemas/cloning.py | 3 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 3 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 4 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 4 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 4 | CODE | |
| LOW | src/gitingest/schemas/__init__.py | 5 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_gitignore_feature.py | 24 | # Create a file that should be included | COMMENT |
| MEDIUM⚡ | tests/test_gitignore_feature.py | 28 | # Create a file that should be excluded | COMMENT |
| MEDIUM | src/server/main.py | 87 | # Define the default allowed hosts for the application | COMMENT |
| MEDIUM | src/server/metrics_server.py | 10 | # Create a logger for this module | COMMENT |
| MEDIUM | src/server/metrics_server.py | 13 | # Create a separate FastAPI app for metrics | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/server/query_processor.py | 98 | # Check if file exists on S3 | COMMENT |
| LOW | src/server/query_processor.py | 281 | # Check if digest already exists on S3 before cloning | COMMENT |
| LOW⚡ | src/server/main.py | 48 | # Set traces_sample_rate to capture transactions for tracing | COMMENT |
| LOW⚡ | src/server/main.py | 50 | # Set profile_session_sample_rate to profile sessions | COMMENT |
| LOW⚡ | src/server/main.py | 52 | # Set profile_lifecycle to automatically run the profiler | COMMENT |
| LOW | src/gitingest/utils/logging_config.py | 138 | # Check if we're in Kubernetes or production environment | COMMENT |
| LOW | src/gitingest/utils/notebook.py | 47 | # Check if the notebook contains worksheets | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/server/routers_utils.py | 54 | except Exception as exc: | CODE |
| LOW | src/server/s3_utils.py | 383 | except Exception as exc: | CODE |
| LOW | src/server/s3_utils.py | 462 | except Exception as exc: | CODE |
| LOW | src/server/query_processor.py | 131 | except Exception as exc: | CODE |
| LOW | src/server/query_processor.py | 187 | except Exception as metadata_exc: | CODE |
| LOW | src/server/query_processor.py | 270 | except Exception as exc: | CODE |
| LOW | src/server/query_processor.py | 307 | except Exception as exc: | CODE |
| LOW | src/gitingest/__main__.py | 187 | except Exception as exc: | CODE |
| LOW | src/gitingest/utils/git_utils.py | 104 | except Exception as exc: | CODE |
| LOW | src/gitingest/schemas/filesystem.py | 134 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_cli.py | 72 | # ─── core expectations (stdout) ────────────────────────────────────- | COMMENT |
| MEDIUM | src/static/llms.txt | 136 | # ================================================ | COMMENT |
| MEDIUM | src/static/llms.txt | 138 | # ================================================ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/gitingest/utils/git_utils.py | 118 | except git.GitCommandError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/server/routers/__init__.py | 7 | __all__ = ["dynamic", "index", "ingest"] | CODE |
| LOW | src/gitingest/__init__.py | 5 | __all__ = ["ingest", "ingest_async"] | CODE |
| LOW | src/gitingest/utils/compat_typing.py | 18 | __all__ = ["Annotated", "ParamSpec", "StrEnum", "TypeAlias"] | CODE |
| LOW | src/gitingest/schemas/__init__.py | 7 | __all__ = ["CloneConfig", "FileSystemNode", "FileSystemNodeType", "FileSystemStats", "IngestionQuery"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/conftest.py | 228 | """Provide comprehensive GitPython mocks for testing.""" | STRING |
| MEDIUM | tests/conftest.py | 233 | """Set up comprehensive GitPython mocks.""" | STRING |
| LOW | src/gitingest/query_parser.py | 79 | # If no extra path parts, just return | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/server/s3_utils.py | 486 | CODE | |
| LOW | src/gitingest/ingestion.py | 123 | CODE | |
| LOW | src/gitingest/clone.py | 32 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/gitingest/entrypoint.py | 35 | CODE | |
| LOW | src/gitingest/entrypoint.py | 151 | CODE | |
| LOW | src/gitingest/__main__.py | 117 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/codeql.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | src/static/llms.txt | 121 | ``` | COMMENT |