Repository navigation
refactor: address NDepend naming findings (#393) - #409
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SummarySummary
CoverageApplicationCore - 98.3%
BlazorAdmin - 10.8%
BlazorShared - 11.5%
Docker.DotNet - 29.4%
eShopWeb.AppHost - 100%
eShopWeb.AspireServiceDefaults - 78.8%
Infrastructure - 77.5%
PublicApi - 94.3%
Web - 73%
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the NDepend naming findings in #393. Each finding was checked against current
main. Each one is either fixed or justified in.claude/plans/2026-12-02-issue-393-ndepend-naming.md.Fixed
Constantstype vs. namespace: movedAuthorizationConstantsout of theMicrosoft.eShopWeb.ApplicationCore.Constantsnamespace and folder intoMicrosoft.eShopWeb.ApplicationCore, and updated the usings.BasketComponent/Basket: renamed the view component class toBasketViewComponent. MVC drops theViewComponentsuffix, soComponent.InvokeAsync("Basket")andComponents/Basket/Default.cshtmlwork unchanged.Extensions: renamed the class toServiceDefaultsExtensions. Callers only use its extension methods.Usernamevs.UserName:AuthenticateRequest.UsernameandAuthenticateResponse.UsernametoUserName.[JsonPropertyName("username")]keeps the PublicApi JSON contract unchanged.MyAccountModel.UsernametoUserName.[Display(Name = "Username")]keeps the label text.Justified (no change)
Basesuffix (BaseEntity,BaseMessage,LookupData): theBase*prefix is this sample's consistent convention, andBaseRequest/BaseResponseuse it too. Renaming the hierarchy would touch about 50 files for a style rule.EntityBasewould also duplicateNimblePros.SharedKernel.EntityBase.Basket/Ordervs. theWeb.Pages.Basket/Web.Pages.Ordernamespaces: Razor Pages derives these namespaces and the/Basket/*and/Order/*routes from the folders. Changing that is churn with no behavior benefit.Tests
UsesLowercaseUsernameInRequestAndResponseJson: posts a raw{"username": ..., "password": ...}body and checks that the response JSON has"username". This pins the wire contract.Verification
dotnet ./BuildTestFormat.cs:An independent agent reviewed the change and found no blocking issues. Its nits are either applied or recorded in the plan.
Fixes #393
Relates to #98
🤖 Generated with Claude Code