Public report of muhittincamdali/iOSAppTemplates, published 21 October 2026. It has the same score, grades and number of findings as the full report. The details of security findings (where they are in the code, which known vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.10.5). Watchdog signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey → Signed and filed in the standard's public register, 21 October 2026, 19:10 UTC · Survey ID cd_b57551bf5cbc4abea1ccca04a3f0932e

muhittincamdali/iOSAppTemplates

Measured 21 October 2026, 19:01 UTC, at code version 7979766

CAI score 70out of 100 Strong
CriticalWeakAdequateStrongExemplary
Up 1 since the last survey

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A small codebase: 18,163 lines of product code in 47 projects, tests not counted · Estimated rebuild effort: about 0.2 person-years · Weakest lens: Production Readiness, 51

Findings by how serious they are

1 critical 50 serious 5 minor

30 dimensions are left out of the score. For each one, Watchdog either couldn't measure it in this code, or found no evidence of the safeguard it looks for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.

This survey was produced by

Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
21 October 2026, 19:01 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds Watchdog. It is open to any tool that implements it, and today Watchdog is the only one that does.

The score is deterministic, which means the same code always gets the same score. Watchdog works it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

44of 48 dimensions measured by tools. The other 4 are advisory notes from an AI model, which explain the code but don't count towards the score.
48of 56 findings point to an exact file and line, so you can open each one in the code. The other 8 concern the repository as a whole, such as missing documentation.
48dimensions across 7 lenses, read from 18,163 lines of product code in 47 projects.
Chapters

Executive summary

muhittincamdali/iOSAppTemplates scores 70 out of 100 and is rated Strong, while six of its seven lenses score higher still: Domain Modelling and Performance at 100, Architecture at 99, Code Health at 96 and Maturity at 80, all rated Exemplary, and Security and Compliance at 85, rated Adequate. Watchdog judged it as a template, sample or demo, meant to be read or copied, so the dimensions about building, releasing and running a product don't apply, and its lenses are rated against a lower bar. The score itself is worked out as for any repository.

The score is lower than those six because the weakest lens counts most, and here that is Production Readiness, which scores 51 and is rated Adequate. Its Observability dimension scores 0 out of 10, and until that reaches 4, Production Readiness can't be rated higher than Adequate. The first actions are to write a diagnostic trail the user can hand back with a bug report: log through `os.Logger` (one per subsystem), which the unified log keeps and a sysdiagnose carries to you and to add a SAST step to CI running what this repository's stack ships: CodeQL's Swift pack (Swift/Xcode) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing, and if Production Readiness rose to 70, the score would rise from 70 to about 79.

One finding is critical, in Static Analysis (SAST).

Watchdog couldn't measure 29 dimensions in this code, among them Test Reliability, Navigability and Platform End-of-Life, so they are left out of the score. The product code is 18,163 lines, which would take an estimated 0.2 person-years, around €29,000, to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts for The lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Production Readiness 51 · counts for 46%Maturity 80 · counts for 25%Security and Compliance 85 · counts for 14%Code Health 96 · counts for 8%Architecture 99 · counts for 4%Domain Modelling 100 · counts for 2%Performance 100 · counts for 1%

If Production Readiness rose from 51 to 70, the lowest score rated Strong, the score would rise from 70 to about 79.

Code composition: what the lines of code are
Product code 84%Tests 16%
New since the last survey: 16 findings

These 16 critical or serious findings weren't in the previous survey, on 6 October 2026.

  • God Classes · MethodTooLong: DataManager.seedPreviewState Templates/SocialMediaApp/Sources/SocialMediaApp/DataManager.swift
  • Code Duplication · Members sharing a duplicated core (19 members, 50+ identical tokens) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift
  • Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift
  • Code Duplication · Duplicated block (50 lines × 2) Templates/SocialMediaApp/Sources/SocialMediaApp/DataManager.swift
  • Code Duplication · Duplicated block (15–20 lines × 2) Templates/EcommerceApp/Sources/EcommerceApp/CommerceProfileView.swift
  • Code Duplication · Duplicated block (14–15 lines × 3) Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift
  • Code Duplication · Duplicated block (6 lines × 3) Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift
  • Code Duplication · Duplicated block (5 lines × 2) Templates/EcommerceApp/Sources/EcommerceApp/CommerceStore.swift
  • Coupling · Off the main sequence: TemplateScaffold
  • Coupling · Off the main sequence: CleanArchitectureAppDomain
  • Cohesion (LCOM4) · Low cohesion: TravelPlannerOperationsStore (LCOM4 5) Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift
  • Cohesion (LCOM4) · Low cohesion: CommerceStore (LCOM4 4) Templates/EcommerceApp/Sources/EcommerceApp/CommerceStore.swift
  • Cohesion (LCOM4) · Low cohesion: EducationLearningStore (LCOM4 4) Templates/EducationApp/Sources/EducationApp/EducationApp.swift
  • Churn × Complexity Hotspots · Repeated repair: Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift
  • Observability · No structured logging

Watchdog compares every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.

Fixed since the last survey: 238 findings

