scitools.com

← Report catalog

Dependency Hubs is one of Understand's built-in reports — run it on your own code from the GUI, or headlessly with und report.

Dependency Hubs

TargetsArchitectures
LanguagesAny
TagsDependencies

Rank the files in an architecture by how much the rest of it depends on them

If you can only read a few files to understand a group of files, read its dependency hubs: the files the most other files in the group depend on. This report ranks every file in the architecture you run it on that way. Only dependencies between files in the architecture count, so the same file can rank high in a dependency cycle but low in the folder it is in.

By default, companion files are combined into one hub, so a header and its source file rank together. Files are companions when they have the same name up to the first dot (the last dot for web files) and are in the same folder, or when they are in different folders and one defines most of what the other declares, or when one is a file Qt generates for the other. Uncheck "Combine companion files" to rank each file on its own.

Each row is one file. Rank orders the files by their hub's Incoming count, the number of other hubs in the architecture with a file that depends on one of the hub's files, and then by name. A hub's files are listed together, starting with its main file. For architectures of entities other than files, each entity is ranked on its own.

The Dependency Cycles and Dependency Layers architectures name each cycle after its top hubs.