facebook / litho
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 (36 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 36 components.
  • 1,434 files, 128,330 lines of code (100.0% vs. main code).
  • "litho-core" is biggest, containing 23.73% of code.
  • "sample-barebones" is smallest, containing 0.01% of code.


litho-core30454 LOC (23%) 228 files
litho-processor15831 LOC (12%) 129 files
litho-widget13870 LOC (10%) 105 files
lib10358 LOC (8%) 81 files
litho-intellij-plugin7551 LOC (5%) 105 files
litho-testing7352 LOC (5%) 96 files
litho-rendercore5148 LOC (4%) 53 files
litho-rendercore-transitions5139 LOC (4%) 61 files
litho-sections-core4843 LOC (3%) 38 files
litho-it4828 LOC (3%) 120 files
codelabs4052 LOC (3%) 120 files
litho-core-kotlin2610 LOC (2%) 36 files
litho-sections-widget2102 LOC (1%) 22 files
litho-widget-kotlin1759 LOC (1%) 25 files
litho-sections-processor1482 LOC (1%) 12 files
litho-editor-flipper1474 LOC (1%) 10 files
litho-rendercore-text1287 LOC (1%) 10 files
litho-rendercore-testing1124 LOC (<1%) 19 files
litho-editor-core1106 LOC (<1%) 18 files
website923 LOC (<1%) 8 files
litho-rendercore-visibility907 LOC (<1%) 13 files
litho-rendercore-incremental-mount727 LOC (<1%) 5 files
litho-widget-material561 LOC (<1%) 3 files
litho-rendercore-yoga530 LOC (<1%) 4 files
tools473 LOC (<1%) 3 files
litho-annotations424 LOC (<1%) 59 files
litho-espresso323 LOC (<1%) 8 files
sample305 LOC (<1%) 14 files
litho-fresco280 LOC (<1%) 5 files
scripts178 LOC (<1%) 1 files
litho-coroutines-kotlin115 LOC (<1%) 4 files
litho-sections-debug100 LOC (<1%) 1 files
litho-sections-annotations62 LOC (<1%) 12 files
sample-codelab36 LOC (<1%) 4 files
litho-fresco-kotlin9 LOC (<1%) 1 files
sample-barebones7 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-04-14 23:09