microsoft / pxt-arcade
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 (30 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 30 components.
  • 98 files, 9,866 lines of code (100.0% vs. main code).
  • "share/src" is biggest, containing 67.12% of code.
  • "libs/blocksprj" is smallest, containing 0.01% of code.


share/src6622 LOC (67%) 42 files
libs/device832 LOC (8%) 17 files
libs/hw---vm515 LOC (5%) 2 files
libs/sevenseg296 LOC (3%) 1 files
libs/hw---rpi268 LOC (2%) 3 files
docfiles267 LOC (2%) 2 files
libs/corgio223 LOC (2%) 1 files
editor170 LOC (1%) 1 files
libs/template151 LOC (1%) 2 files
theme121 LOC (1%) 3 files
libs/darts91 LOC (<1%) 1 files
ROOT70 LOC (<1%) 1 files
scripts62 LOC (<1%) 2 files
libs/storage33 LOC (<1%) 2 files
libs/screen---st773528 LOC (<1%) 2 files
libs/hw---n326 LOC (<1%) 1 files
libs/screen16 LOC (<1%) 2 files
libs/screen---ext14 LOC (<1%) 1 files
libs/screen---linux14 LOC (<1%) 1 files
share/public14 LOC (<1%) 1 files
libs/game8 LOC (<1%) 1 files
libs/rotary-encoder6 LOC (<1%) 1 files
libs/servo5 LOC (<1%) 1 files
libs/hw4 LOC (<1%) 1 files
libs/hw---n42 LOC (<1%) 1 files
libs/hw---samd512 LOC (<1%) 1 files
libs/hw---stm32f4012 LOC (<1%) 1 files
libs/light2 LOC (<1%) 1 files
libs/base1 LOC (<1%) 1 files
libs/blocksprj1 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 15:33