These 238 critical or serious findings were in the previous survey, on 6 October 2026, and are gone from this one. The first 100 are listed here.

  • Cyclomatic Complexity · SmartPhotoApp.body (cyclomatic 19) Sources/AITemplates/SmartPhotoTemplate.swift
  • Cognitive Complexity · ARExperienceManager.createARConfiguration (cognitive 21) Sources/Presentation/AR/ARExperienceManager.swift
  • Cognitive Complexity · ProductDetailView.body (cognitive 19) Sources/CommerceTemplates/ECommerceTemplate.swift
  • God Classes · FileTooLong: CommerceTemplates/ECommerceTemplate.swift Sources/CommerceTemplates/ECommerceTemplate.swift
  • God Classes · FileTooLong: FoodTemplates/FoodDeliveryTemplate.swift Sources/FoodTemplates/FoodDeliveryTemplate.swift
  • God Classes · FileTooLong: SocialTemplates/SocialMediaTemplate.swift Sources/SocialTemplates/SocialMediaTemplate.swift
  • God Classes · FileTooLong: HealthTemplates/FitnessHealthTemplate.swift Sources/HealthTemplates/FitnessHealthTemplate.swift
  • God Classes · FileTooLong: SocialMediaApp/SocialMediaApp.swift Templates/SocialMediaApp/Sources/SocialMediaApp/SocialMediaApp.swift
  • God Classes · ClassTooLong: TravelAppTemplate Sources/TravelTemplates/TravelTemplates.swift
  • God Classes · FileTooLong: FinanceTemplates/FinanceAppTemplate.swift Sources/FinanceTemplates/FinanceAppTemplate.swift
  • God Classes · FileTooLong: TravelTemplates/TravelAppTemplate.swift Sources/TravelTemplates/TravelAppTemplate.swift
  • God Classes · FileTooLong: MusicTemplates/MusicPodcastTemplate.swift Sources/MusicTemplates/MusicPodcastTemplate.swift
  • God Classes · FileTooLong: EducationTemplates/EducationAppTemplate.swift Sources/EducationTemplates/EducationAppTemplate.swift
  • God Classes · FileTooLong: EcommerceApp/EcommerceApp.swift Templates/EcommerceApp/Sources/EcommerceApp/EcommerceApp.swift
  • God Classes · FileTooLong: ProductivityTemplates/ProductivityAppTemplate.swift Sources/ProductivityTemplates/ProductivityAppTemplate.swift
  • God Classes · FileTooLong: NewsTemplates/NewsBlogTemplate.swift Sources/NewsTemplates/NewsBlogTemplate.swift
  • God Classes · FileTooLong: TravelTemplates/TravelTemplates.swift Sources/TravelTemplates/TravelTemplates.swift
  • God Classes · FileTooLong: FitnessApp/FitnessApp.swift Templates/FitnessApp/Sources/FitnessApp/FitnessApp.swift
  • God Classes · ClassTooLong: LearningAppTemplate Sources/EducationTemplates/EducationTemplates.swift
  • God Classes · MethodTooLong: ProductDetailView.body Sources/CommerceTemplates/ECommerceTemplate.swift
  • God Classes · ClassTooLong: TaskManagementAppTemplate Sources/ProductivityTemplates/ProductivityTemplates.swift
  • God Classes · ClassTooLong: GamingAppTemplate Sources/EntertainmentTemplates/EntertainmentTemplates.swift
  • God Classes · FileTooLong: EducationTemplates/EducationTemplates.swift Sources/EducationTemplates/EducationTemplates.swift
  • God Classes · FileTooLong: AITemplates/SmartPhotoTemplate.swift Sources/AITemplates/SmartPhotoTemplate.swift
  • God Classes · MethodTooLong: ArticleDetailView.body Sources/NewsTemplates/NewsBlogTemplate.swift
  • God Classes · FileTooLong: ProductivityTemplates/ProductivityTemplates.swift Sources/ProductivityTemplates/ProductivityTemplates.swift
  • God Classes · FileTooLong: EntertainmentTemplates/EntertainmentTemplates.swift Sources/EntertainmentTemplates/EntertainmentTemplates.swift
  • God Classes · FileTooLong: VisionOSTemplates/SpatialSocialTemplate.swift Sources/VisionOSTemplates/SpatialSocialTemplate.swift
  • God Classes · TooManyMethods: ARExperienceManager Sources/Presentation/AR/ARExperienceManager.swift
  • God Classes · FileTooLong: TCATemplates/SocialMediaTCATemplate.swift Sources/TCATemplates/SocialMediaTCATemplate.swift
  • God Classes · MethodTooLong: CourseDetailView.body Sources/EducationTemplates/EducationAppTemplate.swift
  • God Classes · MethodTooLong: ProfileView.body Sources/SocialTemplates/SocialMediaTemplate.swift
  • God Classes · FileTooLong: MachineLearning/MLTrainingPipeline.swift Sources/Infrastructure/MachineLearning/MLTrainingPipeline.swift
  • God Classes · MethodTooLong: WorkoutDetailView.body Sources/HealthTemplates/FitnessHealthTemplate.swift
  • God Classes · FileTooLong: EducationApp/EducationApp.swift Templates/EducationApp/Sources/EducationApp/EducationApp.swift
  • God Classes · FileTooLong: CRMAdminApp/CRMAdminApp.swift Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift
  • God Classes · MethodTooLong: CheckoutViewFood.body Sources/FoodTemplates/FoodDeliveryTemplate.swift
  • God Classes · MethodTooLong: FullPlayerView.body Sources/MusicTemplates/MusicPodcastTemplate.swift
  • God Classes · MethodTooLong: DataManager.seedPreviewState Templates/SocialMediaApp/Sources/SocialMediaApp/SocialMediaApp.swift
  • God Classes · FileTooLong: AR/ARExperienceManager.swift Sources/Presentation/AR/ARExperienceManager.swift
  • Code Duplication · Members sharing a duplicated core (20 members, 50+ identical tokens) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift
  • Code Duplication · Members sharing a duplicated core (19 members, 50+ identical tokens) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift
  • Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) Sources/CommerceTemplates/ECommerceTemplate.swift
  • Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) Sources/EducationTemplates/EducationAppTemplate.swift
  • Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) Sources/CommerceTemplates/ECommerceTemplate.swift
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift
  • Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) Templates/EducationApp/Sources/EducationAppUI/EducationAppUI.swift
  • Code Duplication · Duplicated block (50 lines × 2) Templates/SocialMediaApp/Sources/SocialMediaApp/SocialMediaApp.swift
  • Code Duplication · Duplicated block (28 lines × 2) Sources/EntertainmentTemplates/EntertainmentTemplates.swift
  • Code Duplication · Duplicated block (17–27 lines × 15) Sources/EducationTemplates/EducationAppTemplate.swift
  • Code Duplication · Duplicated block (26 lines × 2) Examples/BasicExample/BasicExample.swift
  • Code Duplication · Duplicated block (26 lines × 2) Templates/SocialMediaApp/Sources/SocialMediaApp/SignUpView.swift
  • Code Duplication · Duplicated block (21 lines × 3) Sources/EducationTemplates/EducationAppTemplate.swift
  • Code Duplication · Duplicated block (21 lines × 2) Examples/BasicExample/BasicExample.swift
  • Code Duplication · Duplicated block (20 lines × 20) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift
  • Code Duplication · Duplicated block (20 lines × 2) Examples/BasicExample/BasicExample.swift
  • Code Duplication · Duplicated block (20 lines × 2) Sources/EducationTemplates/EducationTemplates.swift
  • Code Duplication · Duplicated block (20 lines × 2) Sources/EntertainmentTemplates/EntertainmentTemplates.swift
  • Code Duplication · Duplicated block (20 lines × 2) Sources/iOSAppTemplates/iOSAppTemplates.swift
  • Code Duplication · Duplicated block (15–20 lines × 2) Templates/EcommerceApp/Sources/EcommerceApp/EcommerceApp.swift
  • Code Duplication · Duplicated block (18–19 lines × 2) Sources/EducationTemplates/EducationAppTemplate.swift
  • Code Duplication · Duplicated block (19 lines × 2) Sources/FinanceTemplates/FinanceTemplates.swift
  • Code Duplication · Duplicated block (19 lines × 2) Sources/TravelTemplates/TravelAppTemplate.swift
  • Code Duplication · Duplicated block (19 lines × 2) Templates/PrivacyVaultApp/Sources/PrivacyVaultApp/PrivacyVaultApp.swift
  • Code Duplication · Duplicated block (18 lines × 2) Sources/FoodTemplates/FoodDeliveryTemplate.swift
  • Code Duplication · Duplicated block (18 lines × 2) Sources/FoodTemplates/FoodDeliveryTemplate.swift
  • Code Duplication · Duplicated block (18 lines × 2) Sources/ProductivityTemplates/ProductivityTemplates.swift
  • Code Duplication · Duplicated block (17–18 lines × 2) Sources/TravelTemplates/TravelAppTemplate.swift
  • Code Duplication · Duplicated block (16–17 lines × 3) Sources/FoodTemplates/FoodDeliveryTemplate.swift
  • Code Duplication · Duplicated block (17 lines × 2) Sources/CommerceTemplates/ECommerceTemplate.swift
  • Code Duplication · Duplicated block (17 lines × 2) Sources/EducationTemplates/EducationAppTemplate.swift
  • Code Duplication · Duplicated block (16–17 lines × 2) Sources/TravelTemplates/TravelAppTemplate.swift
  • Code Duplication · Duplicated block (16 lines × 2) Sources/AITemplates/SmartPhotoTemplate.swift
  • Code Duplication · Duplicated block (16 lines × 2) Sources/HealthTemplates/HealthTemplates.swift
  • Code Duplication · Duplicated block (16 lines × 2) Sources/ProductivityTemplates/ProductivityAppTemplate.swift
  • Code Duplication · Duplicated block (15 lines × 3) Sources/EducationTemplates/EducationTemplates.swift
  • Code Duplication · Duplicated block (14 lines × 4) Templates/EducationApp/Sources/EducationAppUI/EducationAppUI.swift
  • Code Duplication · Duplicated block (14 lines × 2) Sources/EducationTemplates/EducationAppTemplate.swift
  • Code Duplication · Duplicated block (14 lines × 2) Sources/TravelTemplates/TravelTemplates.swift
  • Code Duplication · Duplicated block (13 lines × 16) Sources/CommerceTemplates/CommerceTemplates.swift
  • Code Duplication · Duplicated block (13 lines × 4) Sources/NewsTemplates/NewsBlogTemplate.swift
  • Code Duplication · Duplicated block (13 lines × 3) Sources/EducationTemplates/EducationTemplates.swift
  • Code Duplication · Duplicated block (13 lines × 2) Examples/BasicExample/BasicExample.swift
  • Code Duplication · Duplicated block (13 lines × 2) Sources/CommerceTemplates/ECommerceTemplate.swift
  • Code Duplication · Duplicated block (13 lines × 2) Sources/CommerceTemplates/ECommerceTemplate.swift
  • Code Duplication · Duplicated block (13 lines × 2) Sources/FoodTemplates/FoodDeliveryTemplate.swift
  • Code Duplication · Duplicated block (13 lines × 2) Sources/HealthTemplates/FitnessHealthTemplate.swift
  • Code Duplication · Duplicated block (13 lines × 2) Sources/ProductivityTemplates/ProductivityTemplates.swift
  • Code Duplication · Duplicated block (13 lines × 2) Sources/TCATemplates/SocialMediaTCATemplate.swift
  • Code Duplication · Duplicated block (13 lines × 2) Sources/TravelTemplates/TravelAppTemplate.swift
  • Code Duplication · Duplicated block (13 lines × 2) Sources/TravelTemplates/TravelTemplates.swift
  • Code Duplication · Duplicated block (12 lines × 36) Sources/CommerceTemplates/CommerceTemplates.swift
  • Code Duplication · Duplicated block (12 lines × 36) Sources/CommerceTemplates/CommerceTemplates.swift
  • Code Duplication · Duplicated block (12 lines × 7) Sources/CommerceTemplates/ECommerceTemplate.swift
  • Code Duplication · Duplicated block (12 lines × 6) Sources/EducationTemplates/EducationTemplates.swift
  • Code Duplication · Duplicated block (12 lines × 5) Sources/EducationTemplates/EducationTemplates.swift
  • Code Duplication · Duplicated block (11–12 lines × 4) Sources/CommerceTemplates/ECommerceTemplate.swift
  • Code Duplication · Duplicated block (12 lines × 4) Sources/ProductivityTemplates/ProductivityAppTemplate.swift
  • Code Duplication · Duplicated block (12 lines × 3) Sources/TCATemplates/SocialMediaTCATemplate.swift
