Code Quality
Weight 20%avg_cc=3.30, max_cc=35, duplication=71.70%, dead_code=1
| Primary Language | JavaScript/TypeScript |
|---|---|
| Primary Framework | Next.js |
| Detected Frameworks | Next.js; React (Vite); React; TypeScript |
| Deployable Types | API; Frontend |
| Technology Stack | JavaScript/TypeScript, CI/CD |
| Default Branch | main |
| Documentation Priority | P1 |
| Last Repository Scan | 11/15/2026, 5:15:17 AM |
| Source Repository | Open on GitHub |
44f2979627d8b9dac3336ee039a99a433f4c3123medusajs/dtc-starter44f2979627d8b9dac3336ee039a99a433f4c3123graph TD;
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(["medusajs/dtc-starter (48 components)"]):::atlasRoot
subgraph sg_dir_0_apps["apps (47)"]
direction TB
dir_0_apps["apps (47)"]:::atlasCategory
sub_0_0_storefront["storefront (44)"]:::atlasWorkflow
dir_0_apps --> sub_0_0_storefront
sub_0_1_backend["backend (3)"]:::atlasWorkflow
dir_0_apps --> sub_0_1_backend
end
repo_root --> dir_0_apps
dir_1__root_["(root) (1)"]:::atlasCategory
repo_root --> dir_1__root_
apps/backend/package.json): MODULEapps/storefront/package.json): MODULEpackage.json): MODULEapps/backend/src/api/admin/custom/route.ts): API_ROUTEapps/backend/src/api/store/custom/route.ts): API_ROUTEapps/storefront/src/app/layout.tsx): UI_COMPONENTapps/storefront/src/app/not-found.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(checkout)/layout.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/not-found.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/account/loading.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/account/@dashboard/default.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/account/@dashboard/loading.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/account/@login/page.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/cart/loading.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/cart/not-found.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/contact/page.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/order/[id]/confirmed/loading.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/privacy/page.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/terms/page.tsx): UI_COMPONENTapps/storefront/src/app/[countryCode]/(main)/verify-account/page.tsx): UI_COMPONENTapps/storefront/src/app/api/payment-return/route.ts): API_ROUTEapps/storefront/src/lib/context/modal-context.tsx): UI_COMPONENTapps/storefront/src/modules/account/components/transfer-request-form/index.tsx): UI_COMPONENTapps/storefront/src/modules/categories/templates/index.tsx): UI_COMPONENTapps/storefront/src/modules/checkout/components/payment-container/index.tsx): UI_COMPONENT (deps: StripeContext)apps/storefront/src/modules/checkout/components/payment-wrapper/stripe-wrapper.tsx): UI_COMPONENTapps/storefront/src/modules/checkout/components/submit-button/index.tsx): UI_COMPONENTapps/storefront/src/modules/collections/templates/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/common/components/ui/index.tsx): UI_COMPONENTapps/storefront/src/modules/policies/templates/index.tsx): UI_COMPONENTapps/storefront/src/modules/policies/templates/index.tsx): UI_COMPONENTapps/storefront/src/modules/policies/templates/index.tsx): UI_COMPONENTapps/storefront/src/modules/policies/templates/index.tsx): UI_COMPONENTapps/storefront/src/modules/products/components/product-actions/index.tsx): UI_COMPONENTapps/storefront/src/modules/products/components/product-price/index.tsx): UI_COMPONENTapps/storefront/src/modules/shipping/components/free-shipping-price-nudge/index.tsx): UI_COMPONENTapps/storefront/src/modules/store/components/pagination/index.tsx): UI_COMPONENTC (70.31/100)| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 46.80 | 0.20 | avg_cc=3.30, max_cc=35, duplication=71.70%, dead_code=1 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=1730, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | F | 52.00 | 0.15 | avg_cognitive=2.60, max_cognitive=46, fitness_violations=3, oversized_files=1 |
| Pipeline Health | A | 97.00 | 0.15 | workflows=1, operational_antipatterns=1, parallel_branches=False |
| Security | B | 88.00 | 0.20 | vulnerabilities=0, secrets=0, pipeline_security_findings=1 |
| Test Coverage | F | 40.00 | 0.15 | coverage=unavailable, ci_test_job=False, test_files_detected=False |
ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository duplication_pct (71.7) exceeds policy threshold (15.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cognitive_complexity (46.0) exceeds policy threshold (25.0).ATRUSS-ARCH-005 (COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (35.0) exceeds policy threshold (20.0).apps/backend, react_ts_js, pnpm)apps/storefront, react_ts_js, pnpm)@adyen/adyen-web 6.46.0 (npm, apps/storefront/package.json)@adyen/adyen-web 6.48.0 (npm, pnpm-lock.yaml)@babel/core 7.17.5 (npm, apps/storefront/package.json)@babel/core 7.29.7 (npm, pnpm-lock.yaml)@headlessui/react 2.2.0 (npm, apps/storefront/package.json)@headlessui/react 2.2.10 (npm, pnpm-lock.yaml)@medusajs/admin-sdk 2.22.7 (npm, apps/backend/package.json)@medusajs/admin-sdk 2.22.7 (npm, pnpm-lock.yaml)@medusajs/admin-shared 2.22.7 (npm, apps/backend/package.json)@medusajs/admin-shared 2.22.7 (npm, pnpm-lock.yaml)@medusajs/caching 2.22.7 (npm, apps/backend/package.json)@medusajs/caching 2.22.7 (npm, pnpm-lock.yaml)@medusajs/cli 2.22.7 (npm, apps/backend/package.json)@medusajs/cli 2.22.7 (npm, pnpm-lock.yaml)@medusajs/dashboard 2.22.7 (npm, apps/backend/package.json)@medusajs/dashboard 2.22.7 (npm, pnpm-lock.yaml)@medusajs/draft-order 2.22.7 (npm, apps/backend/package.json)@medusajs/draft-order 2.22.7 (npm, pnpm-lock.yaml)@medusajs/eslint-plugin 2.22.7 (npm, package.json)@medusajs/eslint-plugin 2.22.7 (npm, pnpm-lock.yaml)@medusajs/framework 2.22.7 (npm, apps/backend/package.json)@medusajs/framework 2.22.7 (npm, pnpm-lock.yaml)@medusajs/icons 2.22.2 (npm, pnpm-lock.yaml)@medusajs/icons 2.22.7 (npm, apps/storefront/package.json)@medusajs/icons 2.22.7 (npm, pnpm-lock.yaml)@medusajs/instantsearch-adapter 2.22.7 (npm, apps/storefront/package.json)@medusajs/instantsearch-adapter 2.22.7 (npm, pnpm-lock.yaml)@medusajs/js-sdk 2.22.7 (npm, apps/storefront/package.json)@medusajs/js-sdk 2.22.7 (npm, pnpm-lock.yaml)@medusajs/medusa 2.22.7 (npm, apps/backend/package.json)graph TD;
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
subgraph Update_Medusa_0["Update Medusa"]
direction TB
0_update["update"]:::atlasJob
endavg_cc=3.30, max_cc=35, duplication=71.70%, dead_code=1
vulnerabilities=0, secrets=0, pipeline_security_findings=1
avg_cognitive=2.60, max_cognitive=46, fitness_violations=3, oversized_files=1
coverage=unavailable, ci_test_job=False, test_files_detected=False
dependencies=1730, outdated=0, vulnerable=0, has_lockfile=True
workflows=1, operational_antipatterns=1, parallel_branches=False
rewritesapps/storefront/next.config.js:28ATRUSS-ARCH-005COMPLEXITY_THRESHOLDapps/storefront/src/lib/ucp/operations.ts:1Repository duplication_pct (71.7) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDapps/storefront/src/lib/ucp/operations.ts:1Repository max_cognitive_complexity (46.0) exceeds policy threshold (25.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDapps/storefront/src/lib/ucp/operations.ts:1Repository max_cyclomatic_complexity (35.0) exceeds policy threshold (20.0).
No known OSV vulnerabilities detected across 1730 parsed dependencies.
No hardcoded secret patterns detected.
apps/backendapps/storefrontNo Code-to-Cloud container, IaC, or deploy environment edges detected.