Skip to content

analyze/report silently reports a missing path as an empty repo #1

Closed

Description

@zaidwhy

What happens

Running autocto analyze <path> (or report) against a path that does not exist prints a normal-looking report with zero files:

Repo: does-not-exist
Primary language: unknown
Files: 0 | deps: none
Languages: {}
Top-level: (flat)

Expected

A mistyped or missing path should produce a clear error and a non-zero exit code, not a report that looks like a valid but empty repository.

Cause

scan_repo in src/autocto/repo.py returns an empty RepoAnalysis when the path does not exist, so callers cannot tell an empty repo apart from a wrong path.

Suggested fix

Have scan_repo raise on a missing or non-directory path, and have the analyze and report commands surface a clean one-line error with a non-zero exit code.

Activity

  1. added
    bug
    on Jul 4, 2026
  2. added a commit that references this issue on Sep 28, 2026
    d21f74b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions