Skip to main content
Watch mode re-runs dead code analysis automatically when files change, giving you a continuous feedback loop as you edit.
Watch mode is great for refactoring sessions. Get instant feedback as you delete dead code.
fallow watch
Fallow watches your project files and re-analyzes with debouncing when changes are detected. Press Ctrl+C to stop.
All fallow check options are supported in watch mode. Pass them exactly as you would to fallow check.

Options

All fallow check options are supported:
fallow watch --format compact
fallow watch --production
fallow watch --unused-exports

Examples

fallow watch

Example output

$ fallow watch
Watching 1,008 files for changes...

[10:23:15] File changed: src/server/jobs/queue.ts
[10:23:15] Re-analyzing...

Unused exports (2)
  src/server/jobs/queue.ts
    :61  enqueueJobDelayed
    :206 sweepStuckProcessingJobs

Found 2 issues in 0.04s

[10:23:42] File changed: src/server/jobs/queue.ts
[10:23:42] Re-analyzing...

No issues found (0.03s) ✓

See also

Dead code analysis

How fallow detects dead code.

fallow check

Full reference for all check options available in watch mode.