apple / swift-corelibs-foundation
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 (33 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 33 components.
  • 732 files, 217,378 lines of code (100.0% vs. main code).
  • "Sources/Foundation" is biggest, containing 25.92% of code.
  • "Darwin/CoreFoundation-swiftoverlay-Tests" is smallest, containing 0% of code.


Sources/Foundation56336 LOC (25%) 149 files
bootstrap/x86_64-apple-darwin25844 LOC (11%) 193 files
Darwin/Foundation-swiftoverlay19460 LOC (8%) 75 files
CoreFoundation/String.subproj14832 LOC (6%) 26 files
CoreFoundation/Locale.subproj13436 LOC (6%) 27 files
CoreFoundation/Base.subproj11924 LOC (5%) 30 files
CoreFoundation/URL.subproj9997 LOC (4%) 12 files
CoreFoundation/PlugIn.subproj8798 LOC (4%) 22 files
CoreFoundation/RunLoop.subproj7998 LOC (3%) 11 files
Darwin/Foundation-swiftoverlay-Tests7230 LOC (3%) 28 files
CoreFoundation/Collections.subproj7044 LOC (3%) 22 files
Sources/FoundationNetworking7040 LOC (3%) 30 files
CoreFoundation/Parsing.subproj6475 LOC (2%) 8 files
CoreFoundation/StringEncodings.subproj5090 LOC (2%) 17 files
CoreFoundation/NumberDate.subproj3821 LOC (1%) 9 files
CoreFoundation/Stream.subproj3035 LOC (1%) 7 files
Sources/FoundationXML2179 LOC (1%) 7 files
CoreFoundation/Preferences.subproj1651 LOC (<1%) 4 files
lib1293 LOC (<1%) 9 files
Sources/BlocksRuntime654 LOC (<1%) 4 files
CoreFoundation/AppServices.subproj527 LOC (<1%) 3 files
ROOT522 LOC (<1%) 1 files
CoreFoundation/Error.subproj494 LOC (<1%) 3 files
Sources/Tools337 LOC (<1%) 1 files
Darwin/shims312 LOC (<1%) 18 files
CoreFoundation284 LOC (<1%) 2 files
cmake/modules269 LOC (<1%) 4 files
Sources/UUID231 LOC (<1%) 2 files
Darwin/CoreFoundation-swiftoverlay83 LOC (<1%) 3 files
CoreFoundation/cmake74 LOC (<1%) 1 files
CoreFoundation/Tools54 LOC (<1%) 2 files
DarwinCompatibilityTests50 LOC (<1%) 1 files
Darwin/CoreFoundation-swiftoverlay-Tests4 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 21:27