Skip to content
CAI
Software that uses CAICheck a score

mohamedelareeg/CleanArchitecture

51.5

Weak · 8 November 2026

2.9k

lines of production code

C#

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This is a .NET 8 application built on Clean Architecture, structured into distinct layers including API, Application, Domain, and Persistence. It provides core infrastructure for user authentication, role management, and email services, all orchestrated via MediatR. The system manages SQL Server persistence through Entity Framework Core and supports multi-language localization and standardized error handling.

Features

Adds application-layer infrastructure for authentication, email, and role management

Introduces new application features for handling user authentication (login, register, password reset), email sending, and role/claim management, each implemented as MediatR command and query handlers. The change also adds base response and filteration classes, pipeline behaviors for validation and authorization, and a global error-handling middleware that maps exceptions to standardized JSON responses.

(repo-wide) · high confidence

Initial API scaffolding with authentication, role management, and localization

The API project now includes a base controller that standardizes HTTP responses and integrates with MediatR, alongside controllers for authentication (login, register, password reset), email sending, and role/claim management. Swagger is configured with JWT Bearer security and a language header parameter (en-US, ar-EG, de-DE) to support multi-language error messages and UI localization. The application pipeline adds CORS, Serilog, and request localization, while configuration files define database connections, JWT settings, and logging.

CleanArchitecture.Api · medium confidence

Initial database context and repository layer for persistence

The CleanArchitecture.Persistence module now provides the core data access infrastructure. This includes the \ApplicationDbContext\ and \AuditableDbContext\ classes to manage Entity Framework Core state and audit timestamps, a \BaseRepo\<T\>\ generic repository implementing common CRUD and query operations, and the \PersistenceDependencies\ registration to configure the SQL Server connection and dependency injection. Additionally, the initial database migration files have been added to the project.

CleanArchitecture.Persistence · high confidence

Initial project scaffolding and configuration

The repository has been initialized with the core project structure, including the solution file (CleanArchitecture.sln) that defines the .NET 8 Clean Architecture layers (Domain, Application, Infrastructure, Persistence, Identity, API, and MVC). The update also introduces essential development and deployment configurations: a .dockerignore file to exclude unnecessary files from Docker builds, a docker-compose.yml file to orchestrate the API and MVC services, and a launchSettings.json file to enable Docker Compose debugging in Visual Studio. Additionally, the project includes a LICENSE file (MIT) and a comprehensive README.md documenting the architecture and features.

(repo-wide) · high confidence

Dependencies

Added .csproj files for CleanArchitecture solution

Added project configuration files for the CleanArchitecture solution, defining the structure and dependencies for the API, application, domain, identity, infrastructure, MVC, persistence, and test projects. These files establish the .NET 8.0 target framework and include necessary NuGet packages such as Entity Framework Core, MediatR, and various Microsoft libraries.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 50 → 52 (+1.4)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 59 → 59 (+0.0)
  • Architecture 77 → 92 (+15.1)
  • Maturity 56 → 59 (+2.8)
  • Readiness 36 → 36 (+0.0)
  • Security 67 → 71 (+3.3)
  • Accessibility 80 → 80 (+0.0)
  • Performance 100 → 100 (+0.0)

Resolved (15)

  • Inconsistent naming for the same concept (surname). The 'Employee' entity uses 'Lastname' while the 'RegisterCommand' uses 'FirstName' (and presumably 'LastName' is missing or inconsistent elsewhere, but the presence of 'Lastname' vs 'FirstName' in different models suggests a lack of standardization between 'Lastname' and 'LastName'). While 'FirstName' is correct, 'Lastname' is often considered less standard than 'LastName' in C# conventions, though the primary inconsistency here is the potential mix-up if 'LastName' is used elsewhere. However, looking strictly at the list, 'Lastname' is the outlier compared to the standard 'LastName' usually paired with 'FirstName'.
  • Inconsistent pluralization and spelling of technical terms. 'GetChildsAsync' uses the non-standard plural 'Childs' instead of 'Children'. Additionally, 'FindNoTraking' contains a spelling error ('Traking' instead of 'Tracking') which is repeated in the interface definition, indicating a systemic typo in the naming convention for this operation.
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Typo in the class name 'BaseFilteration'. The word 'Filteration' is misspelled; it should be 'Filteration' is incorrect, the correct spelling is 'Filtration' or more commonly in this context 'Filtering' or 'Filter'. Given it is a base class for filtering logic, 'BaseFiltering' or 'BaseFilter' is the standard convention. 'Filteration' is not a standard English word.
  • XML-doc coverage: CleanArchitecture.Api (CleanArchitecture.Api/CleanArchitecture.Api.csproj)
  • XML-doc coverage: CleanArchitecture.Application (CleanArchitecture.Application/CleanArchitecture.Application.csproj)
  • XML-doc coverage: CleanArchitecture.Domain (CleanArchitecture.Domain/CleanArchitecture.Domain.csproj)
  • XML-doc coverage: CleanArchitecture.Identity (CleanArchitecture.Identity/CleanArchitecture.Identity.csproj)
  • XML-doc coverage: CleanArchitecture.Infrustructure (CleanArchitecture.Infrustructure/CleanArchitecture.Infrustructure.csproj)
  • XML-doc coverage: CleanArchitecture.Mvc (CleanArchitecture.Mvc/CleanArchitecture.Mvc.csproj)
  • XML-doc coverage: CleanArchitecture.Persistence (CleanArchitecture.Persistence/CleanArchitecture.Persistence.csproj)
  • redundant comment (CleanArchitecture.Api/Program.cs)

Architecture

  • Unchanged — 3 containers · 0 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

mohamedelareeg/CleanArchitecture was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 0f996e067627653c479d70b5b517c5878787a46b — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.