apple / swift-docc
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 (26 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 26 components.
  • 419 files, 27,994 lines of code (84.1% vs. main code).
  • "Sources/SwiftDocC/Model" is biggest, containing 27.01% of code.
  • "Sources/DocCDocumentation" is smallest, containing 0% of code.


Sources/SwiftDocC/Model7562 LOC (22%) 117 files
Sources/SwiftDocC/Infrastructure6720 LOC (20%) 63 files
Sources/SwiftDocC/Semantics3909 LOC (11%) 67 files
Sources/SwiftDocC/Indexing2129 LOC (6%) 15 files
Sources/SwiftDocC/Utility1431 LOC (4%) 50 files
Sources/SwiftDocCUtilities/Action964 LOC (2%) 11 files
Sources/SwiftDocC/Checker754 LOC (2%) 9 files
Sources/SwiftDocCUtilities/ArgumentParsing707 LOC (2%) 20 files
Sources/SwiftDocC/DocumentationService575 LOC (1%) 14 files
Sources/SwiftDocCUtilities/PreviewServer427 LOC (1%) 7 files
Sources/SwiftDocC/Converter421 LOC (1%) 11 files
Sources/SwiftDocC/Coverage358 LOC (1%) 1 files
ROOT327 LOC (<1%) 2 files
Sources/SwiftDocCUtilities/Utility307 LOC (<1%) 8 files
Sources/SwiftDocC/LinkTargets285 LOC (<1%) 1 files
Sources/SwiftDocC/Benchmark250 LOC (<1%) 8 files
Sources/SwiftDocCTestUtilities225 LOC (<1%) 2 files
Sources/SwiftDocC/Servers215 LOC (<1%) 2 files
Sources/generate-symbol-graph202 LOC (<1%) 1 files
Sources/SwiftDocCUtilities/Transformers95 LOC (<1%) 1 files
Sources/DocCDocumentation/DocCDocumentation.docc39 LOC (<1%) 2 files
Sources/SwiftDocC/SwiftDocC.docc39 LOC (<1%) 2 files
Sources/SwiftDocCUtilities/SwiftDocCUtilities.docc39 LOC (<1%) 2 files
Sources/SwiftDocCUtilities7 LOC (<1%) 1 files
Sources/docc6 LOC (<1%) 1 files
Sources/DocCDocumentation1 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 22:05