Skip to content

Incremental scan — only scan changed files #19

Closed

Description

@ajianaz

Description

For large codebases, scanning every file is slow and expensive. Implement incremental scanning that only processes files that changed since the last review.

Acceptance Criteria

  • Track file state (hash) from previous reviews in a local cache (.cora-cache)
  • cora scan --incremental only reviews changed files
  • cora scan --incremental --base-commit HEAD~5 compares against a specific commit
  • Cache is gitignore-friendly and portable
  • Show summary of files skipped vs reviewed

Implementation Notes

  • Use git diff --name-only for git-aware incremental scans
  • Fall back to mtime/hash comparison in non-git directories
  • Store cache in .cora-cache.json in project root

Activity

  1. added
    enhancement
    on May 30, 2026
  2. ajianaz commented on May 30, 2026

    @ajianaz
    CollaboratorAuthor

    Implemented in PR #24, merged to develop.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions