facebookincubator / cargo-guppy
Components & Dependencies

An overview of source code logical components.

Intro

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components.This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.
Learn more...
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (27 components)

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure (relative to the source code root), with automatically defined folder depth to have at least 12 components.

Bubble Chart | Tree Map
Components
The "primary" logical decomposition has 27 components.
  • 384 files, 103,341 lines of code (100.0% vs. main code).
  • "fixtures/large" is biggest, containing 52.66% of code.
  • "workspace-hack/src" is smallest, containing 0% of code.


fixtures/large54415 LOC (52%) 36 files
fixtures/guppy20495 LOC (19%) 50 files
guppy/src8808 LOC (8%) 45 files
fixtures/small6867 LOC (6%) 144 files
tools/hakari3657 LOC (3%) 19 files
fixtures/src2314 LOC (2%) 4 files
tools/determinator1190 LOC (1%) 7 files
cargo-guppy/src1058 LOC (1%) 5 files
target-spec/src908 LOC (<1%) 8 files
tools/cargo-hakari901 LOC (<1%) 8 files
guppy-summaries/src846 LOC (<1%) 5 files
internal-tools/cargo-compare605 LOC (<1%) 7 files
internal-tools/fixture-manager478 LOC (<1%) 6 files
fixtures/workspace210 LOC (<1%) 20 files
guppy-cmdlib/src138 LOC (<1%) 2 files
internal-tools/benchmarks107 LOC (<1%) 2 files
guppy58 LOC (<1%) 1 files
internal-tools/proptest-ext58 LOC (<1%) 2 files
target-spec56 LOC (<1%) 2 files
workspace-hack40 LOC (<1%) 2 files
guppy-summaries31 LOC (<1%) 1 files
ROOT27 LOC (<1%) 3 files
scripts24 LOC (<1%) 1 files
cargo-guppy20 LOC (<1%) 1 files
guppy-cmdlib16 LOC (<1%) 1 files
fixtures13 LOC (<1%) 1 files
workspace-hack/src1 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-04-15 05:02