Code Quality
Weight 20%55.0
avg_cc=1.43, max_cc=10, duplication=85.03%, dead_code=17
| Primary Language | .NET |
|---|---|
| Primary Framework | ASP.NET Core |
| Detected Frameworks | ASP.NET Core; Blazor; Docker Compose; Terraform / IaC; Container |
| Deployable Types | API; Database |
| Technology Stack | .NET, Docker, CI/CD, Terraform |
| Default Branch | main |
| Documentation Priority | P1 |
| Last Repository Scan | 11/23/2026, 5:34:43 PM |
| Source Repository | Open on GitHub |
4da8212117e87d808d4bbc7da6286fd2147ce606dotnet-architecture/eShopOnWeb4da8212117e87d808d4bbc7da6286fd2147ce606graph TD;
%% title: Building Block View — dotnet-architecture/eShopOnWeb
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
repo_root(["dotnet-architecture/eShopOnWeb (38 components)"]):::atlasRoot
subgraph sg_dir_0_src["src (34)"]
direction TB
dir_0_src["src (34)"]:::atlasCategory
sub_0_0_Web["Web (11)"]:::atlasWorkflow
dir_0_src --> sub_0_0_Web
sub_0_1_PublicApi["PublicApi (8)"]:::atlasWorkflow
dir_0_src --> sub_0_1_PublicApi
sub_0_2_Infrastructure["Infrastructure (6)"]:::atlasWorkflow
dir_0_src --> sub_0_2_Infrastructure
sub_0_more["+3 more submodules (9)"]:::atlasMore
dir_0_src --> sub_0_more
end
repo_root --> dir_0_src
dir_1_tests["tests (4)"]:::atlasCategory
repo_root --> dir_1_tests
dir_1_tests -.->|"3 deps"| sub_0_0_Web
sub_0_0_Web -.->|"3 deps"| sub_0_more
dir_1_tests -.->|"2 deps"| sub_0_1_PublicApi
dir_1_tests -.->|"2 deps"| sub_0_more
sub_0_0_Web -.->|"2 deps"| sub_0_2_Infrastructure
dir_1_tests -.->|"1 dep"| sub_0_2_Infrastructure
sub_0_1_PublicApi -.->|"1 dep"| sub_0_2_Infrastructure
sub_0_1_PublicApi -.->|"1 dep"| sub_0_more
sub_0_2_Infrastructure -.->|"1 dep"| sub_0_more
src/ApplicationCore/ApplicationCore.csproj): MODULE (deps: BlazorShared)src/BlazorAdmin/BlazorAdmin.csproj): MODULE (deps: BlazorShared)src/BlazorShared/BlazorShared.csproj): MODULEsrc/Infrastructure/Infrastructure.csproj): MODULE (deps: ApplicationCore)src/PublicApi/PublicApi.csproj): MODULE (deps: ApplicationCore, Infrastructure)src/Web/Web.csproj): MODULE (deps: ApplicationCore, BlazorAdmin, BlazorShared, Infrastructure)tests/FunctionalTests/FunctionalTests.csproj): MODULE (deps: ApplicationCore, PublicApi, Web)tests/IntegrationTests/IntegrationTests.csproj): MODULE (deps: Infrastructure, UnitTests)tests/PublicApiIntegrationTests/PublicApiIntegrationTests.csproj): MODULE (deps: PublicApi, Web)tests/UnitTests/UnitTests.csproj): MODULE (deps: ApplicationCore, Web)src/ApplicationCore/Services/BasketService.cs): SERVICEsrc/ApplicationCore/Services/OrderService.cs): SERVICEsrc/BlazorAdmin/Services/CatalogItemService.cs): SERVICE (deps: CatalogLookupDataService, HttpService)src/BlazorAdmin/Services/CatalogLookupDataService.cs): SERVICEsrc/BlazorAdmin/Services/HttpService.cs): SERVICE (deps: ToastService)src/BlazorAdmin/Services/ToastService.cs): SERVICEsrc/Infrastructure/Data/CatalogContext.cs): DATA_ACCESS_LAYERsrc/Infrastructure/Data/EfRepository.cs): DATA_ACCESS_LAYER (deps: CatalogContext)src/Infrastructure/Data/Queries/BasketQueryService.cs): SERVICE (deps: CatalogContext)src/Infrastructure/Identity/AppIdentityDbContext.cs): DATA_ACCESS_LAYERsrc/Infrastructure/Identity/IdentityTokenClaimService.cs): SERVICEsrc/PublicApi/CatalogBrandEndpoints/CatalogBrandListEndpoint.cs): API_ROUTEsrc/PublicApi/CatalogItemEndpoints/CatalogItemGetByIdEndpoint.cs): API_ROUTEsrc/PublicApi/CatalogItemEndpoints/CatalogItemListPagedEndpoint.cs): API_ROUTEsrc/PublicApi/CatalogItemEndpoints/CreateCatalogItemEndpoint.cs): API_ROUTEsrc/PublicApi/CatalogItemEndpoints/DeleteCatalogItemEndpoint.cs): API_ROUTEsrc/PublicApi/CatalogItemEndpoints/UpdateCatalogItemEndpoint.cs): API_ROUTEsrc/PublicApi/CatalogTypeEndpoints/CatalogTypeListEndpoint.cs): API_ROUTEsrc/Web/Controllers/ManageController.cs): API_ROUTEsrc/Web/Controllers/OrderController.cs): API_ROUTEsrc/Web/Controllers/UserController.cs): API_ROUTEsrc/Web/Controllers/Api/BaseApiController.cs): API_ROUTEsrc/Web/Features/MyOrders/GetMyOrdersHandler.cs): SERVICEsrc/Web/Features/OrderDetails/GetOrderDetailsHandler.cs): SERVICEsrc/Web/Services/BasketViewModelService.cs): SERVICE (deps: BasketQueryService)src/Web/Services/CachedCatalogViewModelService.cs): SERVICE (deps: CatalogViewModelService)src/Web/Services/CatalogItemViewModelService.cs): SERVICEsrc/Web/Services/CatalogViewModelService.cs): SERVICEF (59.02/100)| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 55.00 | 0.20 | avg_cc=1.43, max_cc=10, duplication=85.03%, dead_code=17 |
| Dependency Health | C | 79.16 | 0.15 | dependencies=77, outdated=0, vulnerable=9, has_lockfile=False |
| Maintainability | B | 89.00 | 0.15 | avg_cognitive=0.45, max_cognitive=9, fitness_violations=1, oversized_files=1 |
| Pipeline Health | B | 82.00 | 0.15 | workflows=2, operational_antipatterns=4, parallel_branches=False |
| Security | F | 0.00 | 0.20 | vulnerabilities=14, secrets=0, pipeline_security_findings=3 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository duplication_pct (85.03) exceeds policy threshold (15.0).GHSA-59j7-ghrg-fj52 System.IdentityModel.Tokens.Jwt “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-59j7-ghrg-fj52 System.IdentityModel.Tokens.Jwt “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-59j7-ghrg-fj52 System.IdentityModel.Tokens.Jwt “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-5mfx-4wcx-rv27 Azure.Identity “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-8g4q-xg66-9fp4 System.Text.Json “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-cpw3-h88j-9f6x System.Text.Json “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-g27p-qf6j-c96c Microsoft.AspNetCore.Components.WebAssembly.Server “ (fixed: none, UNREACHABLE_DORMANT)GHSA-hh2w-p6rv-4g7w System.Text.Json “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-m5vv-6r4h-3vj9 Azure.Identity “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-q7cg-43mg-qp69 Microsoft.AspNetCore.Authentication.JwtBearer “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-q7cg-43mg-qp69 Microsoft.AspNetCore.Authentication.JwtBearer “ (fixed: none, REACHABLE_FROM_RUNTIME)GHSA-qjpx-jqm5-h2c4 Microsoft.AspNetCore.Components.WebAssembly.Server “ (fixed: none, UNREACHABLE_DORMANT)GHSA-qrmm-w75w-3wpx Swashbuckle.AspNetCore.SwaggerUI “ (fixed: none, UNREACHABLE_DORMANT)GHSA-wvxc-855f-jvrv Azure.Identity “ (fixed: none, REACHABLE_FROM_RUNTIME)Ardalis.ApiEndpoints * (NuGet, src/PublicApi/PublicApi.csproj)Ardalis.GuardClauses * (NuGet, src/ApplicationCore/ApplicationCore.csproj)Ardalis.ListStartupServices * (NuGet, src/Web/Web.csproj)Ardalis.Result * (NuGet, src/ApplicationCore/ApplicationCore.csproj)Ardalis.Specification * (NuGet, src/ApplicationCore/ApplicationCore.csproj)Ardalis.Specification * (NuGet, src/Web/Web.csproj)Ardalis.Specification.EntityFrameworkCore * (NuGet, src/Infrastructure/Infrastructure.csproj)AutoMapper.Extensions.Microsoft.DependencyInjection * (NuGet, src/PublicApi/PublicApi.csproj)AutoMapper.Extensions.Microsoft.DependencyInjection * (NuGet, src/Web/Web.csproj)Azure.Extensions.AspNetCore.Configuration.Secrets * (NuGet, src/Web/Web.csproj)Azure.Identity * (NuGet, src/Web/Web.csproj)BlazorInputFile * (NuGet, src/BlazorAdmin/BlazorAdmin.csproj)BlazorInputFile * (NuGet, src/BlazorShared/BlazorShared.csproj)Blazored.LocalStorage * (NuGet, src/BlazorAdmin/BlazorAdmin.csproj)BuildBundlerMinifier * (NuGet, src/Web/Web.csproj)FluentValidation * (NuGet, src/BlazorShared/BlazorShared.csproj)MSTest.TestAdapter * (NuGet, tests/PublicApiIntegrationTests/PublicApiIntegrationTests.csproj)MSTest.TestFramework * (NuGet, tests/PublicApiIntegrationTests/PublicApiIntegrationTests.csproj)MediatR * (NuGet, src/Web/Web.csproj)Microsoft.AspNetCore.Authentication.JwtBearer * (NuGet, src/PublicApi/PublicApi.csproj)Microsoft.AspNetCore.Authentication.JwtBearer * (NuGet, src/Web/Web.csproj)Microsoft.AspNetCore.Components.Authorization * (NuGet, src/BlazorAdmin/BlazorAdmin.csproj)Microsoft.AspNetCore.Components.WebAssembly * (NuGet, src/BlazorAdmin/BlazorAdmin.csproj)Microsoft.AspNetCore.Components.WebAssembly.Authentication * (NuGet, src/BlazorAdmin/BlazorAdmin.csproj)Microsoft.AspNetCore.Components.WebAssembly.DevServer * (NuGet, src/BlazorAdmin/BlazorAdmin.csproj)Microsoft.AspNetCore.Components.WebAssembly.Server * (NuGet, src/Web/Web.csproj)Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore * (NuGet, src/PublicApi/PublicApi.csproj)Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore * (NuGet, src/Web/Web.csproj)Microsoft.AspNetCore.Identity.EntityFrameworkCore * (NuGet, src/Infrastructure/Infrastructure.csproj)Microsoft.AspNetCore.Identity.EntityFrameworkCore * (NuGet, src/PublicApi/PublicApi.csproj)flowchart LR
%% title: Code-to-Cloud Deployment Traceability
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
subgraph code_modules["Code Modules"]
mod_30f46da6_9d9c_4c57_91d5_38df77790727["30f46da6-9d9c-4c57-91d5-38df77790727"]:::atlasCategory
mod_src_PublicApi["src/PublicApi"]:::atlasCategory
mod_src_Web["src/Web"]:::atlasCategory
end
subgraph build_artifacts["Build Artifacts / Containers"]
art_docker_compose_override_yml["docker-compose.override.yml"]:::atlasWorkflow
art_docker_compose_yml["docker-compose.yml"]:::atlasWorkflow
art_infra_core_host_appservice_bicep["infra/core/host/appservice.bicep"]:::atlasWorkflow
art_infra_core_host_appserviceplan_bicep["infra/core/host/appserviceplan.bicep"]:::atlasWorkflow
art_infra_main_bicep["infra/main.bicep"]:::atlasWorkflow
art_src_PublicApi_Dockerfile["src/PublicApi/Dockerfile"]:::atlasWorkflow
art_src_Web_Dockerfile["src/Web/Dockerfile"]:::atlasWorkflow
end
mod_30f46da6_9d9c_4c57_91d5_38df77790727 -->|PACKAGED_BY| art_docker_compose_override_yml
mod_30f46da6_9d9c_4c57_91d5_38df77790727 -->|PACKAGED_BY| art_docker_compose_yml
mod_src_PublicApi -->|PACKAGED_BY| art_docker_compose_yml
mod_src_PublicApi -->|PACKAGED_BY| art_src_PublicApi_Dockerfile
mod_src_Web -->|PACKAGED_BY| art_docker_compose_yml
mod_src_Web -->|PACKAGED_BY| art_src_Web_Dockerfile
mod_src_Web -->|PACKAGED_BY| art_infra_core_host_appservice_bicep
mod_src_Web -->|PACKAGED_BY| art_infra_core_host_appserviceplan_bicep
mod_src_Web -->|PACKAGED_BY| art_infra_main_bicep
art_src_Web_Dockerfile -->|PACKAGED_BY| art_infra_core_host_appservice_bicep
art_src_Web_Dockerfile -->|PACKAGED_BY| art_infra_core_host_appserviceplan_bicep
art_src_Web_Dockerfile -->|PACKAGED_BY| art_infra_main_bicep
30f46da6-9d9c-4c57-91d5-38df77790727 (code_module) —[PACKAGED_BY]—> docker-compose.override.yml (container)30f46da6-9d9c-4c57-91d5-38df77790727 (code_module) —[PACKAGED_BY]—> docker-compose.yml (container)src/PublicApi (code_module) —[PACKAGED_BY]—> docker-compose.yml (container)src/PublicApi (code_module) —[PACKAGED_BY]—> src/PublicApi/Dockerfile (container)src/Web (code_module) —[PACKAGED_BY]—> docker-compose.yml (container)src/Web (code_module) —[PACKAGED_BY]—> src/Web/Dockerfile (container)src/Web (code_module) —[PACKAGED_BY]—> infra/core/host/appservice.bicep (iac)src/Web (code_module) —[PACKAGED_BY]—> infra/core/host/appserviceplan.bicep (iac)src/Web (code_module) —[PACKAGED_BY]—> infra/main.bicep (iac)src/Web/Dockerfile (container) —[PACKAGED_BY]—> infra/core/host/appservice.bicep (iac)src/Web/Dockerfile (container) —[PACKAGED_BY]—> infra/core/host/appserviceplan.bicep (iac)src/Web/Dockerfile (container) —[PACKAGED_BY]—> infra/main.bicep (iac)graph TD;
%% title: CI/CD Pipeline Topology — dotnet-architecture/eShopOnWeb
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["dotnet-architecture/eShopOnWeb"]):::atlasRoot
subgraph eShopOnWeb_Build_and_Test_0["eShopOnWeb Build and Test"]
direction TB
0_build["build"]:::atlasJob
end
pipeline_root --> 0_build
subgraph eShopOnWeb___Code_Index_1["eShopOnWeb - Code Index"]
direction TB
1_build["build"]:::atlasJob
end
pipeline_root --> 1_buildavg_cc=1.43, max_cc=10, duplication=85.03%, dead_code=17
vulnerabilities=14, secrets=0, pipeline_security_findings=3
avg_cognitive=0.45, max_cognitive=9, fitness_violations=1, oversized_files=1
coverage=unavailable, ci_test_job=True, test_files_detected=True
dependencies=77, outdated=0, vulnerable=9, has_lockfile=False
workflows=2, operational_antipatterns=4, parallel_branches=False
DetailsClicksrc/BlazorAdmin/Pages/CatalogItemPage/List.razor.cs:43CreateClicksrc/BlazorAdmin/Pages/CatalogItemPage/List.razor.cs:48EditClicksrc/BlazorAdmin/Pages/CatalogItemPage/List.razor.cs:53DeleteClicksrc/BlazorAdmin/Pages/CatalogItemPage/List.razor.cs:58ReloadCatalogItemssrc/BlazorAdmin/Pages/CatalogItemPage/List.razor.cs:63InitialModelsrc/Infrastructure/Data/Migrations/20201202111507_InitialModel.Designer.cs:12BuildTargetModelsrc/Infrastructure/Data/Migrations/20201202111507_InitialModel.Designer.cs:16FixBuyerIdsrc/Infrastructure/Data/Migrations/20211026175614_FixBuyerId.Designer.cs:12BuildTargetModelsrc/Infrastructure/Data/Migrations/20211026175614_FixBuyerId.Designer.cs:16FixShipToAddresssrc/Infrastructure/Data/Migrations/20211231093753_FixShipToAddress.Designer.cs:14BuildTargetModelsrc/Infrastructure/Data/Migrations/20211231093753_FixShipToAddress.Designer.cs:18CatalogContextModelSnapshotsrc/Infrastructure/Data/Migrations/CatalogContextModelSnapshot.cs:13ATRUSS-ARCH-005COMPLEXITY_THRESHOLDsrc/Web/Controllers/ManageController.cs:1Repository duplication_pct (85.03) exceeds policy threshold (15.0).
| Severity | Advisory | Package | Installed / Fixed | Reachability | Summary |
|---|---|---|---|---|---|
| MEDIUM | GHSA-8g4q-xg66-9fp4 | System.Text.Jsonsrc/ApplicationCore/ApplicationCore.csproj:13 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-cpw3-h88j-9f6x | System.Text.Jsonsrc/ApplicationCore/ApplicationCore.csproj:13 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-hh2w-p6rv-4g7w | System.Text.Jsonsrc/ApplicationCore/ApplicationCore.csproj:13 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-59j7-ghrg-fj52 | System.IdentityModel.Tokens.Jwtsrc/Infrastructure/Infrastructure.csproj:13 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-qrmm-w75w-3wpx | Swashbuckle.AspNetCore.SwaggerUIsrc/PublicApi/PublicApi.csproj:16 | — → No fix | UNREACHABLE_DORMANT | — |
| MEDIUM | GHSA-q7cg-43mg-qp69 | Microsoft.AspNetCore.Authentication.JwtBearersrc/PublicApi/PublicApi.csproj:18 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-59j7-ghrg-fj52 | System.IdentityModel.Tokens.Jwtsrc/PublicApi/PublicApi.csproj:31 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-5mfx-4wcx-rv27 | Azure.Identitysrc/Web/Web.csproj:20 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-m5vv-6r4h-3vj9 | Azure.Identitysrc/Web/Web.csproj:20 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-wvxc-855f-jvrv | Azure.Identitysrc/Web/Web.csproj:20 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-g27p-qf6j-c96c | Microsoft.AspNetCore.Components.WebAssembly.Serversrc/Web/Web.csproj:23 | — → No fix | UNREACHABLE_DORMANT | — |
| MEDIUM | GHSA-qjpx-jqm5-h2c4 | Microsoft.AspNetCore.Components.WebAssembly.Serversrc/Web/Web.csproj:23 | — → No fix | UNREACHABLE_DORMANT | — |
| MEDIUM | GHSA-q7cg-43mg-qp69 | Microsoft.AspNetCore.Authentication.JwtBearersrc/Web/Web.csproj:31 | — → No fix | REACHABLE_FROM_RUNTIME | — |
| MEDIUM | GHSA-59j7-ghrg-fj52 | System.IdentityModel.Tokens.Jwtsrc/Web/Web.csproj:36 | — → No fix | REACHABLE_FROM_RUNTIME | — |
No hardcoded secret patterns detected.
Single-package repository or no monorepo workspace manifests.