Skip to content

Examples

How to run importscope on real repos

These guides are intentionally not the same analysis repeated on different projects. They show a few different but coherent ways to use importscope once you leave the small demo repo:

  • whole-package structural view
  • focused slice inside one package
  • one subpackage extracted from a very large repo
  • top-level package analysis with a starter config for grouping and policy

These pages are examples of usage, not claims that the repositories below have bad architecture or poor design choices.

Each guide now shows the setup as importscope init plus a handful of importscope config ... commands, so the checked-in example config files match the documented command workflow exactly.

Pick the guide by analysis style

What stays consistent across all guides

Across all of them, the workflow is the same:

  1. choose the package or slice that answers one architectural question
  2. run a structural pass first
  3. add grouping and policy only when it improves readability or review value
  4. save JSON when you want follow-up inspect queries