Rebuild cost: about €29,000 · Estimate
Cost to rebuild€9,500 to €48,000, for 158 to 502 hours of work, about 0.2 person-years for one engineer
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×1.0 at a score of 70. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeSmall: 18,163 lines of product code

How the estimate is made: Watchdog prices the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.

Top priorities

The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.

1
Write a diagnostic trail the user can hand back with a bug report: log through `os.Logger` (one per subsystem), which the unified log keeps and a sysdiagnose carries to you.
Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
Raises the score by about 9 points · Medium effort · Observability
2
Add a SAST step to CI running what this repository's stack ships: CodeQL's Swift pack (Swift/Xcode) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
Raises the score by about 5 points · Medium effort · Security & performance tooling
3
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
Raises the score by about 3 points · Medium effort · Deployment & Rollback

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Where the investment is most exposed · Value at risk
This code would cost about €29,000 to build again, about 0.2 person-years of work. Its weakest lens is Production Readiness, at 51 (Adequate). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Write a diagnostic trail the user can hand back with a bug report: log through `os.Logger` (one per subsystem), which the unified log keeps and a sysdiagnose carries to you. Of all the actions in this report, it raises the score most for the work it takes: about 9 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort

Architecture — module dependency graph

Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways — a layering smell or cycle. A clean layered graph has none.

arch AIAssistantApp AIAssistantApp AIAssistantAppHost AIAssistantAppHost BookingReservationsApp BookingReservationsApp BookingReservationsAppHost BookingReservationsAppHost CRMAdminApp CRMAdminApp CRMAdminAppHost CRMAdminAppHost CleanArchitectureApp CleanArchitectureApp CleanArchitectureAppData CleanArchitectureAppData CleanArchitectureApp->CleanArchitectureAppData CleanArchitectureAppDomain CleanArchitectureAppDomain CleanArchitectureApp->CleanArchitectureAppDomain CleanArchitectureAppPresentation CleanArchitectureAppPresentation CleanArchitectureApp->CleanArchitectureAppPresentation CleanArchitectureAppData->CleanArchitectureAppDomain CleanArchitectureAppHost CleanArchitectureAppHost CleanArchitectureAppPresentation->CleanArchitectureAppDomain CreatorShortVideoApp CreatorShortVideoApp CreatorShortVideoAppHost CreatorShortVideoAppHost EcommerceApp EcommerceApp EcommerceAppHost EcommerceAppHost EducationApp EducationApp EducationAppHost EducationAppHost FinanceApp FinanceApp TemplateScaffold TemplateScaffold create-ios-app create-ios-app create-ios-app->TemplateScaffold __more__ +27 more projects

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

27 modules, with 14 dependencies between them. One loop runs through 2 of the modules, marked above the diagonal.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 CLI2 TemplateScaffold3 Templates~AIAssistantApp~AIAssistantApp4 Templates~BookingReservationsApp~BookingReservationsApp5 Templates~CRMAdminApp~CRMAdminApp6 Templates~CreatorShortVideoApp~CreatorShortVideoApp7 Templates~EcommerceApp~EcommerceApp8 Templates~MessagingApp~MessagingApp9 Templates~NewsBlogApp~NewsBlogApp10 Templates~NotesKnowledgeApp~NotesKnowledgeApp11 Templates~PrivacyVaultApp~PrivacyVaultApp12 Templates~SubscriptionLifestyleApp~SubscriptionLifestyleApp13 Templates~TeamCollaborationApp~TeamCollaborationApp14 Templates~TravelPlannerApp~TravelPlannerApp15 repository16 Templates~EducationApp~EducationApp17 Templates~FinanceApp~FinanceApp18 Templates~FitnessApp~FitnessApp19 Templates~FoodDeliveryApp~FoodDeliveryApp20 Templates~MarketplaceApp~MarketplaceApp21 Templates~MusicPodcastApp~MusicPodcastApp22 Templates~ProductivityApp~ProductivityApp23 Templates~SocialMediaApp~SocialMediaApp24 Templates~CleanArchitectureApp~CleanArchitectureAppDomain25 Templates~CleanArchitectureApp~CleanArchitectureAppData26 Templates~CleanArchitectureApp~CleanArchitectureAppPresentation27 Templates~CleanArchitectureApp~CleanArchitectureApp
1 CLI
2 TemplateScaffold
3 Templates~AIAssistantApp~AIAssistantApp
4 Templates~BookingReservationsApp~BookingReservationsApp
5 Templates~CRMAdminApp~CRMAdminApp
6 Templates~CreatorShortVideoApp~CreatorShortVideoApp
7 Templates~EcommerceApp~EcommerceApp
8 Templates~MessagingApp~MessagingApp
9 Templates~NewsBlogApp~NewsBlogApp
10 Templates~NotesKnowledgeApp~NotesKnowledgeApp
11 Templates~PrivacyVaultApp~PrivacyVaultApp
12 Templates~SubscriptionLifestyleApp~SubscriptionLifestyleApp
13 Templates~TeamCollaborationApp~TeamCollaborationApp
14 Templates~TravelPlannerApp~TravelPlannerApp
15 repository
16 Templates~EducationApp~EducationApp1
17 Templates~FinanceApp~FinanceApp5
18 Templates~FitnessApp~FitnessApp2
19 Templates~FoodDeliveryApp~FoodDeliveryApp5
20 Templates~MarketplaceApp~MarketplaceApp5
21 Templates~MusicPodcastApp~MusicPodcastApp1
22 Templates~ProductivityApp~ProductivityApp1
23 Templates~SocialMediaApp~SocialMediaApp12
24 Templates~CleanArchitectureApp~CleanArchitectureAppDomain1
25 Templates~CleanArchitectureApp~CleanArchitectureAppData6
26 Templates~CleanArchitectureApp~CleanArchitectureAppPresentation18
27 Templates~CleanArchitectureApp~CleanArchitectureApp44
Uses a module listed above itPart of a loopThe module itself
1 CLI2 TemplateScaffold3 Templates~AIAssistantApp~AIAssistantApp4 Templates~BookingReservationsApp~BookingReservationsApp5 Templates~CRMAdminApp~CRMAdminApp6 Templates~CreatorShortVideoApp~CreatorShortVideoApp7 Templates~EcommerceApp~EcommerceApp8 Templates~MessagingApp~MessagingApp9 Templates~NewsBlogApp~NewsBlogApp10 Templates~NotesKnowledgeApp~NotesKnowledgeApp11 Templates~PrivacyVaultApp~PrivacyVaultApp12 Templates~SubscriptionLifestyleApp~SubscriptionLifestyleApp13 Templates~TeamCollaborationApp~TeamCollaborationApp14 Templates~TravelPlannerApp~TravelPlannerApp15 repository16 Templates~EducationApp~EducationApp17 Templates~FinanceApp~FinanceApp18 Templates~FitnessApp~FitnessApp19 Templates~FoodDeliveryApp~FoodDeliveryApp20 Templates~MarketplaceApp~MarketplaceApp21 Templates~MusicPodcastApp~MusicPodcastApp22 Templates~ProductivityApp~ProductivityApp23 Templates~SocialMediaApp~SocialMediaApp24 Templates~CleanArchitectureApp~CleanArchitectureAppDomain25 Templates~CleanArchitectureApp~CleanArchitectureAppData26 Templates~CleanArchitectureApp~CleanArchitectureAppPresentation27 Templates~CleanArchitectureApp~CleanArchitectureAppCLI1TemplateScaffold2Templates~AIAssistantApp~AIAssistantApp3Templates~BookingReservationsApp~BookingReservationsApp4Templates~CRMAdminApp~CRMAdminApp5Templates~CreatorShortVideoApp~CreatorShortVideoApp6Templates~EcommerceApp~EcommerceApp7Templates~MessagingApp~MessagingApp8Templates~NewsBlogApp~NewsBlogApp9Templates~NotesKnowledgeApp~NotesKnowledgeApp10Templates~PrivacyVaultApp~PrivacyVaultApp11Templates~SubscriptionLifestyleApp~SubscriptionLifestyleApp12Templates~TeamCollaborationApp~TeamCollaborationApp13Templates~TravelPlannerApp~TravelPlannerApp14repository15Templates~EducationApp~EducationApp16Templates~FinanceApp~FinanceApp17Templates~FitnessApp~FitnessApp18Templates~FoodDeliveryApp~FoodDeliveryApp19Templates~MarketplaceApp~MarketplaceApp20Templates~MusicPodcastApp~MusicPodcastApp21Templates~ProductivityApp~ProductivityApp22Templates~SocialMediaApp~SocialMediaApp23Templates~CleanArchitectureApp~CleanArchitectureAppDomain24Templates~CleanArchitectureApp~CleanArchitectureAppData25Templates~CleanArchitectureApp~CleanArchitectureAppPresentation26Templates~CleanArchitectureApp~CleanArchitectureApp27152551112161844

