Skip to content

v0.12.0

Choose a tag to compare

@he-yufeng he-yufeng released this 29 Nov 14:35
1028518

Find the import that makes a group of files circular without generating a wiki:

repowiki cycles .
repowiki cycles . --check --format json

Each group has a complete member list and one real closed import path you can follow. The check exits 1 for a detected loop, 2 when the scan is partial and finds no loop, and 0 for a complete scan with no detected loop. JSON remains available on stdout on either nonzero result.

The command uses the existing static scan. It does not predict dynamic imports or change the wiki output. Implemented in #24.