norefs

Fixing automatically

norefs --fix prints the findings, then applies the ones whose verdict proves them safe and saves the files:

Review the diff before you commit. The emptied-type findings point at the leftovers that need human judgment.

To see the diff without touching anything, run norefs --fix --dry-run. It applies the full fix — cascades included — to the in-memory project only and prints one unified diff per file. The exit code stays 1, so it also works as a strict CI check.

The fixing flags interact: flags.md is one page on what every flag and every combination does to a working tree, and where the exit codes are pinned.


← All docs