microsoft / sarif-sdk
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 (28 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 28 components.
  • 1,005 files, 122,574 lines of code (55.9% vs. main code).
  • "src/Sarif" is biggest, containing 34.43% of code.
  • "npm/sarif-multitool" is smallest, containing 0% of code.


src/Sarif42198 LOC (19%) 406 files
src/Test.FunctionalTests.Sarif34740 LOC (15%) 109 files
src/Test.UnitTests.Sarif12598 LOC (5%) 95 files
src/Sarif.Converters8760 LOC (3%) 89 files
src/Sarif.Multitool.Library4926 LOC (2%) 76 files
src/Sarif.Driver4161 LOC (1%) 50 files
src/Test.UnitTests.Sarif.Converters3870 LOC (1%) 27 files
src/Test.UnitTests.Sarif.Driver3062 LOC (1%) 24 files
src/Test.UnitTests.Sarif.Multitool.Library1562 LOC (<1%) 16 files
src/Test.Utilities.Sarif1204 LOC (<1%) 17 files
src/WorkItems1042 LOC (<1%) 27 files
src/Test.EndToEnd.Baselining891 LOC (<1%) 15 files
src/Sarif.WorkItems872 LOC (<1%) 5 files
src/Test.UnitTests.Sarif.WorkItems784 LOC (<1%) 4 files
scripts669 LOC (<1%) 11 files
src/Test.UnitTests.Sarif.Multitool321 LOC (<1%) 2 files
src/Test.UnitTests.WorkItems219 LOC (<1%) 4 files
src/ESLint.Formatter209 LOC (<1%) 3 files
src/Sarif.Multitool148 LOC (<1%) 5 files
src136 LOC (<1%) 2 files
ROOT101 LOC (<1%) 6 files
src/TypeScript36 LOC (<1%) 2 files
src/Test.Plugins23 LOC (<1%) 1 files
src/Shared18 LOC (<1%) 1 files
npm/sarif-multitool-darwin6 LOC (<1%) 2 files
npm/sarif-multitool-linux6 LOC (<1%) 2 files
npm/sarif-multitool-win326 LOC (<1%) 2 files
npm/sarif-multitool6 LOC (<1%) 2 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 11:14