Skip to content

Incremental scan — only scan changed files #19

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions