microsoft / Partner-Center-DotNet-Samples
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 (40 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 40 components.
  • 220 files, 8,371 lines of code (100.0% vs. main code).
  • "sdk/SdkSamples" is biggest, containing 9.92% of code.
  • "sdk/SdkSamples/Properties" is smallest, containing 0.18% of code.


sdk/SdkSamples830 LOC (9%) 5 files
sdk/SdkSamples/Invoice614 LOC (7%) 11 files
sdk/SdkSamples/Subscriptions612 LOC (7%) 17 files
sdk/SdkSamples/CustomerUser512 LOC (6%) 17 files
secure-app-model/keyvault/CSPApplication469 LOC (5%) 9 files
sdk/SdkSamples/Configuration464 LOC (5%) 6 files
sdk/SdkSamples/Customers413 LOC (4%) 15 files
sdk/SdkSamples/Agreements373 LOC (4%) 7 files
secure-app-model/keyvault/PartnerConsent347 LOC (4%) 16 files
secure-app-model/keyvault/CPVApplication332 LOC (3%) 5 files
sdk/SdkSamples/DevicesDeployment294 LOC (3%) 11 files
sdk/SdkSamples/Products273 LOC (3%) 12 files
sdk/SdkSamples/Orders250 LOC (2%) 8 files
sdk/SdkSamples/Carts239 LOC (2%) 5 files
sdk/SdkSamples/IndirectModel231 LOC (2%) 7 files
sdk/SdkSamples/Helpers207 LOC (2%) 1 files
sdk/SdkSamples/CustomerProducts197 LOC (2%) 9 files
sdk/SdkSamples/Profile197 LOC (2%) 9 files
sdk/SdkSamples/Auditing187 LOC (2%) 4 files
sdk/SdkSamples/ServiceRequests141 LOC (1%) 4 files
sdk/SdkSamples/Offers139 LOC (1%) 6 files
sdk/SdkSamples/Context105 LOC (1%) 1 files
sdk/SdkSamples/Validations98 LOC (1%) 2 files
sdk/SdkSamples/CustomerDirectoryRoles94 LOC (1%) 4 files
sdk/SdkSamples/SelfServePolicies92 LOC (1%) 3 files
sdk/SdkSamples/ScenarioExecution91 LOC (1%) 3 files
sdk/SdkSamples/RatedUsage77 LOC (<1%) 4 files
sdk/SdkSamples/Analytics74 LOC (<1%) 4 files
sdk/SdkSamples/IndirectPartners49 LOC (<1%) 2 files
ROOT47 LOC (<1%) 1 files
sdk/SdkSamples/Entitlements47 LOC (<1%) 1 files
sdk/SdkSamples/PromotionEligibilities44 LOC (<1%) 1 files
sdk/SdkSamples/CustomerServiceCosts40 LOC (<1%) 2 files
sdk/SdkSamples/NewCommerceMigrations39 LOC (<1%) 1 files
sdk/SdkSamples/Utilization38 LOC (<1%) 1 files
sdk/SdkSamples/RateCards36 LOC (<1%) 2 files
sdk/SdkSamples/Compliance22 LOC (<1%) 1 files
sdk/SdkSamples/CustomerSubscribedSkus21 LOC (<1%) 1 files
sdk/SdkSamples/ServiceIncidents21 LOC (<1%) 1 files
sdk/SdkSamples/Properties15 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