Repository navigation
Fix typos in code - #67428
Fix typos in code#67428
Conversation
There was a problem hiding this comment.
Pull request overview
This PR applies a repository-wide pass of typo fixes (primarily in comments, XML docs, and markdown/spec docs) based on codespell, while intentionally excluding areas where “typos” are often intentional or breaking (e.g., PublicAPI.txt and specific public API identifiers).
Changes:
- Corrects spelling/grammar in documentation (README/spec/PACKAGE.md files) and code comments across multiple subcomponents (SignalR, Kestrel/IIS/HttpSys servers, MVC, Routing, Components, etc.).
- Fixes typos in developer-facing strings and doc comments (e.g., exception messages, XML doc text).
- Fixes a small number of misspelled local identifiers/variables.
Reviewed changes
Copilot reviewed 169 out of 174 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Tools/README.md | README typo fix. |
| src/SignalR/server/Specification.Tests/src/ScaleoutHubLifetimeManagerTests.cs | Test comment typo fix. |
| src/SignalR/docs/specs/HubProtocol.md | Spec doc typo fix. |
| src/SignalR/common/SignalR.Common/src/Protocol/HandshakeProtocol.cs | Comment typo fix. |
| src/SignalR/common/Http.Connections.Common/src/AvailableTransport.cs | XML doc typo fix. |
| src/SignalR/clients/ts/FunctionalTests/ts/HubConnectionTests.ts | Test description typo fix. |
| src/SignalR/clients/java/signalr/core/src/main/java/com/microsoft/signalr/LongPollingTransport.java | Comment typo fix. |
| src/SignalR/clients/csharp/Http.Connections.Client/src/HttpConnection.cs | Comment typo fix. |
| src/SignalR/clients/csharp/Client.Core/src/HubConnectionExtensions.StreamAsChannelAsync.cs | Comment typo fix. |
| src/SignalR/clients/csharp/Client.Core/src/HubConnection.cs | Comment typo fix. |
| src/Shared/StaticWebAssets/ManifestStaticWebAssetFileProvider.cs | Comment typo fix. |
| src/Shared/ServerInfrastructure/StringUtilities.cs | Comment typo fixes. |
| src/Shared/PathNormalizer/PathNormalizer.cs | Comment typo fix. |
| src/Shared/ParameterBindingMethodCache.cs | Comment typo fix. |
| src/Shared/Http2cat/Http2CatReadMe.md | README typo fix. |
| src/Shared/Hpack/DynamicHPackEncoder.cs | XML doc typo fix. |
| src/Shared/CertificateGeneration/UnixCertificateManager.cs | Comment typo fix. |
| src/Shared/CertificateGeneration/CertificateManager.cs | Attribute justification typo fix. |
| src/Servers/README.md | README typo fix. |
| src/Servers/Kestrel/tools/CodeGenerator/HttpUtilities/HttpUtilities.cs | Exception message typo fix. |
| src/Servers/Kestrel/shared/Http2HeadersEnumerator.cs | Comment typo fix. |
| src/Servers/Kestrel/shared/HPackHeaderWriter.cs | Comment typo fix. |
| src/Servers/Kestrel/Core/src/Middleware/HttpsConnectionMiddleware.cs | Comment typo fix. |
| src/Servers/Kestrel/Core/src/KestrelServerOptions.cs | XML doc typo fix. |
| src/Servers/Kestrel/Core/src/Internal/Infrastructure/TimeoutControl.cs | Comment typo fixes. |
| src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelMetrics.cs | Comment typo fixes. |
| src/Servers/Kestrel/Core/src/Internal/Infrastructure/KestrelEventSource.cs | Attribute justification typo fixes. |
| src/Servers/Kestrel/Core/src/Internal/Http3/Http3Connection.cs | Comment typo fixes. |
| src/Servers/Kestrel/Core/src/Internal/Http/HttpProtocol.cs | Comment typo fixes. |
| src/Servers/Kestrel/Core/src/Internal/Http/HttpHeaders.cs | Comment typo fixes. |
| src/Servers/Kestrel/Core/src/Internal/Http/ChunkWriter.cs | Comment typo fix. |
| src/Servers/Kestrel/Core/src/Internal/ConfigurationReader.cs | Comment typo fix. |
| src/Servers/Kestrel/Core/src/HttpsConfigurationService.cs | Comment typo fix. |
| src/Servers/Kestrel/Core/src/Features/ITlsApplicationProtocolFeature.cs | XML doc typo fix. |
| src/Servers/IIS/AspNetCoreModuleV2/RequestHandlerLib/requesthandler_config.cpp | Comment typo fixes. |
| src/Servers/IIS/AspNetCoreModuleV2/OutOfProcessRequestHandler/websockethandler.cpp | Comment typo fixes. |
| src/Servers/IIS/AspNetCoreModuleV2/OutOfProcessRequestHandler/forwardinghandler.cpp | Comment typo fix. |
| src/Servers/IIS/AspNetCoreModuleV2/CommonLib/HostFxrResolver.h | Parameter name typo fix. |
| src/Servers/IIS/AspNetCoreModuleV2/CommonLib/fx_ver.cpp | Comment typo fixes. |
| src/Servers/HttpSys/src/SourceBuildStubs.cs | XML doc typo fix. |
| src/Servers/HttpSys/src/RequestProcessing/RequestStreamAsyncResult.cs | Comment typo fix. |
| src/Servers/HttpSys/src/NativeInterop/RequestQueue.cs | XML doc typo fix. |
| src/Servers/HttpSys/src/IHttpSysRequestInfoFeature.cs | XML doc typo fix. |
| src/Security/Authentication/Negotiate/src/NegotiateOptions.cs | XML doc typo fixes. |
| src/Security/Authentication/Negotiate/src/NegotiateHandler.cs | Comment typo fix. |
| src/Security/Authentication/Core/src/IDataSerializer.cs | XML doc typo fix. |
| src/Security/Authentication/Certificate/src/CertificateAuthenticationExtensions.cs | XML doc typo fix. |
| src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesDiagnosticListenerExtensions.cs | Comment typo fixes. |
| src/Mvc/Mvc.ViewFeatures/src/HtmlHelper.cs | XML doc typo fixes. |
| src/Mvc/Mvc.ViewFeatures/src/Filters/SaveTempDataFilter.cs | Comment typo fix. |
| src/Mvc/Mvc.Testing/src/WebApplicationFactory.cs | XML doc typo fix. |
| src/Mvc/Mvc.TagHelpers/src/CacheTagHelper.cs | Comment typo fix. |
| src/Mvc/Mvc.RazorPages/src/MvcRazorPagesDiagnosticListenerExtensions.cs | Comment typo fixes. |
| src/Mvc/Mvc.RazorPages/src/Infrastructure/PageActionInvokerProvider.cs | Comment typo fix. |
| src/Mvc/Mvc.RazorPages/src/Builder/RazorPagesEndpointRouteBuilderExtensions.cs | XML doc typo fixes. |
| src/Mvc/Mvc.RazorPages/src/ApplicationModels/DefaultPageApplicationModelProvider.cs | Comment typo fix. |
| src/Mvc/Mvc.RazorPages/src/ApplicationModels/CompiledPageActionDescriptorBuilder.cs | Comment typo fix. |
| src/Mvc/Mvc.Razor/src/MvcRazorDiagnosticListenerExtensions.cs | Comment typo fixes. |
| src/Mvc/Mvc.Razor.RuntimeCompilation/src/FileProviderRazorProjectItem.cs | XML doc typo fixes. |
| src/Mvc/Mvc.NewtonsoftJson/src/NewtonsoftJsonInputFormatter.cs | Comment typo fix. |
| src/Mvc/Mvc.Core/src/Routing/ActionEndpointFactory.cs | Comment typo fix. |
| src/Mvc/Mvc.Core/src/Routing/ActionEndpointDataSourceBase.cs | Comment typo fix. |
| src/Mvc/Mvc.Core/src/ModelBinding/Validation/ValidationVisitor.cs | XML doc typo fixes. |
| src/Mvc/Mvc.Core/src/Infrastructure/FileResultExecutorBase.cs | XML doc typo fix. |
| src/Mvc/Mvc.Core/src/Infrastructure/FileContentResultExecutor.cs | XML doc typo fix. |
| src/Mvc/Mvc.Core/src/Infrastructure/AsyncEnumerableReader.cs | XML doc typo fix. |
| src/Mvc/Mvc.Core/src/Builder/ControllerEndpointRouteBuilderExtensions.cs | XML doc typo fixes. |
| src/Mvc/Mvc.Core/src/Authorization/AuthorizeFilter.cs | Comment typo fix. |
| src/Mvc/Mvc.Core/src/ApplicationModels/SelectorModel.cs | XML doc typo fixes. |
| src/Mvc/Mvc.Core/src/ApplicationModels/ActionAttributeRouteModel.cs | Comment typo fix. |
| src/Mvc/Mvc.Core/src/ApiExplorer/ApiConventionTypeMatchAttribute.cs | XML doc typo fix. |
| src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs | Comment typo fix. |
| src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadataFactory.cs | XML doc typo fix. |
| src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs | XML doc typo fix. |
| src/Middleware/StaticFiles/src/StaticFilesEndpointRouteBuilderExtensions.cs | XML doc typo fixes. |
| src/Middleware/Spa/SpaServices.Extensions/src/Npm/NodeScriptRunner.cs | Error message typo fix. |
| src/Middleware/Spa/SpaProxy/src/SpaProxyLaunchManager.cs | Comment typo fix. |
| src/Middleware/Rewrite/src/IISUrlRewriteOptionsExtensions.cs | Attribute justification typo fix. |
| src/Middleware/Rewrite/src/ApacheModRewrite/ConditionPatternParser.cs | Comment typo fix. |
| src/Middleware/ResponseCompression/src/ResponseCompressionBody.cs | Comment typo fix. |
| src/Middleware/RateLimiting/src/DefaultCombinedLease.cs | Comment typo fix. |
| src/Middleware/OutputCaching/src/OutputCachePolicyBuilder.cs | XML doc typo fixes. |
| src/Middleware/HttpOverrides/src/CertificateForwardingServiceExtensions.cs | XML doc typo fix. |
| src/Middleware/HeaderPropagation/src/HeaderPropagationMiddleware.cs | Comment typo fix. |
| src/Middleware/CORS/src/Infrastructure/CorsPolicyBuilder.cs | XML doc typo fix. |
| src/JSInterop/Microsoft.JSInterop/src/JSRuntime.cs | XML doc typo fixes. |
| src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs | XML doc typo fixes. |
| src/JSInterop/Microsoft.JSInterop.JS/src/src/Microsoft.JSInterop.ts | TS doc typo fix. |
| src/Installers/Windows/Wix.targets | Comment typo fix. |
| src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/iisca/lib/setup_log.cpp | Comment typo fix. |
| src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/iisca/lib/secutils.cpp | Comment typo fixes. |
| src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/iisca/lib/msiutil.cpp | Log message typo fix. |
| src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/iisca/lib/hotfix.cpp | Log message typo fixes. |
| src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/iisca/lib/elevatedsc.cpp | Comment typo fix. |
| src/Installers/Windows/AspNetCoreModule-Setup/IIS-Setup/iisca/lib/consoleprops.cpp | Comment typo fixes. |
| src/Identity/UI/src/assets/V5/lib/jquery-validation/dist/jquery.validate.js | Vendor comment typo fix. |
| src/Identity/UI/src/assets/V5/lib/jquery-validation/dist/additional-methods.js | Vendor comment typo fixes. |
| src/Identity/UI/src/assets/V4/lib/jquery-validation/dist/jquery.validate.js | Vendor comment typo fix. |
| src/Identity/UI/src/assets/V4/lib/jquery-validation/dist/additional-methods.js | Vendor comment typo fixes. |
| src/Identity/UI/src/assets/V4/lib/bootstrap/dist/js/bootstrap.bundle.js | Vendor comment typo fixes. |
| src/Identity/Extensions.Stores/src/UserStoreBase.cs | Attribute justification typo fix. |
| src/Identity/Extensions.Stores/src/RoleStoreBase.cs | Attribute justification typo fix. |
| src/Http/Routing/src/Tree/UrlMatchingTree.cs | Comment typo fixes. |
| src/Http/Routing/src/Tree/OutboundRouteEntry.cs | XML doc typo fix. |
| src/Http/Routing/src/Template/TemplateValuesResult.cs | XML doc typo fix. |
| src/Http/Routing/src/Template/TemplatePart.cs | XML doc typo fixes. |
| src/Http/Routing/src/Template/TemplateBinder.cs | Comment/XML doc typo fixes. |
| src/Http/Routing/src/Template/RoutePrecedence.cs | Comment typo fix. |
| src/Http/Routing/src/SuppressLinkGenerationMetadata.cs | XML doc typo fix. |
| src/Http/Routing/src/RouteEndpointDataSource.cs | Comment typo fix. |
| src/Http/Routing/src/Patterns/RoutePatternFactory.cs | XML doc typo fixes. |
| src/Http/Routing/src/Matching/ILEmitTrieFactory.cs | Comment typo fix. |
| src/Http/Routing/src/Matching/HttpMethodMatcherPolicy.cs | Comment typo fixes. |
| src/Http/Routing/src/Matching/DfaMatcherBuilder.cs | Comment + local identifier typo fixes. |
| src/Http/Routing/src/Matching/ContentEncodingMetadata.cs | XML doc typo fix. |
| src/Http/Routing/src/InlineRouteParameterParser.cs | Comment typo fix. |
| src/Http/Http/src/StreamResponseBodyFeature.cs | XML doc typo fix. |
| src/Http/Http/src/Features/RouteValuesFeature.cs | XML doc typo fix. |
| src/Http/Http.Features/src/IServiceProvidersFeature.cs | XML doc typo fix. |
| src/Http/Http.Extensions/gen/Microsoft.AspNetCore.Http.RequestDelegateGenerator/StaticRouteHandlerModel/StaticRouteHandlerModel.Emitter.cs | Comment typo fix. |
| src/Http/Http.Extensions/gen/Microsoft.AspNetCore.Http.RequestDelegateGenerator/StaticRouteHandlerModel/Emitters/EndpointParameterEmitter.cs | Comment typo fix. |
| src/Http/Http.Abstractions/src/Routing/RouteValueDictionary.cs | Attribute message typo fix. |
| src/Http/Http.Abstractions/src/QueryString.cs | XML doc typo fix. |
| src/Http/Http.Abstractions/src/Metadata/IRouteDiagnosticsMetadata.cs | XML doc typo fix. |
| src/Http/Http.Abstractions/src/IEndpointFilter.cs | XML doc typo fix. |
| src/Http/Http.Abstractions/src/HttpProtocol.cs | XML doc typo fix. |
| src/Http/Http.Abstractions/src/HostString.cs | XML doc typo fix. |
| src/Http/Http.Abstractions/src/FragmentString.cs | XML doc typo fix. |
| src/Http/Headers/src/SetCookieHeaderValue.cs | Comment typo fix. |
| src/Http/Authentication.Abstractions/src/IAuthenticationConfigurationProvider.cs | XML doc typo fix. |
| src/Hosting/TestHost/src/UpgradeFeature.cs | Comment typo fix. |
| src/Hosting/Server.IntegrationTesting/src/Deployers/RemoteWindowsDeployer/RemotePSSessionHelper.ps1 | Comment typo fix. |
| src/Hosting/Hosting/src/Internal/HostingApplicationDiagnostics.cs | Comment typo fix. |
| src/Grpc/JsonTranscoding/src/Shared/X509CertificateHelpers.cs | Comment typo fixes. |
| src/Grpc/JsonTranscoding/src/Shared/ServiceDescriptorHelpers.cs | Comment typo fix. |
| src/Grpc/JsonTranscoding/src/Shared/Server/MethodOptions.cs | XML doc typo fixes. |
| src/Grpc/JsonTranscoding/src/Shared/Server/BindMethodFinder.cs | Comment typo fix. |
| src/Grpc/JsonTranscoding/src/Microsoft.AspNetCore.Grpc.JsonTranscoding/Internal/JsonTranscodingServerCallContext.cs | Comment typo fix. |
| src/Grpc/JsonTranscoding/src/Microsoft.AspNetCore.Grpc.JsonTranscoding/Internal/JsonTranscodingRouteAdapter.cs | Comment typo fix. |
| src/Framework/AspNetCoreAnalyzers/src/CodeFixes/Dependencies/ExtensionMethodsCompletionProvider.cs | XML doc typo fix. |
| src/Framework/AspNetCoreAnalyzers/src/Analyzers/RouteEmbeddedLanguage/Infrastructure/RouteUsageDetector.cs | Local identifier typo fixes. |
| src/Framework/AspNetCoreAnalyzers/src/Analyzers/RouteEmbeddedLanguage/FrameworkParametersCompletionProvider.cs | Local identifier typo fixes. |
| src/Framework/AspNetCoreAnalyzers/src/Analyzers/Infrastructure/VirtualChars/VirtualCharSequence.cs | XML doc typo fix. |
| src/Framework/AspNetCoreAnalyzers/src/Analyzers/Infrastructure/VirtualChars/CSharpVirtualCharService.cs | Comment typo fix. |
| src/DataProtection/README.md | README typo fix. |
| src/DataProtection/DataProtection/src/XmlEncryption/DpapiNGXmlEncryptor.cs | XML doc typo fix. |
| src/DataProtection/DataProtection/src/Repositories/IDefaultKeyStorageDirectory.cs | XML doc typo fix. |
| src/DataProtection/DataProtection/src/KeyManagement/XmlKeyManager.cs | Comment typo fix. |
| src/Components/WebAssembly/WebAssembly/src/Services/LazyAssemblyLoader.cs | Exception message typo fix. |
| src/Components/WebAssembly/WebAssembly/src/Hosting/WebAssemblyCallQueue.cs | Comment typo fix. |
| src/Components/WebAssembly/WebAssembly.Authentication/src/Services/AccessTokenNotAvailableException.cs | XML doc typo fix. |
| src/Components/WebAssembly/WebAssembly.Authentication/src/PACKAGE.md | Doc typo fix. |
| src/Components/WebAssembly/WebAssembly.Authentication/src/Models/InteractiveRequestOptions.cs | Attribute justification typo fix. |
| src/Components/WebAssembly/Server/src/TargetPickerUi.cs | Comment typo fix. |
| src/Components/WebAssembly/Authentication.Msal/src/PACKAGE.md | Doc typo fix. |
| src/Components/Web.JS/src/Services/WebRootComponentManager.ts | Comment typo fixes. |
| src/Components/Web.JS/src/Rendering/DomMerging/DomSync.ts | Comment typo fix. |
| src/Components/Web.JS/src/JSInitializers/JSInitializers.ts | Comment typo fix. |
| src/Components/Web.JS/src/GlobalExports.ts | Comment typo fix. |
| src/Components/Server/src/ComponentHub.cs | Comment typo fixes. |
| src/Components/Server/src/Circuits/DefaultInMemoryCircuitPersistenceProvider.cs | Comment typo fix. |
| src/Components/Server/src/Circuits/CircuitRegistry.cs | XML doc typo fixes. |
| src/Components/Server/src/Circuits/CircuitHost.cs | Local identifier + log message typo fixes. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.css | Comment typo fix. |
| src/Components/Endpoints/src/FormMapping/Converters/DictionaryConverter.cs | Local identifier typo fixes. |
| src/Components/Endpoints/src/FormMapping/Converters/CollectionConverter.cs | Local identifier + comment typo fixes. |
| src/Components/Components/src/Routing/Router.cs | Comment typo fix. |
| src/Components/Components/src/ResourceAssetCollection.cs | XML doc typo fix. |
| src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs | Comment typo fix. |
| src/Components/Components/src/CascadingValueSource.cs | XML doc typo fixes. |
| src/Components/benchmarkapps/Wasm.Performance/TestApp/Pages/PersonDisplay.razor | UI label typo fix. |
| src/Antiforgery/src/Internal/IClaimUidExtractor.cs | XML doc typo fix. |
| src/Analyzers/Microsoft.AspNetCore.Analyzer.Testing/src/DiagnosticAnalyzerRunner.cs | XML doc typo fix. |
| src/Analyzers/Analyzers/src/StartupFacts.cs | Comment typo fix. |
mikekistler
left a comment
There was a problem hiding this comment.
I love the fixes to the xmldocs! These will clearly improve developer experience by making the generated reference docs more readable / understandable.
I'm less enthusiastic about the code changes. If we are certain that they do no harm I suppose they are okay, but I'm not sure how to know that.
|
I can remove the changes in code, it's only few of those. Also, these changes are purely on non-public API, so there should be no risk (as long as all tests pass). |
|
/ba-g Failures are unrelated. |
I used
codespellacross the repo, with a curated (Copilot assisted) ignore list and skip patterns to exclude test data, localized installer files (.wxl/.rtf/LCID), submodules, generated code, andPublicAPI.txt- places where "typos" are often intentional (test fixtures, non-English strings, public API names). I restricted auto-fixes to product source, then reviewed the full diff line-by-line.BTW I skipped public-API typo:
FeatureReferences.Initalize. That would be a breaking change.