At a glance — Code Health · 96% · Exemplary ·

At a glance — Architecture · 99% · Exemplary ·

At a glance — Maturity · 80% · Exemplary ·

At a glance — Readiness · 51% · Adequate · gated by P2, P3 ·

At a glance — Security · 85% · Adequate · gated by D36 ·

At a glance — Domain Modelling · 100% · Exemplary ·

At a glance — Performance · 100% · Exemplary ·

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A03:2025 — Software Supply Chain Failures3Medium
A05:2025 — Injection1High / Critical

Roadmap

First, implement subsystem logging via os.Logger to capture error paths, ensuring users can provide diagnostic trails for bugs. Second, integrate a SAST step into CI to fail the build on security regressions, and gate releases with manual approval to prevent bad builds from reaching users. Third, document significant design decisions in a structured ADR folder to preserve architectural context. Finally, address the lack of a root-level overview, installation steps, and license information in the documentation to improve overall quality.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Write a diagnostic trail the user can hand back with a bug report: log through `os.Logger` (one per subsystem), which the unified log keeps and a sysdiagnose carries to you. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.+9.0 ptsMediumObservability
Add a SAST step to CI running what this repository's stack ships: CodeQL's Swift pack (Swift/Xcode) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.+5.3 ptsMediumSecurity & performance tooling
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.+3.5 ptsMediumDeployment & Rollback
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.+2.9 ptsMediumArchitecture documentation
Improve Documentation Quality — currently 7.7/10.+2.2 ptsMediumDocumentation Quality
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing.+0.6 ptsLowSupply-chain Provenance & Signing
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing.+0.6 ptsLowSupply-chain Provenance & Signing
Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing.+0.6 ptsLowSupply-chain Provenance & Signing

File quality

Per-file score 0–10 — a quality signature. Of 19 files carrying findings, judged against the Template bar: 0% slop · 0% mixed · 100% near-clean.

FileScoreBandWorst signal
Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift7.0Near-cleanGod Classes: FileTooLong: TravelPlannerApp/TravelPlannerApp.swift
Templates/EducationApp/Sources/EducationApp/EducationApp.swift7.0Near-cleanCode Duplication: Duplicated block (8 lines × 2)
Templates/EcommerceApp/Sources/EcommerceApp/CommerceStore.swift7.0Near-cleanCode Duplication: Duplicated block (5 lines × 2)
Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift7.0Near-cleanGod Classes: FileTooLong: AIAssistantApp/AIAssistantApp.swift
Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift7.1Near-cleanCode Duplication: Duplicated block (16 lines × 2)
Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift7.2Near-cleanCode Duplication: Members sharing a duplicated core (6 members, 50+ identical tokens)
REDACTED7.2Near-cleanStatic Analysis (SAST): High: REDACTED
Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift7.4Near-cleanCognitive Complexity: MessagingRoomDetailView.body (cognitive 17)
Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift7.4Near-cleanGod Classes: FileTooLong: TeamCollaborationApp/TeamCollaborationApp.swift
Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift7.4Near-cleanCode Duplication: Duplicated block (11 lines × 2)
Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift7.8Near-cleanGod Classes: FileTooLong: CreatorShortVideoApp/CreatorShortVideoApp.swift
Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift7.8Near-cleanGod Classes: FileTooLong: MarketplaceApp/MarketplaceApp.swift
Templates/SocialMediaApp/Sources/SocialMediaApp/DataManager.swift7.8Near-cleanGod Classes: MethodTooLong: DataManager.seedPreviewState
Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift7.8Near-cleanCode Duplication: Duplicated block (14–15 lines × 3)
Templates/PrivacyVaultApp/Sources/PrivacyVaultApp/PrivacyVaultApp.swift8.5Near-cleanGod Classes: FileTooLong: PrivacyVaultApp/PrivacyVaultApp.swift
Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift8.5Near-cleanGod Classes: FileTooLong: FoodDeliveryApp/FoodDeliveryApp.swift
Templates/FinanceApp/Sources/FinanceApp/FinanceApp.swift8.5Near-cleanGod Classes: FileTooLong: FinanceApp/FinanceApp.swift
Templates/EcommerceApp/Sources/EcommerceApp/CommerceProfileView.swift8.5Near-cleanCode Duplication: Duplicated block (15–20 lines × 2)
Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift8.5Near-cleanCode Duplication: Duplicated block (11 lines × 2)

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 1

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 50

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 5

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 30

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 44 of 48 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 48 dimensions across the health lenses
D1D2D3D4D5D6D8D9D10D12D13D14D15D17D19D21D22D26D28D29D30D34D35D36D37D43AX10AX3AX4AX8AX9DM4DM5M1M2M3M4P1P10P2P3P4P6PF3X14X26X28X3

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 48 of 56 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Watchdog duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 01a15fd7-00e3-7cea-a6d9-f5e7436fcd52.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.swift) and this repository declares a SwiftPM test suite (22 packages), but it was not re-run: no test result was produced. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 266 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
  • D27 Navigability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Navigability is taken over call sites whose callee resolved. For C# that population includes calls into referenced assemblies; for this language only calls declared inside the repository count, so the abstention threshold reads the repository's use of its standard library as a resolution failure. That is a limit of this analyzer, not a build problem in this repository.
  • D44 Platform End-of-Life — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
  • AX1 Captive dependencies — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository defines its own container in Templates/CleanArchitectureApp/Sources/CleanArchitectureApp/CleanArchitectureAppContainer.swift, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
  • C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
  • C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
  • GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby and Scala source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby or Scala was found, and this repository's Swift is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby and Scala source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby or Scala was found, and this repository's Swift is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • P8 Schema migrations — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads EF Core usage in C# and the schema tooling its file scan recognises only, and no .NET project was loaded, and this repository's language is not one the scan models, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • S1 Web-Security Posture — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
  • X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala, Rust and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala, Rust or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X15 Unvalidated length from an untrusted reader — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Ruby, Python, Go, Rust and Dart source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Ruby, Python, Go, Rust or Dart was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, PHP, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Dart, Ruby, Scala or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, Dart, Ruby, Scala and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Python, Dart, Ruby, Scala or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python or Rust was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Java, TypeScript/JavaScript, Python, Dart, Ruby, Scala, Kotlin and PHP source only, and no C# was loaded, and this repository's Swift is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, F#, Python, Dart, Ruby, Scala, Kotlin and PHP source only, and no C# was loaded and no JavaScript/TypeScript, Java, F#, Python, Dart, Ruby, Scala, Kotlin or PHP was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Erlang, Python, Dart and Ruby source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Scala, PHP, Erlang, Python, Dart or Ruby was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X29 Per-element action decided by a fixed element — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Rust, Dart, Ruby, Scala and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Java, Rust, Dart, Ruby, Scala or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X30 Support guard that admits what it rejects — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and Scala, JavaScript/TypeScript, Java, Kotlin, Python, PHP, Go, Rust, Dart and Ruby source only, and no C# was loaded and no Scala, JavaScript, TypeScript, Java, Kotlin, Python, PHP, Go, Rust, Dart or Ruby was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala or Rust was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax and MSBuild project configuration, TypeScript source and its tsconfig files, Java source and its package and module declarations, PHP source and its PHPStan and Psalm configuration, Dart source and its pubspec language version, Ruby source and its Sorbet and Steep configuration, Scala source and its build's explicit-nulls, WartRemover and Scalafix settings, and Kotlin source only, and no C# was loaded, no TypeScript was found, and this repository's Swift is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
  • D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • DM4 Rich vs anemic domain model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (4): D19, D21, D22, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 · Cyclomatic Complexity10.0 / 10Exemplary✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 method(s) exceeded the cyclomatic complexity threshold of 15.

