golang / pkgsite
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 (42 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 10 components.

Bubble Chart | Tree Map
Components
The "primary" logical decomposition has 42 components.
  • 276 files, 44,765 lines of code (100.0% vs. main code).
  • "internal/godoc" is biggest, containing 20.21% of code.
  • "internal/xcontext" is smallest, containing 0.02% of code.


internal/godoc9045 LOC (20%) 26 files
internal/fetch7038 LOC (15%) 11 files
internal/postgres5593 LOC (12%) 27 files
internal/frontend4712 LOC (10%) 31 files
static/frontend2894 LOC (6%) 48 files
static/shared2585 LOC (5%) 31 files
internal/worker1514 LOC (3%) 6 files
internal/symbol1089 LOC (2%) 6 files
internal/database967 LOC (2%) 6 files
internal/middleware862 LOC (1%) 14 files
internal/source787 LOC (1%) 2 files
internal/testing784 LOC (1%) 4 files
internal776 LOC (1%) 11 files
devtools/cmd678 LOC (1%) 6 files
internal/licenses607 LOC (1%) 3 files
internal/proxy584 LOC (1%) 5 files
internal/stdlib548 LOC (1%) 2 files
internal/config501 LOC (1%) 2 files
internal/fetchdatasource282 LOC (<1%) 2 files
ROOT272 LOC (<1%) 2 files
cmd/frontend243 LOC (<1%) 2 files
internal/dcensus239 LOC (<1%) 2 files
internal/queue230 LOC (<1%) 1 files
deploy202 LOC (<1%) 4 files
cmd/worker187 LOC (<1%) 1 files
internal/log178 LOC (<1%) 1 files
cmd/pkgsite170 LOC (<1%) 1 files
internal/memory168 LOC (<1%) 1 files
internal/derrors158 LOC (<1%) 1 files
internal/version156 LOC (<1%) 1 files
devtools/docker128 LOC (<1%) 1 files
cmd/internal115 LOC (<1%) 1 files
static/worker82 LOC (<1%) 4 files
internal/static73 LOC (<1%) 1 files
internal/auth71 LOC (<1%) 1 files
internal/index57 LOC (<1%) 1 files
internal/poller51 LOC (<1%) 1 files
internal/experiment41 LOC (<1%) 1 files
internal/cookie40 LOC (<1%) 1 files
internal/secrets29 LOC (<1%) 1 files
static18 LOC (<1%) 2 files
internal/xcontext11 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-02-03 02:05