firebase / functions-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 (45 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 45 components.
  • 118 files, 6,319 lines of code (100.0% vs. main code).
  • "stripe" is biggest, containing 7.58% of code.
  • "lastmodified-tracking" is smallest, containing 0.09% of code.


stripe479 LOC (7%) 3 files
image-maker443 LOC (7%) 5 files
quickstarts400 LOC (6%) 14 files
linkedin-auth358 LOC (5%) 6 files
fcm-notifications355 LOC (5%) 5 files
instagram-auth348 LOC (5%) 6 files
authenticated-json-api333 LOC (5%) 4 files
paypal318 LOC (5%) 6 files
spotify-auth311 LOC (4%) 6 files
fulltext-search-firestore307 LOC (4%) 5 files
okta-auth296 LOC (4%) 3 files
text-moderation266 LOC (4%) 4 files
username-password-auth251 LOC (3%) 4 files
email-confirmation227 LOC (3%) 4 files
authorized-https-endpoint210 LOC (3%) 4 files
exif-images185 LOC (2%) 4 files
template-handlebars120 LOC (1%) 5 files
presence-firestore116 LOC (1%) 3 files
google-sheet-sync86 LOC (1%) 1 files
testlab-to-slack66 LOC (1%) 1 files
coupon-on-purchase63 LOC (<1%) 1 files
generate-thumbnail60 LOC (<1%) 1 files
moderate-images53 LOC (<1%) 1 files
publish-model51 LOC (<1%) 1 files
youtube49 LOC (<1%) 1 files
ROOT47 LOC (<1%) 1 files
ffmpeg-convert-audio47 LOC (<1%) 1 files
remote-config-diff46 LOC (<1%) 1 files
delete-unused-accounts-cron43 LOC (<1%) 1 files
github-to-slack40 LOC (<1%) 1 files
convert-images38 LOC (<1%) 1 files
image-sharp34 LOC (<1%) 1 files
survey-app-update34 LOC (<1%) 1 files
message-translation32 LOC (<1%) 1 files
fulltext-search29 LOC (<1%) 1 files
child-count28 LOC (<1%) 1 files
developer-motivator25 LOC (<1%) 1 files
assistant-say-number25 LOC (<1%) 1 files
limit-children18 LOC (<1%) 1 files
delete-old-child-nodes17 LOC (<1%) 1 files
minimal-webhook17 LOC (<1%) 1 files
vision-annotate-images16 LOC (<1%) 1 files
bigquery-import13 LOC (<1%) 1 files
url-shortener13 LOC (<1%) 1 files
lastmodified-tracking6 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-02-03 05:35