Dependency Layers is one of Understand's built-in architectures — automatic ways to group a codebase (by directory, git history, language, …) for graphs, metrics, and dependency analysis.
Dependency Layers
| Languages | Any |
| Tags | Cycles Dependencies |
Group files by layer in dependency graph
From the file dependency graph, group files into layers. Files that no other file depends on are in the highest layer, and every other file is one layer below the lowest file that depends on it.
By default, companion files are combined into units first, so a header and its source file are always in the same layer. 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. Each unit with more than one file has its own child architecture, named after the unit's main file. Uncheck "Combine companion files" to place individual files in layers.
Files or units in a dependency cycle form a subgroup within their layer, named "Cycle: " followed by the cycle's hub, as in the Dependency Cycles architecture: the file the most other files in the cycle depend on, with companion files counted as one.