Sokrates
Components & Dependencies

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 (5 components)
Logical Decomposition #1: PRIMARY
The decompositions is based on folder structure at level 1 (relative to the source code root).
Components
The "primary" logical decomposition has 5 components.
  • 381 files, 28,660 lines of code (100.0% vs. main code).
  • "codeanalyzer" is biggest, containing 53.64% of code.
  • "cli" is smallest, containing 2.17% of code.


codeanalyzer15372 LOC (53%) 244 files
reports7118 LOC (24%) 70 files
codeexplorer3903 LOC (13%) 37 files
common1646 LOC (5%) 29 files
cli621 LOC (2%) 1 files
Alternative Visuals
Dependencies
Dependencies among components are static code dependencies among files in different components.
  • Analyzed system has 10 links (arrows) between components.
  • The number on the arrow represents the number of files from referring component that depend on files in referred component.
  • These 10 links contain 209 dependencies.
G codeexplorer codeexplorer cli cli codeexplorer->cli 1 common common codeexplorer->common 17 codeanalyzer codeanalyzer codeexplorer->codeanalyzer 22 reports reports codeexplorer->reports 1 cli->common 1 cli->codeanalyzer 1 cli->reports 1 codeanalyzer->common 83 reports->common 34 reports->codeanalyzer 48




Show more details about dependencies...




2020-09-11 16:45