✓ On the Gold path — maintain.

Detailed fixes: d1_recommendation.md.

D2 · Cognitive Complexity9.8 / 10Stronggated by 1 serious finding✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Prevented

1 method(s) exceeded the cognitive complexity threshold of 15; the worst was MessagingRoomDetailView.body at 17.

MessagingRoomDetailView.body (cognitive 17)Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:497

What to do

  1. Bring the 1 body over 15 down to 15 or less in Cognitive Complexity — start with MessagingRoomDetailView.body (cognitive 17). — Refactoring it lifts Cognitive Complexity from 9.8 to about 10.0/10.
  2. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes7.5 / 10Strong✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: Documented → Verified → Prevented · effective 7.5 / 10 · rule-coverage 100% · ceiling Prevented

11 over-large unit(s) detected — types, modules or files that carry too much.

FileTooLong: PrivacyVaultApp/PrivacyVaultApp.swift · ×9Templates/PrivacyVaultApp/Sources/PrivacyVaultApp/PrivacyVaultApp.swift
MethodTooLong: AIAssistantWorkspaceView.body · ×2Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:367

What to do

  1. Resolve the 9 FileTooLong finding(s) in God Classes — start with PrivacyVaultApp.swift, MessagingApp.swift, TravelPlannerApp.swift. — One of this dimension's main actionable groups (9 warning-level).
  2. Resolve the 2 MethodTooLong finding(s) in God Classes — start with AIAssistantApp.swift, DataManager.swift. — One of this dimension's main actionable groups (2 warning-level).
  3. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication9.3 / 10Stronggated by 31 serious findings✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.3 / 10 · rule-coverage 100% · ceiling Verified

28 duplicated block group(s) detected. A further 3 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.

Duplicated block (11 lines × 2) · ×4Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:72
Duplicated block (8 lines × 2) · ×2Templates/EducationApp/Sources/EducationApp/EducationApp.swift:207
Duplicated block (7 lines × 2) · ×2Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:268
Members sharing a duplicated core (19 members, 50+ identical tokens)Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:737
Members sharing a duplicated core (6 members, 50+ identical tokens)Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160

+ 21 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 4 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with SubscriptionLifestyleApp.swift (2), ProductivityApp.swift, TeamCollaborationApp.swift. — One of this dimension's main actionable groups (4 warning-level).
  2. Resolve the 2 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with EducationApp.swift, BookingReservationsApp.swift. — One of this dimension's main actionable groups (2 warning-level).
  3. Resolve the 2 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with CRMAdminApp.swift, CreatorShortVideoApp.swift. — One of this dimension's main actionable groups (2 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

D5 · Coupling9.7 / 10Stronggated by 2 serious findings✓ Tool-verified

What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.

Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.

Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Prevented

47 production modules (SwiftPM+XcodeGen), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; an XcodeGen target's dependency on a local Swift package or on a target of another project is not visible there; 2 module(s) off the main sequence, with abstractness counted on 26 of the 47 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).

Off the main sequence: TemplateScaffold · ×2

What to do

  1. Resolve the 2 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (2 warning-level).
  2. Enforce Coupling in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.

D6 · Cohesion (LCOM4)8.8 / 10Strong✓ Tool-verified

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 8.8 / 10 · rule-coverage 100% · ceiling Verified

3 of 30 classes have LCOM4 above 3.

Low cohesion: TravelPlannerOperationsStore (LCOM4 5) · ×3Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift:53

What to do

  1. Resolve the 3 Low cohesion finding(s) in Cohesion (LCOM4) — start with TravelPlannerApp.swift, CommerceStore.swift, EducationApp.swift. — One of this dimension's main actionable groups (3 warning-level).
  2. Enforce Cohesion (LCOM4) in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.

D8 · Code Coverage10.0 / 10Exemplary✓ Tool-verified

What it measures: How much of the code is actually exercised by tests.

Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

Line coverage 97.1%. Measured from the Swift suite (.: `swift test --enable-code-coverage` over 5 production file(s); Templates/AIAssistantApp: no coverage export; Templates/BookingReservationsApp: no coverage export; Templates/CRMAdminApp: no coverage export; Templates/CleanArchitectureApp: no coverage export; Templates/CreatorShortVideoApp: no coverage export; Templates/EcommerceApp: no coverage export; Templates/EducationApp: no coverage export; Templates/FinanceApp: no coverage export; Templates/FitnessApp: no coverage export; Templates/FoodDeliveryApp: no coverage export; Templates/MarketplaceApp: no coverage export; Templates/MessagingApp: no coverage export; Templates/MusicPodcastApp: no coverage export; Templates/NewsBlogApp: no coverage export; Templates/NotesKnowledgeApp: no coverage export; Templates/PrivacyVaultApp: no coverage export; Templates/ProductivityApp: no coverage export; Templates/SocialMediaApp: no coverage export; Templates/SubscriptionLifestyleApp: no coverage export; Templates/TeamCollaborationApp: no coverage export; Templates/TravelPlannerApp: no coverage export).

✓ On the Gold path — maintain.

Detailed fixes: d8_recommendation.md.

D9 · Test Distribution9.9 / 10Exemplary✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Documented

353 test methods: 350 unit, 0 integration, 0 BDD, 3 e2e.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

D10 · Test Quality10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 skipped, 0 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 353 tests.

✓ On the Gold path — maintain.

Detailed fixes: d10_recommendation.md.

D12 · Dependency Hygiene10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether dependencies are current, secure, and not bloated.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 outdated direct SwiftPM dependencies, 0 pinning defect(s). SwiftPM has no package registry: a dependency is a repository URL and its releases are that repository's semver tags, so currency is answered by listing tags rather than by querying an index. Only a newer tag on the SAME MAJOR is reported — a `from:` requirement admits everything below the next major and nothing above it, so a major crossing needs a Package.swift edit rather than an update, and naming the update as its remedy would be wrong. Whether any dependency is DEPRECATED or ABANDONED is not graded and cannot be: a repository publishes no such marker, and there is no registry that could carry one. Known CVEs in this dependency graph are D30's question.

✓ On the Gold path — maintain.

Detailed fixes: d12_recommendation.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the licenses of third-party packages are compatible with your policy.

Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 3 SwiftPM package(s) use a banned license. SwiftPM has no package registry, so each package's licence is the one its repository declares: 3 of them read from the licence file the repository carries at the revision Package.resolved pins, and 0 — unpinned, or whose licence file could not be read or named — from api.deps.dev, which reports the licence the repository declares today. Graded: every package a committed Package.resolved pins, direct and transitive, and every declared dependency none pins.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots10.0 / 10Stronggated by 1 serious finding✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No churn × complexity hotspots in the window. Repeated repair below the complexity floor: Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift (4 of 4 changes were fixes)

Repeated repair: Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swiftTemplates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift:78

What to do

  1. Resolve the 1 Repeated repair finding(s) in Churn × Complexity Hotspots — start with ProfileDraft.swift. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D17 · Explicit Debt10.0 / 10Exemplary○ Nothing flagged

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 deducted task-comment markers across 18163 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

✓ On the Gold path — maintain.

Detailed fixes: d17_recommendation.md.

D19 · Documentation QualityStrong◐ Sampled · advisory

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

Maturity: Documented → Verified → Prevented · effective Strong / 10 · rule-coverage 100% · ceiling Documented

