aws / copilot-cli
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 (30 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 30 components.
  • 388 files, 60,527 lines of code (76.7% vs. main code).
  • "internal/pkg/cli" is biggest, containing 34.99% of code.
  • "internal/pkg/version" is smallest, containing 0% of code.


internal/pkg/cli21181 LOC (26%) 72 files
internal/pkg/template6375 LOC (8%) 64 files
internal/pkg/aws5975 LOC (7%) 65 files
internal/pkg/deploy5424 LOC (6%) 34 files
internal/pkg/manifest3751 LOC (4%) 14 files
internal/pkg/describe3689 LOC (4%) 26 files
internal/pkg/term3561 LOC (4%) 31 files
cf-custom-resources/lib3045 LOC (3%) 10 files
site/overrides/layouts1043 LOC (1%) 2 files
internal/pkg/ecs917 LOC (1%) 5 files
internal/pkg/addon854 LOC (1%) 6 files
internal/pkg/config657 LOC (<1%) 6 files
internal/pkg/docker655 LOC (<1%) 6 files
internal/pkg/initialize536 LOC (<1%) 2 files
internal/pkg/workspace439 LOC (<1%) 2 files
internal/pkg/task431 LOC (<1%) 5 files
internal/pkg/stream383 LOC (<1%) 3 files
internal/pkg/exec377 LOC (<1%) 13 files
internal/pkg/logging341 LOC (<1%) 5 files
ROOT185 LOC (<1%) 1 files
internal/pkg/apprunner163 LOC (<1%) 2 files
internal/pkg/repository161 LOC (<1%) 2 files
cmd/copilot/template91 LOC (<1%) 2 files
site/overrides/partials89 LOC (<1%) 2 files
internal/pkg/graph71 LOC (<1%) 1 files
cmd/copilot69 LOC (<1%) 3 files
internal/pkg/ini30 LOC (<1%) 1 files
site/content/stylesheets23 LOC (<1%) 1 files
cf-custom-resources9 LOC (<1%) 1 files
internal/pkg/version2 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-31 15:09