antra watch
Run continuous analysis on local file changes.
Re-analyzes as you edit, so a crossing shows up while the file is still open.
Usage
antra watch [path]
path is the Next.js app root and defaults to ..
antra watch
antra watch --rule BG-001
antra watch --full
Flags
Incremental by default
watch re-analyzes what changed. --full throws that away and rescans
everything on each edit. It is slower, and worth it only when you suspect the
incremental result is stale, for example after a schema snapshot changed under
it.
When to prefer a one-shot scan
watch holds a process open. In an editor you can run instead:
antra scan --staged
which is bounded, finishes, and can be wired into a pre-commit hook.