The repository's root README is a well-structured multi-platform landing page (iOSAppTemplates: 21 SwiftUI app templates for iOS 18, each a tested Swift package you can copy under your own name) with brand banners, a global CI and version badge, and an outline of Highlights; Quick start; Installation; Templates; create-ios-app; TemplateScaffold library; Usage; Pick a template; Create a project under your own name; Work on a template in place; Use the scaffolding library; Demo; Documentation; Guides; Requirements; Architecture; Roadmap; Contributing; License. The Examples/READMEs (QuickStart, AIAssistantApp, BookingReservationsApp) each document their own directories and show commands to run them with code blocks, covering installation/run/usage without a root overview. All the templates are well-organized per-target layout tables, test commands, and run steps. The READMEs for each template directory (PrivacyVaultApp, ProductivityApp, SocialMediaApp, SubscriptionLifestyleApp, TeamCollaborationApp, TravelPlannerApp) are all well written and describe the app's purpose, layout table of contents, test commands, and run steps. The single architecture/design doc TemplateScaffold.docc/WorkingWithTheCleanArchitectureTemplate.md is a thorough working document covering Clean Architecture concepts (dependency rule, adding features from inside out), what targets rename, and how to connect your own server; it is clipped mid-table in the body but its outline exists. All four of the cross-project gaps are present in the template READMEs: no overview of the repository project itself, no installation/build steps for any directory, no usage examples or contribution guidance, and no licence statement.

What to do

  1. Improve Documentation Quality — currently 7.7/10. — The repository's root README is a well-structured multi-platform landing page (iOSAppTemplates: 21 SwiftUI app templates for iOS 18, each a tested Swift package you can copy under your own name) with brand banners, a global CI and version badge, and an outline of Highlights; Quick start; Installation; Templates; create-ios-app; TemplateScaffold library; Usage; Pick a template; Create a project under your own name; Work on a template in place; Use the scaffolding library; Demo; Documentation; Guides; Requirements; Architecture; Roadmap; Contributing; License. The Examples/READMEs (QuickStart, AIAssistantApp, BookingReservationsApp) each document their own directories and show commands to run them with code blocks, covering installation/run/usage without a root overview. All the templates are well-organized per-target layout tables, test commands, and run steps. The READMEs for each template directory (PrivacyVaultApp, ProductivityApp, SocialMediaApp, SubscriptionLifestyleApp, TeamCollaborationApp, TravelPlannerApp) are all well written and describe the app's purpose, layout table of contents, test commands, and run steps. The single architecture/design doc TemplateScaffold.docc/WorkingWithTheCleanArchitectureTemplate.md is a thorough working document covering Clean Architecture concepts (dependency rule, adding features from inside out), what targets rename, and how to connect your own server; it is clipped mid-table in the body but its outline exists. All four of the cross-project gaps are present in the template READMEs: no overview of the repository project itself, no installation/build steps for any directory, no usage examples or contribution guidance, and no licence statement.

Detailed fixes: d19_recommendation.md.

D21 · Naming ConsistencyExemplary◐ Sampled · advisory

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

Maturity: Documented → Verified → Prevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 naming inconsistencies across 0 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D22 · Internal API ConsistencyExemplary◐ Sampled · advisory

What it measures: Whether the internal API surface is consistent and coherent.

Method: Judged by language model at low temperature over a sample of the public API surface (IsPackable or .Contracts types). Sampled, advisory; confidence discounted by model uncertainty.

Maturity: Documented → Verified → Prevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 API inconsistencies across 38 exposed types.

✓ On the Gold path — maintain.

Detailed fixes: d22_recommendation.md.

D26 · Project Cohesion10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether each project is a focused, coherent unit rather than an oversized grab-bag.

Method: Project size overshoot penalties (LoC / public-type count / namespace count, 2-of-3 flag) weighted by log magnitude. Exhaustive across projects, deterministic, LLM-independent.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 of 43 build units (SwiftPM, XcodeGen) flagged as possibly oversized/incoherent.

✓ On the Gold path — maintain.

Detailed fixes: d26_recommendation.md.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)8.4 / 10Adequategated by 1 critical finding✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented → Verified → Prevented · effective 8.4 / 10 · rule-coverage 100% · ceiling Documented

1 finding(s): 0 critical, 1 high, 0 medium, 0 low.

REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D30 · Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No known-vulnerable dependencies in any ecosystem this repository declares.

✓ On the Gold path — maintain.

Detailed fixes: d30_recommendation.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Every significant source file has living knowledge — recently and meaningfully worked. Counted over 55 of the 120 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

D36 · Supply-chain Provenance & Signing2.5 / 10Weak✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

Maturity: Documented → Verified → Prevented · effective 2.5 / 10 · rule-coverage 100% · ceiling Documented

1/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.

Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

What to do

  • The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).

Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.

Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.

AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.

Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.

AX9 · CQS / query purity10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.

Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.

Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.

DM4 · Rich vs anemic domain model10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether domain entities own their behaviour — a data-only reference entity whose logic lives in a foreign service is anemic. Rich models enforce their own invariants.

Method: Roslyn (DDD-gated): entity method BODIES classified mutator-vs-query — only methods that mutate the entity's own declared state count as invariant-protecting behaviour, so a getter/passthrough doesn't rescue an anemic class. Deterministic, exhaustive over domain-layer entities.

Coverage: Population: entities by name/base convention; rich-vs-anemic judged by classifying each method body mutator-vs-query — logic-bearing domain types outside the convention are invisible.

DM5 · Encapsulated state10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether a reference entity protects its own invariants — a class whose identity is a computed content hash but whose hashed fields are publicly mutable bypasses that invariant. Encapsulated state keeps identity-bearing fields immutable.

