facebook / draft-js
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 (25 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 25 components.
  • 192 files, 12,837 lines of code (24.7% vs. main code).
  • "src/model/modifier" is biggest, containing 14.1% of code.
  • "src/flowlib" is smallest, containing 0.01% of code.


src/model/modifier1810 LOC (3%) 11 files
src/component/handlers1676 LOC (3%) 32 files
src/model/immutable1531 LOC (2%) 22 files
src/model/transaction1521 LOC (2%) 16 files
src/component/contents1189 LOC (2%) 8 files
src/model/encoding1110 LOC (2%) 15 files
src/component/selection1069 LOC (2%) 16 files
src/component/base705 LOC (1%) 8 files
src/component/utils670 LOC (1%) 21 files
website/src/components306 LOC (<1%) 3 files
ROOT242 LOC (<1%) 2 files
src/model/entity173 LOC (<1%) 6 files
website/src/pages163 LOC (<1%) 2 files
website154 LOC (<1%) 2 files
src/model/decorators116 LOC (<1%) 3 files
scripts/jest95 LOC (<1%) 3 files
src/model/paste86 LOC (<1%) 2 files
src84 LOC (<1%) 2 files
src/model/constants47 LOC (<1%) 6 files
src/stubs30 LOC (<1%) 5 files
src/model/keys18 LOC (<1%) 2 files
src/util15 LOC (<1%) 2 files
website/src/css13 LOC (<1%) 1 files
scripts13 LOC (<1%) 1 files
src/flowlib1 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:06