Method: Roslyn (DDD-gated): entities scanned for publicly writable state — public setters, and (C#/VB) own mutable collections handed out through an auto-property, a public field or a bare-field expression getter, where a computed/copying getter is never charged. One finding per entity; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.

Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.

M1 · Documentation (README)9.3 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

What to do

  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation5.0 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy10.0 / 10Exemplary◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.

Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.

P2 · Observability0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.

Method: Filesystem/Roslyn scan: structured-logging frameworks (Serilog, NLog), OpenTelemetry, and health-check endpoint patterns. Exhaustive, deterministic.

  • No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.

What to do

  • Write a diagnostic trail the user can hand back with a bug report: log through `os.Logger` (one per subsystem), which the unified log keeps and a sysdiagnose carries to you. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
P3 · Security & performance tooling3.0 / 10Weak✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

  • No static application security testing detected. For this repository's stack, add CodeQL's Swift pack (Swift/Xcode) (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 7457 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.

What to do

  • Add a SAST step to CI running what this repository's stack ships: CodeQL's Swift pack (Swift/Xcode) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

What to do

  • Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

PF3 · Async & latency hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from the language model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

X14 · Bypassable address classification10.0 / 10Exemplary○ Nothing flagged

Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.

Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.

X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.

X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

X3 · Exception handling10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health96%ExemplarySolid.
Architecture99%ExemplarySolid.
Maturity80%ExemplarySolid.
Readiness51%Adequate — gated by P2, P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security85%Adequate — gated by D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling100%ExemplaryStrongest area.
Performance100%ExemplarySolid.
Not evidenced — 2 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 75 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No Swift request handler (a Vapor, Hummingbird, Kitura, Swifter or Perfect route handler, as a method or a registered closure) is declared, so no state is shared between request threads.
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AXB1 Runtime evidence locked — no reproducible boot — This repository has nothing the runtime tiers could boot or serve — no markup, no UI framework or web-server dependency, no UI component source, no native UI project and no API definition — nothing here is a surface to boot — so runtime a11y/egress/header evidence has no subject here. Not applicable: this is neither a gap in the scan nor a finding about your code.
  • C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named property (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a SwiftData @Model, a Core Data, Realm, GRDB or Fluent type, a GRDB or SQLite.swift column, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (CoreData, SwiftData, GRDB, RealmSwift, SQLite, Firebase, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named property (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a SwiftData @Model, a Core Data, Realm, GRDB or Fluent type, a GRDB or SQLite.swift column, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (CoreData, SwiftData, GRDB, RealmSwift, SQLite, Firebase, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
  • D11 Test Reliability — Test reliability not included — the .swift suite was found but not re-run
  • D16 Bus Factor — single-contributor repository — bus factor is not applicable
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D20 ADR Quality — N/A — this repo declares itself a template / kata / sample / demo; a formal ADR log is deferred to a real application built from it.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ projects each declaring an entity of their own. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D27 Navigability — D27 counts a call into the standard library or a dependency as unresolved for this repository's language (.swift), so too few call sites counted as resolved to assess navigability. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • DM1 Aggregate boundaries — not scored for Swift: the sidecar flattens array/collection types (a child COLLECTION = legitimate membership vs a single embedded aggregate is indistinguishable), and aggregate-vs-value-object classification cannot be told apart in source (every struct-holding-struct reads alike) — reported as guidance rather than measured
  • DM2 Strongly-typed ids — no in-repo typed-id idiom — primitive-obsession recorded as advisory DM8, DM2 not gated
  • DM3 Integration-event coupling — not scored for Swift: a cross-SwiftPM-target domain leak cannot be told apart in source from a legitimate shared-kernel/contracts module, and most repositories ship a single module — reported as guidance rather than measured
  • DM6 Domain ↔ infrastructure boundary — this Swift package maps no type to a persistence framework and declares no domain-model type carrying a method of its own, so DM6's domain↔infrastructure boundary read has no population to be taken over
  • DM7 Repository granularity — not scored for Swift: 'a repository per CHILD entity' needs the aggregate-root structure, which is not source-resolvable — reported as guidance rather than measured
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and this analysis resolves a call's owner only where the receiver's type is written down in the source. Reported as guidance rather than measured
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby and Scala, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
  • IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the Swift source, so there is no service whose uptime a failing dependency could take down
  • P8 Schema migrations — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P9 Domain vs controller coverage — coverage data present for 5 file(s), but no domain-layer files were identified: no covered file's path contains any of the markers this check keys on (/domain/, /aggregates/, /valueobjects/, /domainmodel/, .domain/, /entities/), which are matched case-insensitively anywhere in the path. With no domain partition there is nothing to compare the web/controller layer against — if this repository keeps its business rules under a folder named none of those, that naming is what the check cannot see, not the domain logic.
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `Benchmark("…")` in a file importing package-benchmark, or package-benchmark in Package.swift, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
  • PF2 Allocation hygiene — Not applicable: allocation awareness is rated where code engineers for it — at least 400 production lines that ship benchmarks or already use allocation-aware idioms (8 or more). This repository's Swift code has 20,208 production line(s), 2 such use(s) and no benchmarks, so there is no allocation work to rate. The card is reward-only: its absence costs nothing.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X10 Duplicated predicate — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X12 Unreachable branch — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X13 Undrained process stream — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X15 Unvalidated length from an untrusted reader — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X16 Unfloored truncation loop — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X17 Uncapped recursion over a caller-supplied document — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X18 Disposal-pattern correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X19 Unrestored process-global state — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X21 Side-effecting pattern guard — Not applicable: this check looks for a pattern guard or `case` label that increments, decrements or assigns while the switch is deciding whether it matches, and in this repository's languages none can. Swift has no `++` or `--`, and an assignment yields `()`, which cannot be an operand of `&&`, `||` or `?:` nor the Bool a `case … where` clause needs. Not a gap in the analyzer and not a finding about your code.
  • X22 Contradicted release guard — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X23 Unguarded diagnostic materialisation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X25 Inert configuration knob — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X27 Collection changed while being enumerated — Not applicable: this check looks for a loop whose body adds to or removes from the very collection the loop is walking, invalidating the enumerator it holds, and in this repository's languages that cannot happen. Swift's `Array`, `Dictionary` and `Set` are values: `for x in items` walks the copy taken when the loop starts, so a body that adds to or removes from `items` changes a different value, nothing is invalidated, and every original element is still visited. This repository's Swift names no Foundation mutable collection (`NSMutableArray` and kin), the one kind a Swift loop can walk by reference. Not a gap in the analyzer and not a finding about your code.
  • X29 Per-element action decided by a fixed element — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X30 Support guard that admits what it rejects — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Critical — 1 finding(s)
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
Serious — 50 finding(s)
D3 · God Classes · FileTooLong · ×9
  • FileTooLong: PrivacyVaultApp/PrivacyVaultApp.swift Templates/PrivacyVaultApp/Sources/PrivacyVaultApp/PrivacyVaultApp.swift — FileTooLong — 741 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 241 over it, 1.48× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: MessagingApp/MessagingApp.swift Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift — FileTooLong — 711 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 211 over it, 1.42× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: TravelPlannerApp/TravelPlannerApp.swift Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift — FileTooLong — 682 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 182 over it, 1.36× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: AIAssistantApp/AIAssistantApp.swift Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift — FileTooLong — 674 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 174 over it, 1.35× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: CreatorShortVideoApp/CreatorShortVideoApp.swift Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift — FileTooLong — 611 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 111 over it, 1.22× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: MarketplaceApp/MarketplaceApp.swift Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift — FileTooLong — 587 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 87 over it, 1.17× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: FoodDeliveryApp/FoodDeliveryApp.swift Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift — FileTooLong — 585 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 85 over it, 1.17× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: TeamCollaborationApp/TeamCollaborationApp.swift Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift — FileTooLong — 559 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 59 over it, 1.12× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: FinanceApp/FinanceApp.swift Templates/FinanceApp/Sources/FinanceApp/FinanceApp.swift — FileTooLong — 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×4
  • Duplicated block (11 lines × 2) Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:72 — Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:72-82 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:73-83 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:72` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (11 lines × 2) Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:233 — Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:233-243 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:350-360 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (11 lines × 2) Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:237 — Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:237-247 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:309-319 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:237` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:236` calls `foregroundStyle` and `Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:308` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
  • Duplicated block (11 lines × 2) Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:581 — Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:581-591 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:620-630 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:581` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D6 · Cohesion (LCOM4) · Low cohesion · ×3
  • Low cohesion: TravelPlannerOperationsStore (LCOM4 5) Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift:53 — TravelPlannerOperationsStore's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: CommerceStore (LCOM4 4) Templates/EcommerceApp/Sources/EcommerceApp/CommerceStore.swift:4 — CommerceStore's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: EducationLearningStore (LCOM4 4) Templates/EducationApp/Sources/EducationApp/EducationApp.swift:53 — EducationLearningStore's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
D3 · God Classes · MethodTooLong · ×2
  • MethodTooLong: AIAssistantWorkspaceView.body Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:367 — MethodTooLong — body runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: DataManager.seedPreviewState Templates/SocialMediaApp/Sources/SocialMediaApp/DataManager.swift:117 — MethodTooLong — seedPreviewState runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×2
  • Duplicated block (8 lines × 2) Templates/EducationApp/Sources/EducationApp/EducationApp.swift:207 — Templates/EducationApp/Sources/EducationApp/EducationApp.swift:207-214 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:272-279 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/EducationApp/Sources/EducationApp/EducationApp.swift:207` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:475 — Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:475-482 | Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:827-834 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×2
  • Duplicated block (7 lines × 2) Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:268 — Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:268-274 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:332-338 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:268` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:593 — Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:593-599 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:307-313 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:593` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D5 · Coupling · Off the main sequence · ×2
  • Off the main sequence: TemplateScaffold — TemplateScaffold: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
  • Off the main sequence: CleanArchitectureAppDomain — CleanArchitectureAppDomain: abstractness 0.11, instability 0.00, distance 0.89 — zone of pain — concrete and depended on by 3 project(s), so it's rigid to change.
D15 · Churn × Complexity Hotspots · Repeated repair · ×1
  • Repeated repair: Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift:78 — Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 13 (its worst body is ProfileDraft.isValidEmail at line 78), UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(clean-architecture): report the name scalar limit as its own issue”; “fix(clean-architecture): reject name characters that draw nothing”; “fix(clean-architecture): count the Braille blank as invisible in names”; “fix(clean-architecture): bound profile names and require visible text”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-22..2026-10-20, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-07-22 04:50:16 +03:00' --until='2026-10-20 04:50:16 +03:00' --full-history --no-merges -- Templates/CleanArchitectureApp/Sources/CleanArchitectureAppDomain/ProfileDraft.swift`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D2 · Cognitive Complexity · MessagingRoomDetailView.body (cognitive 17) · ×1
  • MessagingRoomDetailView.body (cognitive 17) Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:497 — MessagingRoomDetailView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (8 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Members sharing a duplicated core (19 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (19 members, 50+ identical tokens) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:737 — Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:737-749 | Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:351-363 | Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:241-253 | Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:298-310 | Templates/EcommerceApp/Sources/EcommerceApp/CommerceHomeView.swift:62-74 | Templates/EducationApp/Sources/EducationApp/EducationApp.swift:241-253 | Templates/FinanceApp/Sources/FinanceApp/FinanceApp.swift:279-291 | Templates/FitnessApp/Sources/FitnessApp/FitnessDashboardView.swift:62-74 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:306-318 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:642-654 | Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:333-345 | Templates/MusicPodcastApp/Sources/MusicPodcastApp/MusicPodcastApp.swift:387-399 | Templates/NewsBlogApp/Sources/NewsBlogApp/NewsBlogApp.swift:414-426 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:360-372 | Templates/PrivacyVaultApp/Sources/PrivacyVaultApp/PrivacyVaultApp.swift:300-312 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:217-229 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:205-217 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:280-292 | Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift:318-330 — These 19 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 19 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 19 times.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (6 members, 50+ identical tokens) Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160 — Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160-215 | Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:190-220 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:150-214 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:189-209 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:177-197 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:229-259 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (4 members, 50+ identical tokens) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:367 — Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:367-502 | Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160-215 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:284-376 | Templates/MusicPodcastApp/Sources/MusicPodcastApp/MusicPodcastApp.swift:192-269 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Duplicated block (50 lines × 2) · ×1
  • Duplicated block (50 lines × 2) Templates/SocialMediaApp/Sources/SocialMediaApp/DataManager.swift:118 — Templates/SocialMediaApp/Sources/SocialMediaApp/DataManager.swift:118-167 | Templates/SocialMediaApp/Sources/SocialMediaApp/FeedViewModel.swift:29-78 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (15–20 lines × 2) · ×1
  • Duplicated block (15–20 lines × 2) Templates/EcommerceApp/Sources/EcommerceApp/CommerceProfileView.swift:7 — Templates/EcommerceApp/Sources/EcommerceApp/CommerceProfileView.swift:7-21 | Templates/FitnessApp/Sources/FitnessApp/FitnessProgressViews.swift:155-174 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/EcommerceApp/Sources/EcommerceApp/CommerceProfileView.swift:7` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×1
  • Duplicated block (16 lines × 2) Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:72 — Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:72-87 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:78-93 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:72` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (14–15 lines × 3) · ×1
  • Duplicated block (14–15 lines × 3) Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:53 — Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:53-67 | Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:249-262 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:84-97 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:53` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×1
  • Duplicated block (15 lines × 2) Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:284 — Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:284-298 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:242-256 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:284` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13 lines × 19) · ×1
  • Duplicated block (13 lines × 19) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:737 — Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:737-749 | Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:351-363 | Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:241-253 | Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:298-310 | Templates/EcommerceApp/Sources/EcommerceApp/CommerceHomeView.swift:62-74 | Templates/EducationApp/Sources/EducationApp/EducationApp.swift:241-253 | Templates/FinanceApp/Sources/FinanceApp/FinanceApp.swift:279-291 | Templates/FitnessApp/Sources/FitnessApp/FitnessDashboardView.swift:62-74 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:306-318 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:642-654 | Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:333-345 | Templates/MusicPodcastApp/Sources/MusicPodcastApp/MusicPodcastApp.swift:387-399 | Templates/NewsBlogApp/Sources/NewsBlogApp/NewsBlogApp.swift:414-426 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:360-372 | Templates/PrivacyVaultApp/Sources/PrivacyVaultApp/PrivacyVaultApp.swift:300-312 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:217-229 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:205-217 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:280-292 | Templates/TravelPlannerApp/Sources/TravelPlannerApp/TravelPlannerApp.swift:318-330 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 19 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 19 times. Note first that the copies are not typed on the same thing: the declarations holding them bind `spacing` to `12` in one and `16` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:256` calls `available` and `Templates/CreatorShortVideoApp/Sources/CreatorShortVideoApp/CreatorShortVideoApp.swift:313` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×1
  • Duplicated block (13 lines × 2) Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:353 — Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:353-365 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:399-411 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:353` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×1
  • Duplicated block (12 lines × 2) Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:209 — Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:209-220 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:198-209 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:209` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11 lines × 6) · ×1
  • Duplicated block (11 lines × 6) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658 — Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658-668 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:430-440 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:587-597 | Templates/NewsBlogApp/Sources/NewsBlogApp/NewsBlogApp.swift:257-267 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:335-345 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:389-399 — there are 6 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `spacing` to `8` in one and `4` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:598` calls `Text`, `font`, `weight` and `Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:441` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×1
  • Duplicated block (10 lines × 3) Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:235 — Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:235-244 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:274-283 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:352-361 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:235` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×1
  • Duplicated block (10 lines × 2) Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160 — Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160-169 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:150-159 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:160` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9 lines × 6) · ×1
  • Duplicated block (9 lines × 6) Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:413 — Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:413-421 | Templates/EducationApp/Sources/EducationApp/EducationApp.swift:492-500 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:334-342 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:342-350 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:426-434 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:488-496 — there are 6 copies across 5 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:413` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `spacing` to `6` in one and `8` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:422` calls `Text`, `font`, `foregroundStyle` and `Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:343` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (9 lines × 5) · ×1
  • Duplicated block (9 lines × 5) Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:421 — Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:421-429 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:265-273 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:231-239 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:348-356 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:388-396 — there are 5 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/MessagingApp/Sources/MessagingApp/MessagingApp.swift:421` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×1
  • Duplicated block (9 lines × 2) Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:394 — Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:394-402 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:492-500 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:394` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:392` calls `font`, `foregroundStyle` and `Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:491` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (8 lines × 6) · ×1
  • Duplicated block (8 lines × 6) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658 — Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658-665 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:430-437 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:587-594 | Templates/NewsBlogApp/Sources/NewsBlogApp/NewsBlogApp.swift:257-264 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:389-396 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:422-429 — there are 6 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:658` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `spacing` to `8` in one and `6` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:428` calls `Section` and `Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:387` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (7–8 lines × 4) · ×1
  • Duplicated block (7–8 lines × 4) Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:190 — Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:190-197 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:189-195 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:177-183 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:229-236 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:190` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind `spacing` to `20` in one and `12` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (6 lines × 6) · ×1
  • Duplicated block (6 lines × 6) Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:164 — Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:164-169 | Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:191-197 | Templates/NotesKnowledgeApp/Sources/NotesKnowledgeApp/NotesKnowledgeApp.swift:154-159 | Templates/ProductivityApp/Sources/ProductivityApp/ProductivityApp.swift:190-195 | Templates/SubscriptionLifestyleApp/Sources/SubscriptionLifestyleApp/SubscriptionLifestyleApp.swift:178-183 | Templates/TeamCollaborationApp/Sources/TeamCollaborationApp/TeamCollaborationApp.swift:230-236 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:164` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:163` calls `VStack` and `Templates/CRMAdminApp/Sources/CRMAdminApp/CRMAdminApp.swift:190` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (5 lines × 4) · ×1
  • Duplicated block (5 lines × 4) Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:392 — Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:392-400 | Templates/BookingReservationsApp/Sources/BookingReservationsApp/BookingReservationsApp.swift:181-185 | Templates/MarketplaceApp/Sources/MarketplaceApp/MarketplaceApp.swift:304-312 | Templates/MusicPodcastApp/Sources/MusicPodcastApp/MusicPodcastApp.swift:213-217 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `Templates/AIAssistantApp/Sources/AIAssistantApp/AIAssistantApp.swift:392` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×1
  • Duplicated block (6 lines × 3) Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:10 — Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:10-15 | Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:150-155 | Templates/FitnessApp/Sources/FitnessApp/FitnessModels.swift:124-129 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:19` calls `init` and `Templates/EcommerceApp/Sources/EcommerceApp/CommerceModels.swift:159` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×1
  • Duplicated block (5 lines × 2) Templates/EcommerceApp/Sources/EcommerceApp/CommerceStore.swift:127 — Templates/EcommerceApp/Sources/EcommerceApp/CommerceStore.swift:127-131 | Templates/FoodDeliveryApp/Sources/FoodDeliveryApp/FoodDeliveryApp.swift:142-146 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
P2 · Observability · No structured logging · ×1
  • No structured logging — No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.
Minor — 5 finding(s)
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST — No static application security testing detected. For this repository's stack, add CodeQL's Swift pack (Swift/Xcode) (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 7457 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-7df1dd48387844e38ff8a815867532a8/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-7df1dd48387844e38ff8a815867532a8/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off .1artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .0artifacts/raw/osv-scanner.json
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciesosv-scanner—osv-scanner --format json --recursive --experimental-disable-plugins transitivedependency/requirements --experimental-disable-plugins dotnet/csproj --experimental-disable-plugins dotnet/nugetcpm .0artifacts/raw/osv-scanner.json

Run 01a15fd7-00e3-7cea-a6d9-f5e7436fcd52 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md